public class SimpleJDBCNamedSqlExecutor extends Object implements JDBCNamedSqlExecutor
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CACHE_LIMIT
Default maximum number of entries for this template's SQL cache: 256
|
static String |
GENERATE_KEY |
| Constructor and Description |
|---|
SimpleJDBCNamedSqlExecutor() |
| Modifier and Type | Method and Description |
|---|---|
int |
execute(String sql,
DataSource dataSource,
Context context) |
void |
extractResultSetCallback(String sql,
DataSource dataSource,
Context context,
ResultSetCallback callback) |
int |
getCacheLimit()
Return the maximum number of entries for this template's SQL cache.
|
protected ParsedSql |
getParsedSql(String sql) |
SQLParser |
getSqlParser() |
org.springframework.jdbc.support.rowset.SqlRowSet |
queryForSqlRowSet(String sql,
DataSource dataSource,
Context context) |
void |
setCacheLimit(int cacheLimit)
Specify the maximum number of entries for this template's SQL cache.
|
void |
setSqlParser(SQLParser sqlParser) |
public static final int DEFAULT_CACHE_LIMIT
public static final String GENERATE_KEY
public int getCacheLimit()
public void setCacheLimit(int cacheLimit)
public SQLParser getSqlParser()
public void setSqlParser(SQLParser sqlParser)
setSqlParser in interface JDBCNamedSqlExecutorpublic org.springframework.jdbc.support.rowset.SqlRowSet queryForSqlRowSet(String sql, DataSource dataSource, Context context) throws SQLException
queryForSqlRowSet in interface JDBCNamedSqlExecutorSQLExceptionpublic int execute(String sql, DataSource dataSource, Context context) throws SQLException
execute in interface JDBCNamedSqlExecutorSQLExceptionpublic void extractResultSetCallback(String sql, DataSource dataSource, Context context, ResultSetCallback callback) throws SQLException
extractResultSetCallback in interface JDBCNamedSqlExecutorSQLExceptionCopyright © 2006–2018 TinyGroup. All rights reserved.