use of org.dbflute.cbean.cvalue.ConditionValue.QueryModeProvider in project dbflute-core by dbflute.
the class AbstractSqlClause method doRegisterWhereClause.
// -----------------------------------------------------
// Assist Helper
// -------------
protected // the list of query clause
void doRegisterWhereClause(// the list of query clause
List<QueryClause> clauseList, // basic resources
ColumnRealName columnRealName, // basic resources
ConditionKey key, // basic resources
ConditionValue value, // optional resources
ColumnFunctionCipher cipher, // optional resources
ConditionOption option, final boolean inline, final boolean onClause) {
key.addWhereClause(new QueryModeProvider() {
public boolean isOrScopeQuery() {
return isOrScopeQueryEffective();
}
public boolean isInline() {
return inline;
}
public boolean isOnClause() {
return onClause;
}
}, clauseList, columnRealName, value, cipher, option);
markOrScopeQueryAndPart(clauseList);
}
use of org.dbflute.cbean.cvalue.ConditionValue.QueryModeProvider in project dbflute-core by dbflute.
the class AbstractConditionQuery method setupConditionValueAndRegisterWhereClause.
protected void setupConditionValueAndRegisterWhereClause(ConditionKey key, Object value, ConditionValue cvalue, String columnDbName, ConditionOption option) {
final DBMeta dbmeta = xgetLocalDBMeta();
final ColumnInfo columnInfo = dbmeta.findColumnInfo(columnDbName);
final QueryModeProvider queryModeProvider = xcreateQueryModeProvider();
final Object filtered = filterConditionValueIfNeeds(key, value, cvalue, columnDbName, option, columnInfo);
final String propertyName = columnInfo.getPropertyName();
final String uncapPropName = initUncap(propertyName);
// if Java, it is necessary to use uncapPropName
final String location = xgetLocation(uncapPropName);
key.setupConditionValue(queryModeProvider, cvalue, filtered, location, option);
final ColumnRealName columnRealName = toColumnRealName(columnDbName);
final ColumnFunctionCipher cipher = xgetSqlClause().findColumnFunctionCipher(columnInfo);
final String usedAliasName = xgetAliasName();
xgetSqlClause().registerWhereClause(columnRealName, key, cvalue, cipher, option, usedAliasName);
}
Aggregations