Search in sources :

Example 21 with ColumnRealName

use of org.dbflute.dbmeta.name.ColumnRealName in project dbflute-core by dbflute.

the class HpCalcSpecification method getResolvedSpecifiedTableAliasName.

// -----------------------------------------------------
// Table Alias
// -----------
public String getResolvedSpecifiedTableAliasName() {
    // resolved plain or deriving sub-query
    checkSpecifiedCB();
    if (_specifedCB.xhasDreamCruiseTicket()) {
        final SpecifiedColumn ticket = _specifedCB.xshowDreamCruiseTicket();
        return ticket.getTableAliasName();
    }
    final ColumnRealName columnRealName = _specifedCB.getSqlClause().getSpecifiedColumnRealNameAsOne();
    if (columnRealName != null) {
        return columnRealName.getTableAliasName();
    }
    return _specifedCB.getSqlClause().getSpecifiedDerivingAliasNameAsOne();
}
Also used : SpecifiedColumn(org.dbflute.cbean.dream.SpecifiedColumn) ColumnRealName(org.dbflute.dbmeta.name.ColumnRealName)

Aggregations

ColumnRealName (org.dbflute.dbmeta.name.ColumnRealName)21 ColumnSqlName (org.dbflute.dbmeta.name.ColumnSqlName)8 ColumnInfo (org.dbflute.dbmeta.info.ColumnInfo)5 ColumnFunctionCipher (org.dbflute.cbean.cipher.ColumnFunctionCipher)2 SpecifiedColumn (org.dbflute.cbean.dream.SpecifiedColumn)2 OrScopeQueryAndPartQueryClause (org.dbflute.cbean.sqlclause.query.OrScopeQueryAndPartQueryClause)2 QueryClause (org.dbflute.cbean.sqlclause.query.QueryClause)2 StringQueryClause (org.dbflute.cbean.sqlclause.query.StringQueryClause)2 DBMeta (org.dbflute.dbmeta.DBMeta)2 ArrayList (java.util.ArrayList)1 GearedCipherManager (org.dbflute.cbean.cipher.GearedCipherManager)1 QueryModeProvider (org.dbflute.cbean.cvalue.ConditionValue.QueryModeProvider)1 SqlClause (org.dbflute.cbean.sqlclause.SqlClause)1 FixedConditionResolver (org.dbflute.cbean.sqlclause.join.FixedConditionResolver)1 OnQueryStringConnector (org.dbflute.dbway.OnQueryStringConnector)1 IllegalConditionBeanOperationException (org.dbflute.exception.IllegalConditionBeanOperationException)1