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 JDBCNamedSqlExecutor
public org.springframework.jdbc.support.rowset.SqlRowSet queryForSqlRowSet(String sql, DataSource dataSource, Context context) throws SQLException
queryForSqlRowSet
in interface JDBCNamedSqlExecutor
SQLException
public int execute(String sql, DataSource dataSource, Context context) throws SQLException
execute
in interface JDBCNamedSqlExecutor
SQLException
public void extractResultSetCallback(String sql, DataSource dataSource, Context context, ResultSetCallback callback) throws SQLException
extractResultSetCallback
in interface JDBCNamedSqlExecutor
SQLException
Copyright © 2006–2018 TinyGroup. All rights reserved.