|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.jdbc.support.JdbcAccessor
org.springframework.jdbc.core.JdbcTemplate
com.ca.jcs.jdbc.JDBCTimeoutTemplate
public class JDBCTimeoutTemplate
JdbcTemplate with support for timeout per Statement
| Field Summary | |
|---|---|
protected int |
transactionTimeout
|
| Fields inherited from class org.springframework.jdbc.support.JdbcAccessor |
|---|
logger |
| Constructor Summary | |
|---|---|
JDBCTimeoutTemplate(DataSource dataSource)
|
|
JDBCTimeoutTemplate(DataSource dataSource,
int transactionTimeout)
|
|
| Method Summary | |
|---|---|
protected void |
applyStatementSettings(Statement stmt)
Prepare the given JDBC Statement (or PreparedStatement or CallableStatement), applying statement settings such as fetch size, max rows, and query timeout. |
void |
setTransactionTimeout(int transactionTimeout)
|
| Methods inherited from class org.springframework.jdbc.core.JdbcTemplate |
|---|
batchUpdate, batchUpdate, call, createConnectionProxy, execute, execute, execute, execute, execute, execute, execute, extractOutputParameters, extractReturnedResultSets, getColumnMapRowMapper, getFetchSize, getMaxRows, getNativeJdbcExtractor, getSingleColumnRowMapper, isIgnoreWarnings, processResultSet, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, queryForInt, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForLong, queryForMap, queryForMap, queryForMap, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForRowSet, queryForRowSet, queryForRowSet, setFetchSize, setIgnoreWarnings, setMaxRows, setNativeJdbcExtractor, update, update, update, update, update, update, update |
| Methods inherited from class org.springframework.jdbc.support.JdbcAccessor |
|---|
afterPropertiesSet, getDataSource, getExceptionTranslator, isLazyInit, setDatabaseProductName, setDataSource, setExceptionTranslator, setLazyInit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int transactionTimeout
| Constructor Detail |
|---|
public JDBCTimeoutTemplate(DataSource dataSource)
public JDBCTimeoutTemplate(DataSource dataSource,
int transactionTimeout)
| Method Detail |
|---|
public void setTransactionTimeout(int transactionTimeout)
protected void applyStatementSettings(Statement stmt)
throws SQLException
applyStatementSettings in class org.springframework.jdbc.core.JdbcTemplateSQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||