Search in sources :

Example 1 with OutsideSqlOption

use of org.dbflute.outsidesql.OutsideSqlOption in project dbflute-core by dbflute.

the class AbstractOutsideSqlSelectCommand method generateSpecifiedOutsideSqlUniqueKey.

protected String generateSpecifiedOutsideSqlUniqueKey() {
    final String methodName = getCommandName();
    final String path = _outsideSqlPath;
    final Object pmb = _parameterBean;
    final OutsideSqlOption option = _outsideSqlOption;
    final Class<?> resultType = getResultType();
    return OutsideSqlContext.generateSpecifiedOutsideSqlUniqueKey(methodName, path, pmb, option, resultType);
}
Also used : OutsideSqlOption(org.dbflute.outsidesql.OutsideSqlOption)

Example 2 with OutsideSqlOption

use of org.dbflute.outsidesql.OutsideSqlOption in project dbflute-core by dbflute.

the class AbstractOutsideSqlSelectCommand method beforeGettingSqlExecution.

// ===================================================================================
// Process Callback
// ================
public void beforeGettingSqlExecution() {
    assertStatus("beforeGettingSqlExecution");
    OutsideSqlContext.setOutsideSqlContextOnThread(createOutsideSqlContext());
    // set up fetchNarrowingBean
    final Object pmb = _parameterBean;
    final OutsideSqlOption option = _outsideSqlOption;
    setupFetchBean(pmb, option);
}
Also used : OutsideSqlOption(org.dbflute.outsidesql.OutsideSqlOption)

Example 3 with OutsideSqlOption

use of org.dbflute.outsidesql.OutsideSqlOption in project dbflute-core by dbflute.

the class OutsideSqlExecuteCommand method generateSpecifiedOutsideSqlUniqueKey.

protected String generateSpecifiedOutsideSqlUniqueKey() {
    final String methodName = getCommandName();
    final String path = _outsideSqlPath;
    final Object pmb = _parameterBean;
    final OutsideSqlOption option = _outsideSqlOption;
    return OutsideSqlContext.generateSpecifiedOutsideSqlUniqueKey(methodName, path, pmb, option, null);
}
Also used : OutsideSqlOption(org.dbflute.outsidesql.OutsideSqlOption)

Example 4 with OutsideSqlOption

use of org.dbflute.outsidesql.OutsideSqlOption in project dbflute-core by dbflute.

the class BehaviorCommandInvoker method createOutsideSqlAllFacadeExecutor.

// ===================================================================================
// OutsideSql
// ==========
/**
 * @param <BEHAVIOR> The type of behavior.
 * @param tableDbName The DB name of table. (NotNull)
 * @return The new-created all facade executor of outside SQL. (NotNull)
 */
public <BEHAVIOR> OutsideSqlAllFacadeExecutor<BEHAVIOR> createOutsideSqlAllFacadeExecutor(String tableDbName) {
    final OutsideSqlExecutorFactory factory = _invokerAssistant.assistOutsideSqlExecutorFactory();
    final DBDef dbdef = _invokerAssistant.assistCurrentDBDef();
    // might be null
    final OutsideSqlOption option = _invokerAssistant.assistFirstOutsideSqlOption(tableDbName);
    return factory.createAllFacade(factory.createBasic(this, tableDbName, dbdef, option));
}
Also used : OutsideSqlExecutorFactory(org.dbflute.outsidesql.factory.OutsideSqlExecutorFactory) OutsideSqlOption(org.dbflute.outsidesql.OutsideSqlOption) DBDef(org.dbflute.dbway.DBDef)

Example 5 with OutsideSqlOption

use of org.dbflute.outsidesql.OutsideSqlOption in project dbflute-core by dbflute.

the class AbstractOutsideSqlSelectCommand method setupOutsideSqlContextProperty.

@Override
protected void setupOutsideSqlContextProperty(OutsideSqlContext outsideSqlContext) {
    super.setupOutsideSqlContextProperty(outsideSqlContext);
    final OutsideSqlOption option = _outsideSqlOption;
    final boolean autoPagingLogging = (option.isAutoPaging() || option.isSourcePagingRequestTypeAuto());
    // for logging
    outsideSqlContext.setAutoPagingLogging(autoPagingLogging);
}
Also used : OutsideSqlOption(org.dbflute.outsidesql.OutsideSqlOption)

Aggregations

OutsideSqlOption (org.dbflute.outsidesql.OutsideSqlOption)7 DBDef (org.dbflute.dbway.DBDef)1 OutsideSqlExecutorFactory (org.dbflute.outsidesql.factory.OutsideSqlExecutorFactory)1