Search in sources :

Example 1 with DfProcedureColumnMeta

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

the class DfPmbMetaData method getPropertyRefColumnInfo.

// -----------------------------------------------------
// Display
// -------
public String getPropertyRefColumnInfo(String propertyName, AppData schemaData) {
    if (isRelatedToProcedure()) {
        final DfProcedureColumnMeta metaInfo = getProcedureColumnInfo(propertyName);
        return metaInfo != null ? ": {" + metaInfo.getColumnDefinitionLineDisp() + "}" : "";
    }
    final StringBuilder sb = new StringBuilder();
    final String optionDisp = getPropertyOptionDisp(propertyName);
    sb.append(optionDisp);
    final String name = getPropertyRefName(propertyName, schemaData);
    if (Srl.is_NotNull_and_NotTrimmedEmpty(name)) {
        // basically normal parameter-bean
        final String alias = getPropertyRefAlias(propertyName, schemaData);
        final String lineDisp = getPropertyRefLineDisp(propertyName, schemaData);
        sb.append(" :: refers to ").append(alias).append(name).append(": ").append(lineDisp);
    }
    return sb.toString();
}
Also used : DfProcedureColumnMeta(org.dbflute.logic.jdbc.metadata.info.DfProcedureColumnMeta)

Example 2 with DfProcedureColumnMeta

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

the class DfPmbMetaData method needsOracleStructHandling.

public boolean needsOracleStructHandling(String propertyName) {
    assertArgumentPmbMetaDataPropertyName(propertyName);
    if (!getBasicProperties().isDatabaseOracle() || !getLittleAdjustmentProperties().isAvailableDatabaseNativeJDBC()) {
        return false;
    }
    final DfProcedureColumnMeta metaInfo = getProcedureColumnInfo(propertyName);
    return metaInfo != null && metaInfo.hasTypeStructInfo();
}
Also used : DfProcedureColumnMeta(org.dbflute.logic.jdbc.metadata.info.DfProcedureColumnMeta)

Example 3 with DfProcedureColumnMeta

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

the class DfPmbMetaData method getProcedureParameterOracleArrayElementJavaNative.

public String getProcedureParameterOracleArrayElementJavaNative(String propertyName) {
    assertArgumentPmbMetaDataPropertyName(propertyName);
    final DfProcedureColumnMeta columnInfo = getProcedureColumnInfo(propertyName);
    if (columnInfo != null && columnInfo.hasTypeArrayElementJavaNative()) {
        return columnInfo.getTypeArrayInfo().getElementJavaNative();
    }
    // as default
    return "Object";
}
Also used : DfProcedureColumnMeta(org.dbflute.logic.jdbc.metadata.info.DfProcedureColumnMeta)

Example 4 with DfProcedureColumnMeta

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

the class DfPmbMetaData method needsObjectBindingBigDecimalHandling.

public boolean needsObjectBindingBigDecimalHandling(String propertyName) {
    assertArgumentPmbMetaDataPropertyName(propertyName);
    final DfProcedureColumnMeta metaInfo = getProcedureColumnInfo(propertyName);
    return metaInfo != null && _columnHandler.isConceptTypeObjectBindingBigDecimal(metaInfo.getDbTypeName());
}
Also used : DfProcedureColumnMeta(org.dbflute.logic.jdbc.metadata.info.DfProcedureColumnMeta)

Example 5 with DfProcedureColumnMeta

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

the class DfPmbMetaData method getProcedureParameterOracleStructEntityType.

public String getProcedureParameterOracleStructEntityType(String propertyName) {
    assertArgumentPmbMetaDataPropertyName(propertyName);
    final DfProcedureColumnMeta columnInfo = getProcedureColumnInfo(propertyName);
    if (columnInfo != null && columnInfo.hasTypeStructEntityType()) {
        return columnInfo.getTypeStructInfo().getEntityType();
    }
    // as default
    return "Object";
}
Also used : DfProcedureColumnMeta(org.dbflute.logic.jdbc.metadata.info.DfProcedureColumnMeta)

Aggregations

DfProcedureColumnMeta (org.dbflute.logic.jdbc.metadata.info.DfProcedureColumnMeta)27 DfProcedureColumnType (org.dbflute.logic.jdbc.metadata.info.DfProcedureColumnMeta.DfProcedureColumnType)5 DfProcedureMeta (org.dbflute.logic.jdbc.metadata.info.DfProcedureMeta)5 LinkedHashSet (java.util.LinkedHashSet)2 DfProcedureNotParamResultMeta (org.dbflute.logic.jdbc.metadata.info.DfProcedureNotParamResultMeta)2 CallableStatement (java.sql.CallableStatement)1 Connection (java.sql.Connection)1 ResultSet (java.sql.ResultSet)1 SQLException (java.sql.SQLException)1 HashSet (java.util.HashSet)1 UnifiedSchema (org.apache.torque.engine.database.model.UnifiedSchema)1 DfProcedureExecutionMetaGettingFailureException (org.dbflute.exception.DfProcedureExecutionMetaGettingFailureException)1 ExceptionMessageBuilder (org.dbflute.helper.message.ExceptionMessageBuilder)1 DfColumnMeta (org.dbflute.logic.jdbc.metadata.info.DfColumnMeta)1 DfProcedureArgumentInfo (org.dbflute.logic.jdbc.metadata.info.DfProcedureArgumentInfo)1 DfProcedureType (org.dbflute.logic.jdbc.metadata.info.DfProcedureMeta.DfProcedureType)1 DfTypeArrayInfo (org.dbflute.logic.jdbc.metadata.info.DfTypeArrayInfo)1 DfTypeStructInfo (org.dbflute.logic.jdbc.metadata.info.DfTypeStructInfo)1 DfPmbMetaData (org.dbflute.logic.sql2entity.pmbean.DfPmbMetaData)1 DfOutsideSqlProperties (org.dbflute.properties.DfOutsideSqlProperties)1