use of org.dbflute.jdbc.StatementConfig in project dbflute-core by dbflute.
the class DeleteOption method createStatementConfig.
protected StatementConfig createStatementConfig(StatementConfigCall<StatementConfig> configCall) {
if (configCall == null) {
throw new IllegalArgumentException("The argument 'confLambda' should not be null.");
}
final StatementConfig config = newStatementConfig();
configCall.callback(config);
return config;
}
use of org.dbflute.jdbc.StatementConfig in project dbflute-core by dbflute.
the class TnStatementFactoryImpl method createPreparedStatement.
// ===================================================================================
// PreparedStatement
// =================
public PreparedStatement createPreparedStatement(Connection conn, String sql) {
final StatementConfig config = findStatementConfigOnThread();
final int resultSetType = getResultSetType(config);
final int resultSetConcurrency = getResultSetConcurrency(config);
if (isInternalDebugEnabled()) {
_log.debug("...Preparing statement:(sql, " + resultSetType + ", " + resultSetConcurrency + ")");
}
final PreparedStatement ps = prepareStatement(conn, sql, resultSetType, resultSetConcurrency);
reflectStatementOptions(ps, config);
return ps;
}
use of org.dbflute.jdbc.StatementConfig in project dbflute-core by dbflute.
the class TnStatementFactoryImpl method createCallableStatement.
// ===================================================================================
// CallableStatement
// =================
public CallableStatement createCallableStatement(Connection conn, String sql) {
final StatementConfig config = findStatementConfigOnThread();
final int resultSetType = getResultSetType(config);
final int resultSetConcurrency = getResultSetConcurrency(config);
if (isInternalDebugEnabled()) {
_log.debug("...Preparing callable:(sql, " + resultSetType + ", " + resultSetConcurrency + ")");
}
final CallableStatement cs = prepareCall(conn, sql, resultSetType, resultSetConcurrency);
reflectStatementOptions(cs, config);
return cs;
}
use of org.dbflute.jdbc.StatementConfig in project dbflute-core by dbflute.
the class TnStatementFactoryImpl method reflectStatementOptions.
// ===================================================================================
// Statement Reflection
// ====================
// deep logic here
protected void reflectStatementOptions(PreparedStatement ps, StatementConfig config) {
final StatementConfig actualConfig = getActualStatementConfig(config);
doReflectStatementOptions(ps, actualConfig);
}
Aggregations