public class NoTxJdbcTemplate
extends org.springframework.jdbc.core.JdbcTemplate
| 构造器和说明 |
|---|
NoTxJdbcTemplate() |
NoTxJdbcTemplate(DataSource dataSource) |
NoTxJdbcTemplate(DataSource dataSource,
boolean lazyInit) |
NoTxJdbcTemplate(DataSource dataSource,
boolean lazyInit,
DBUtil.DBType dbType) |
NoTxJdbcTemplate(DataSource dataSource,
DBUtil.DBType dbType) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
execute(org.springframework.jdbc.core.CallableStatementCreator csc,
org.springframework.jdbc.core.CallableStatementCallback<T> action) |
<T> T |
execute(org.springframework.jdbc.core.ConnectionCallback<T> action) |
<T> T |
execute(org.springframework.jdbc.core.PreparedStatementCreator psc,
org.springframework.jdbc.core.PreparedStatementCallback<T> action) |
<T> T |
execute(org.springframework.jdbc.core.StatementCallback<T> action) |
static Connection |
getConnection(DataSource dataSource)
Obtain a Connection from the given DataSource.
|
DBUtil.DBType |
getDbType() |
void |
setDbType(DBUtil.DBType dbType) |
batchUpdate, batchUpdate, batchUpdate, batchUpdate, batchUpdate, call, execute, execute, execute, getFetchSize, getMaxRows, getQueryTimeout, isIgnoreWarnings, isResultsMapCaseInsensitive, isSkipResultsProcessing, isSkipUndeclaredResults, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, queryForList, queryForList, queryForList, queryForList, queryForList, queryForList, queryForList, queryForMap, queryForMap, queryForMap, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForRowSet, queryForRowSet, queryForRowSet, setFetchSize, setIgnoreWarnings, setMaxRows, setQueryTimeout, setResultsMapCaseInsensitive, setSkipResultsProcessing, setSkipUndeclaredResults, update, update, update, update, update, updatepublic NoTxJdbcTemplate()
public NoTxJdbcTemplate(DataSource dataSource)
public NoTxJdbcTemplate(DataSource dataSource, boolean lazyInit)
public NoTxJdbcTemplate(DataSource dataSource, DBUtil.DBType dbType)
public NoTxJdbcTemplate(DataSource dataSource, boolean lazyInit, DBUtil.DBType dbType)
public static Connection getConnection(DataSource dataSource) throws org.springframework.jdbc.CannotGetJdbcConnectionException
dataSource - the DataSource to obtain Connections fromorg.springframework.jdbc.CannotGetJdbcConnectionException - if the attempt to get a Connection failedDataSourceUtils.getConnection(DataSource)@Nullable
public <T> T execute(org.springframework.jdbc.core.ConnectionCallback<T> action)
throws org.springframework.dao.DataAccessException
execute 在接口中 org.springframework.jdbc.core.JdbcOperationsexecute 在类中 org.springframework.jdbc.core.JdbcTemplateorg.springframework.dao.DataAccessException@Nullable
public <T> T execute(org.springframework.jdbc.core.StatementCallback<T> action)
throws org.springframework.dao.DataAccessException
execute 在接口中 org.springframework.jdbc.core.JdbcOperationsexecute 在类中 org.springframework.jdbc.core.JdbcTemplateorg.springframework.dao.DataAccessException@Nullable
public <T> T execute(org.springframework.jdbc.core.PreparedStatementCreator psc,
org.springframework.jdbc.core.PreparedStatementCallback<T> action)
throws org.springframework.dao.DataAccessException
execute 在接口中 org.springframework.jdbc.core.JdbcOperationsexecute 在类中 org.springframework.jdbc.core.JdbcTemplateorg.springframework.dao.DataAccessException@Nullable
public <T> T execute(org.springframework.jdbc.core.CallableStatementCreator csc,
org.springframework.jdbc.core.CallableStatementCallback<T> action)
throws org.springframework.dao.DataAccessException
execute 在接口中 org.springframework.jdbc.core.JdbcOperationsexecute 在类中 org.springframework.jdbc.core.JdbcTemplateorg.springframework.dao.DataAccessExceptionpublic DBUtil.DBType getDbType()
public void setDbType(DBUtil.DBType dbType)
Copyright © 2022 hellothomas. All rights reserved.