Search in sources :

Example 11 with DfTypeStructInfo

use of org.dbflute.logic.jdbc.metadata.info.DfTypeStructInfo in project dbflute-core by dbflute.

the class DfProcedurePmbSetupper method doProcessGreatWallOfOracleType.

protected String doProcessGreatWallOfOracleType(String pmbName, DfProcedureColumnMeta column, ProcedurePropertyInfo propertyInfo) {
    final String propertyType;
    if (column.isOracleTreatedAsArray() && column.hasTypeArrayInfo()) {
        // here dbTypeName is "PL/SQL TABLE" or "TABLE" or "VARRAY"
        // (it's not useful for type mapping, so search like this)
        final DfTypeArrayInfo arrayInfo = column.getTypeArrayInfo();
        propertyType = getGenericListClassName(doProcessArrayProperty(arrayInfo, propertyInfo));
    } else if (column.isOracleStruct() && column.hasTypeStructInfo()) {
        final DfTypeStructInfo structInfo = column.getTypeStructInfo();
        propertyType = doProcessStructProperty(structInfo, propertyInfo);
    } else {
        propertyType = null;
    }
    return propertyType;
}
Also used : DfTypeStructInfo(org.dbflute.logic.jdbc.metadata.info.DfTypeStructInfo) DfTypeArrayInfo(org.dbflute.logic.jdbc.metadata.info.DfTypeArrayInfo)

Aggregations

DfTypeStructInfo (org.dbflute.logic.jdbc.metadata.info.DfTypeStructInfo)11 DfTypeArrayInfo (org.dbflute.logic.jdbc.metadata.info.DfTypeArrayInfo)9 Map (java.util.Map)2 StringKeyMap (org.dbflute.helper.StringKeyMap)2 DfColumnMeta (org.dbflute.logic.jdbc.metadata.info.DfColumnMeta)2 DfProcedureSupplementExtractorOracle (org.dbflute.logic.jdbc.metadata.procedure.DfProcedureSupplementExtractorOracle)2 HashMap (java.util.HashMap)1 LinkedHashSet (java.util.LinkedHashSet)1 UnifiedSchema (org.apache.torque.engine.database.model.UnifiedSchema)1 DfProcedureColumnMeta (org.dbflute.logic.jdbc.metadata.info.DfProcedureColumnMeta)1 DfProcedureMeta (org.dbflute.logic.jdbc.metadata.info.DfProcedureMeta)1 DfStructExtractorOracle (org.dbflute.logic.jdbc.metadata.various.struct.DfStructExtractorOracle)1