Search in sources :

Example 36 with LikeSearchOption

use of org.dbflute.cbean.coption.LikeSearchOption in project dbflute-core by dbflute.

the class AbstractConditionQuery method xcLSOP.

// ===================================================================================
// Create Option
// =============
// -----------------------------------------------------
// LikeSearch
// ----------
protected LikeSearchOption xcLSOP(ConditionOptionCall<LikeSearchOption> opCall) {
    // called by template: createLikeSearchOption()
    final LikeSearchOption op = newLikeSearchOption();
    opCall.callback(op);
    return op;
}
Also used : LikeSearchOption(org.dbflute.cbean.coption.LikeSearchOption)

Example 37 with LikeSearchOption

use of org.dbflute.cbean.coption.LikeSearchOption in project dbflute-core by dbflute.

the class MelodicBoundValueTracer method adjustLikeSearchDBWay.

@Override
protected void adjustLikeSearchDBWay(FilteringBindOption option) {
    if (option == null) {
        return;
    }
    final DBWay dbway = ResourceContext.currentDBDef().dbway();
    if (option instanceof LikeSearchOption) {
        ((LikeSearchOption) option).acceptOriginalWildCardList(dbway.getOriginalWildCardList());
    }
    option.acceptStringConnector(dbway.getStringConnector());
}
Also used : LikeSearchOption(org.dbflute.cbean.coption.LikeSearchOption) DBWay(org.dbflute.dbway.DBWay)

Aggregations

LikeSearchOption (org.dbflute.cbean.coption.LikeSearchOption)37 SqlAnalyzer (org.dbflute.twowaysql.SqlAnalyzer)33 CommandContext (org.dbflute.twowaysql.context.CommandContext)31 List (java.util.List)5 EndCommentNotFoundException (org.dbflute.twowaysql.exception.EndCommentNotFoundException)2 MelodicNodeAdviceFactory (org.dbflute.bhv.core.melodicsql.MelodicNodeAdviceFactory)1 SpecifiedColumn (org.dbflute.cbean.dream.SpecifiedColumn)1 DBWay (org.dbflute.dbway.DBWay)1 BindVariableCommentIllegalParameterBeanSpecificationException (org.dbflute.twowaysql.exception.BindVariableCommentIllegalParameterBeanSpecificationException)1 ForCommentParameterNullElementException (org.dbflute.twowaysql.exception.ForCommentParameterNullElementException)1 LoopCurrentVariableOutOfForCommentException (org.dbflute.twowaysql.exception.LoopCurrentVariableOutOfForCommentException)1