addApplyWhereMethod |= addSelectByExampleWithoutBLOBsMethod(topLevelClass); addApplyWhereMethod |= addUpdateByExampleSelectiveMethod(topLevelClass); addApplyWhereMethod |= addUpdateByExampleWithBLOBsMethod(topLevelClass); addApplyWhereMethod |= addUpdateByExampleWithoutBLOBsMethod(topLevelClass); addUpdateByPrimaryKeySelectiveMethod(topLevelClass);
addApplyWhereMethod |= addSelectByExampleWithoutBLOBsMethod(topLevelClass); addApplyWhereMethod |= addUpdateByExampleSelectiveMethod(topLevelClass); addApplyWhereMethod |= addUpdateByExampleWithBLOBsMethod(topLevelClass); addApplyWhereMethod |= addUpdateByExampleWithoutBLOBsMethod(topLevelClass); addUpdateByPrimaryKeySelectiveMethod(topLevelClass);
@Override public List<CompilationUnit> getCompilationUnits() { progressCallback.startTask(getString("Progress.18", //$NON-NLS-1$ introspectedTable.getFullyQualifiedTable().toString())); CommentGenerator commentGenerator = context.getCommentGenerator(); FullyQualifiedJavaType type = new FullyQualifiedJavaType(introspectedTable.getMyBatis3SqlProviderType()); TopLevelClass topLevelClass = new TopLevelClass(type); topLevelClass.setVisibility(JavaVisibility.PUBLIC); commentGenerator.addJavaFileComment(topLevelClass); boolean addApplyWhereMethod = false; addApplyWhereMethod |= addCountByExampleMethod(topLevelClass); addApplyWhereMethod |= addDeleteByExampleMethod(topLevelClass); addInsertSelectiveMethod(topLevelClass); addApplyWhereMethod |= addSelectByExampleWithBLOBsMethod(topLevelClass); addApplyWhereMethod |= addSelectByExampleWithoutBLOBsMethod(topLevelClass); addApplyWhereMethod |= addUpdateByExampleSelectiveMethod(topLevelClass); addApplyWhereMethod |= addUpdateByExampleWithBLOBsMethod(topLevelClass); addApplyWhereMethod |= addUpdateByExampleWithoutBLOBsMethod(topLevelClass); addUpdateByPrimaryKeySelectiveMethod(topLevelClass); if (addApplyWhereMethod) { addApplyWhereMethod(topLevelClass); } List<CompilationUnit> answer = new ArrayList<CompilationUnit>(); if (topLevelClass.getMethods().size() > 0) { if (context.getPlugins().providerGenerated(topLevelClass, introspectedTable)) { answer.add(topLevelClass); } } return answer; }
addApplyWhereMethod |= addSelectByExampleWithoutBLOBsMethod(topLevelClass); addApplyWhereMethod |= addUpdateByExampleSelectiveMethod(topLevelClass); addApplyWhereMethod |= addUpdateByExampleWithBLOBsMethod(topLevelClass); addApplyWhereMethod |= addUpdateByExampleWithoutBLOBsMethod(topLevelClass); addUpdateByPrimaryKeySelectiveMethod(topLevelClass);