Search in sources :

Example 1 with DfSql2EntityMark

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

the class DfPmFileTableLoader method processSpecifiedDetect.

protected void processSpecifiedDetect(String fileText, Map<String, String> propertyNameTypeMap, Map<String, String> propertyNameOptionMap, Set<String> propertyNameSet) {
    final List<DfSql2EntityMark> propertyTypeList = new DfSql2EntityMarkAnalyzer().getParameterBeanPropertyTypeList(fileText);
    for (DfSql2EntityMark mark : propertyTypeList) {
        final String content = mark.getContent();
        final String propertyType = Srl.substringFirstFront(content, " ").trim();
        final String propertyName = Srl.substringFirstRear(content, " ").trim();
        propertyNameTypeMap.put(propertyName, resolvePackageName(propertyType));
        propertyNameSet.add(propertyName);
    }
}
Also used : DfSql2EntityMarkAnalyzer(org.dbflute.logic.sql2entity.analyzer.DfSql2EntityMarkAnalyzer) DfSql2EntityMark(org.dbflute.logic.sql2entity.analyzer.DfSql2EntityMark)

Example 2 with DfSql2EntityMark

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

the class DfMailFluteTableLoader method processSpecifiedDetect.

protected void processSpecifiedDetect(String fileText, Map<String, String> propertyNameTypeMap, Map<String, String> propertyNameOptionMap, Set<String> propertyNameSet) {
    final List<DfSql2EntityMark> propertyTypeList = new DfSql2EntityMarkAnalyzer().getParameterBeanPropertyTypeList(fileText);
    for (DfSql2EntityMark mark : propertyTypeList) {
        final String content = mark.getContent();
        final String propertyType = Srl.substringFirstFront(content, " ").trim();
        final String propertyName = Srl.substringFirstRear(content, " ").trim();
        propertyNameTypeMap.put(propertyName, resolvePackageName(propertyType));
        propertyNameSet.add(propertyName);
    }
}
Also used : DfSql2EntityMarkAnalyzer(org.dbflute.logic.sql2entity.analyzer.DfSql2EntityMarkAnalyzer) DfSql2EntityMark(org.dbflute.logic.sql2entity.analyzer.DfSql2EntityMark)

Aggregations

DfSql2EntityMark (org.dbflute.logic.sql2entity.analyzer.DfSql2EntityMark)2 DfSql2EntityMarkAnalyzer (org.dbflute.logic.sql2entity.analyzer.DfSql2EntityMarkAnalyzer)2