Search in sources :

Example 1 with DfParameterAutoDetectProcess

use of org.dbflute.logic.sql2entity.analyzer.DfParameterAutoDetectProcess in project dbflute-core by dbflute.

the class DfMailFluteTableLoader method processAutoDetect.

// -----------------------------------------------------
// AutoDetect
// ----------
protected void processAutoDetect(String fileText, Map<String, String> propertyNameTypeMap, Map<String, String> propertyNameOptionMap, Set<String> propertyNameSet) {
    final DfParameterAutoDetectProcess process = new DfParameterAutoDetectProcess() {

        @Override
        protected DfParameterAutoDetectBindNode newParameterAutoDetectBindNode(DfParameterAutoDetectAssist assist) {
            return super.newParameterAutoDetectBindNode(assist).unuseTestValue("String");
        }

        @Override
        protected void processAlternateBooleanMethodIfNode(String sql, IfNode ifNode) {
        // unsupported
        }
    };
    process.processAutoDetect(fileText, propertyNameTypeMap, propertyNameOptionMap, propertyNameSet);
}
Also used : DfParameterAutoDetectAssist(org.dbflute.logic.sql2entity.analyzer.DfParameterAutoDetectAssist) IfNode(org.dbflute.twowaysql.node.IfNode) DfParameterAutoDetectProcess(org.dbflute.logic.sql2entity.analyzer.DfParameterAutoDetectProcess)

Example 2 with DfParameterAutoDetectProcess

use of org.dbflute.logic.sql2entity.analyzer.DfParameterAutoDetectProcess in project dbflute-core by dbflute.

the class DfPmFileTableLoader method processAutoDetect.

protected void processAutoDetect(String fileText, Map<String, String> propertyNameTypeMap, Map<String, String> propertyNameOptionMap, Set<String> propertyNameSet) {
    final DfParameterAutoDetectProcess process = new DfParameterAutoDetectProcess() {

        @Override
        protected DfParameterAutoDetectBindNode newParameterAutoDetectBindNode(DfParameterAutoDetectAssist assist) {
            return super.newParameterAutoDetectBindNode(assist).unuseTestValue("String");
        }

        @Override
        protected void processAlternateBooleanMethodIfNode(String sql, IfNode ifNode) {
        // unsupported
        }
    };
    process.processAutoDetect(fileText, propertyNameTypeMap, propertyNameOptionMap, propertyNameSet);
}
Also used : DfParameterAutoDetectAssist(org.dbflute.logic.sql2entity.analyzer.DfParameterAutoDetectAssist) IfNode(org.dbflute.twowaysql.node.IfNode) DfParameterAutoDetectProcess(org.dbflute.logic.sql2entity.analyzer.DfParameterAutoDetectProcess)

Aggregations

DfParameterAutoDetectAssist (org.dbflute.logic.sql2entity.analyzer.DfParameterAutoDetectAssist)2 DfParameterAutoDetectProcess (org.dbflute.logic.sql2entity.analyzer.DfParameterAutoDetectProcess)2 IfNode (org.dbflute.twowaysql.node.IfNode)2