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