Java Code Examples for org.mybatis.generator.internal.rules.Rules#generateUpdateByExampleWithBLOBs()

The following examples show how to use org.mybatis.generator.internal.rules.Rules#generateUpdateByExampleWithBLOBs() . 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 vote down vote up
public String getUpdateByExampleWithoutBLOBsMethodName(
        IntrospectedTable introspectedTable) {
    StringBuilder sb = new StringBuilder();

    sb.append("update"); //$NON-NLS-1$
    sb.append(introspectedTable.getFullyQualifiedTable()
            .getDomainObjectName());

    Rules rules = introspectedTable.getRules();

    if (!rules.generateUpdateByExampleWithBLOBs()) {
        sb.append("ByExample"); //$NON-NLS-1$
    } else if (rules.generateRecordWithBLOBsClass()) {
        sb.append("ByExample"); //$NON-NLS-1$
    } else {
        sb.append("ByExampleWithoutBLOBs"); //$NON-NLS-1$
    }

    return sb.toString();
}
 
Example 2
Source File: ExtendedDAOMethodNameCalculator.java    From mybatis-generator-plus with Apache License 2.0 6 votes vote down vote up
public String getUpdateByExampleWithoutBLOBsMethodName(
        IntrospectedTable introspectedTable) {
    StringBuilder sb = new StringBuilder();

    sb.append("update"); //$NON-NLS-1$
    sb.append(introspectedTable.getFullyQualifiedTable()
            .getDomainObjectName());

    Rules rules = introspectedTable.getRules();

    if (!rules.generateUpdateByExampleWithBLOBs()) {
        sb.append("ByExample"); //$NON-NLS-1$
    } else if (rules.generateRecordWithBLOBsClass()) {
        sb.append("ByExample"); //$NON-NLS-1$
    } else {
        sb.append("ByExampleWithoutBLOBs"); //$NON-NLS-1$
    }

    return sb.toString();
}
 
Example 3
Source File: DefaultDAOMethodNameCalculator.java    From mybatis-generator-core-fix with Apache License 2.0 5 votes vote down vote up
public String getUpdateByExampleWithoutBLOBsMethodName(
        IntrospectedTable introspectedTable) {
    Rules rules = introspectedTable.getRules();

    if (!rules.generateUpdateByExampleWithBLOBs()) {
        return "updateByExample"; //$NON-NLS-1$
    } else if (rules.generateRecordWithBLOBsClass()) {
        return "updateByExample"; //$NON-NLS-1$
    } else {
        return "updateByExampleWithoutBLOBs"; //$NON-NLS-1$
    }
}
 
Example 4
Source File: DAOGenerator.java    From mybatis-generator-core-fix with Apache License 2.0 5 votes vote down vote up
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 vote down vote up
public String getUpdateByExampleWithoutBLOBsMethodName(
        IntrospectedTable introspectedTable) {
    Rules rules = introspectedTable.getRules();

    if (!rules.generateUpdateByExampleWithBLOBs()) {
        return "updateByExample"; //$NON-NLS-1$
    } else if (rules.generateRecordWithBLOBsClass()) {
        return "updateByExample"; //$NON-NLS-1$
    } else {
        return "updateByExampleWithoutBLOBs"; //$NON-NLS-1$
    }
}
 
Example 6
Source File: DAOGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
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);
    }
}