Java Code Examples for org.mybatis.generator.internal.rules.Rules#generateUpdateByExampleWithoutBLOBs()
The following examples show how to use
org.mybatis.generator.internal.rules.Rules#generateUpdateByExampleWithoutBLOBs() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ExtendedDAOMethodNameCalculator.java From mybatis-generator-core-fix with Apache License 2.0 | 6 votes |
public String getUpdateByExampleWithBLOBsMethodName( IntrospectedTable introspectedTable) { StringBuilder sb = new StringBuilder(); sb.append("update"); //$NON-NLS-1$ sb.append(introspectedTable.getFullyQualifiedTable() .getDomainObjectName()); Rules rules = introspectedTable.getRules(); if (!rules.generateUpdateByExampleWithoutBLOBs()) { sb.append("ByExample"); //$NON-NLS-1$ } else if (rules.generateRecordWithBLOBsClass()) { sb.append("ByExample"); //$NON-NLS-1$ } else { sb.append("ByExampleWithBLOBs"); //$NON-NLS-1$ } return sb.toString(); }
Example 2
Source File: ExtendedDAOMethodNameCalculator.java From mybatis-generator-plus with Apache License 2.0 | 6 votes |
public String getUpdateByExampleWithBLOBsMethodName( IntrospectedTable introspectedTable) { StringBuilder sb = new StringBuilder(); sb.append("update"); //$NON-NLS-1$ sb.append(introspectedTable.getFullyQualifiedTable() .getDomainObjectName()); Rules rules = introspectedTable.getRules(); if (!rules.generateUpdateByExampleWithoutBLOBs()) { sb.append("ByExample"); //$NON-NLS-1$ } else if (rules.generateRecordWithBLOBsClass()) { sb.append("ByExample"); //$NON-NLS-1$ } else { sb.append("ByExampleWithBLOBs"); //$NON-NLS-1$ } return sb.toString(); }
Example 3
Source File: DefaultDAOMethodNameCalculator.java From mybatis-generator-core-fix with Apache License 2.0 | 5 votes |
public String getUpdateByExampleWithBLOBsMethodName( IntrospectedTable introspectedTable) { Rules rules = introspectedTable.getRules(); if (!rules.generateUpdateByExampleWithoutBLOBs()) { return "updateByExample"; //$NON-NLS-1$ } else if (rules.generateRecordWithBLOBsClass()) { return "updateByExample"; //$NON-NLS-1$ } else { return "updateByExampleWithBLOBs"; //$NON-NLS-1$ } }
Example 4
Source File: DAOGenerator.java From mybatis-generator-core-fix with Apache License 2.0 | 5 votes |
protected void addUpdateByExampleParmsInnerclass( TopLevelClass topLevelClass, Interface interfaze) { Rules rules = introspectedTable.getRules(); if (rules.generateUpdateByExampleSelective() || rules.generateUpdateByExampleWithBLOBs() || rules.generateUpdateByExampleWithoutBLOBs()) { AbstractDAOElementGenerator methodGenerator = new UpdateByExampleParmsInnerclassGenerator(); initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze); } }
Example 5
Source File: DefaultDAOMethodNameCalculator.java From mybatis-generator-plus with Apache License 2.0 | 5 votes |
public String getUpdateByExampleWithBLOBsMethodName( IntrospectedTable introspectedTable) { Rules rules = introspectedTable.getRules(); if (!rules.generateUpdateByExampleWithoutBLOBs()) { return "updateByExample"; //$NON-NLS-1$ } else if (rules.generateRecordWithBLOBsClass()) { return "updateByExample"; //$NON-NLS-1$ } else { return "updateByExampleWithBLOBs"; //$NON-NLS-1$ } }
Example 6
Source File: DAOGenerator.java From mybatis-generator-plus with Apache License 2.0 | 5 votes |
protected void addUpdateByExampleParmsInnerclass( TopLevelClass topLevelClass, Interface interfaze) { Rules rules = introspectedTable.getRules(); if (rules.generateUpdateByExampleSelective() || rules.generateUpdateByExampleWithBLOBs() || rules.generateUpdateByExampleWithoutBLOBs()) { AbstractDAOElementGenerator methodGenerator = new UpdateByExampleParmsInnerclassGenerator(); initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze); } }