Search in sources :

Example 1 with InnerJoinNoWaySpeaker

use of org.dbflute.cbean.sqlclause.join.InnerJoinNoWaySpeaker in project dbflute-core by dbflute.

the class HpAbstractSpecification method reflectDreamCruiseWhereUsedToJoin.

protected void reflectDreamCruiseWhereUsedToJoin(String relationPath, String tableAliasName) {
    if (!_baseCB.xisDreamCruiseShip()) {
        return;
    }
    // to suppress CountLeastJoin of the relation
    // the DreamCruise might be used in where clause (not correctly but safety logic)
    final ConditionBean portCB = _baseCB.xgetDreamCruiseDeparturePort();
    final QueryUsedAliasInfo usedAliasInfo = new QueryUsedAliasInfo(tableAliasName, new InnerJoinNoWaySpeaker() {

        public boolean isNoWayInner() {
            // non fact of inner-join, because judge is so difficult when DreamCruise
            return true;
        }
    });
    portCB.getSqlClause().reflectWhereUsedToJoin(usedAliasInfo);
}
Also used : QueryUsedAliasInfo(org.dbflute.cbean.sqlclause.query.QueryUsedAliasInfo) ConditionBean(org.dbflute.cbean.ConditionBean) InnerJoinNoWaySpeaker(org.dbflute.cbean.sqlclause.join.InnerJoinNoWaySpeaker)

Aggregations

ConditionBean (org.dbflute.cbean.ConditionBean)1 InnerJoinNoWaySpeaker (org.dbflute.cbean.sqlclause.join.InnerJoinNoWaySpeaker)1 QueryUsedAliasInfo (org.dbflute.cbean.sqlclause.query.QueryUsedAliasInfo)1