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();
}
Aggregations