org.kuali.common.jdbc
Class DefaultJdbcService
java.lang.Object
org.kuali.common.jdbc.DefaultJdbcService
- All Implemented Interfaces:
- JdbcService
public class DefaultJdbcService
- extends Object
- implements JdbcService
Method Summary |
protected void |
doMetaData(JdbcContext context)
|
protected long |
excecuteSupplier(Statement statement,
JdbcContext context,
SqlSupplier supplier)
|
protected long |
executeMultiThreaded(JdbcContext context)
|
protected long |
executeSequentially(JdbcContext context)
|
ExecutionResult |
executeSql(DataSource dataSource,
List<String> sql)
Execute a list of SQL statements |
ExecutionResult |
executeSql(DataSource dataSource,
String sql)
Execute a single SQL statement |
ExecutionResult |
executeSql(JdbcContext context)
Execute SQL as dictated by the context |
protected int |
executeSql(Statement statement,
String sql,
JdbcContext context)
|
protected JdbcContext |
getJdbcContext(JdbcContext original,
SqlBucket bucket,
SqlListener listener)
|
protected JdbcMetaData |
getJdbcMetaData(DatabaseMetaData dbmd)
|
JdbcMetaData |
getJdbcMetaData(DataSource dataSource)
Get JDBC related metadata |
protected List<SqlBucketContext> |
getSqlBucketContexts(List<SqlBucket> buckets,
JdbcContext context,
SqlListener listener)
|
protected List<SqlBucket> |
getSqlBuckets(JdbcContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultJdbcService
public DefaultJdbcService()
executeSql
public ExecutionResult executeSql(JdbcContext context)
- Description copied from interface:
JdbcService
- Execute SQL as dictated by the context
- Specified by:
executeSql
in interface JdbcService
doMetaData
protected void doMetaData(JdbcContext context)
executeMultiThreaded
protected long executeMultiThreaded(JdbcContext context)
executeSql
public ExecutionResult executeSql(DataSource dataSource,
String sql)
- Description copied from interface:
JdbcService
- Execute a single SQL statement
- Specified by:
executeSql
in interface JdbcService
executeSql
public ExecutionResult executeSql(DataSource dataSource,
List<String> sql)
- Description copied from interface:
JdbcService
- Execute a list of SQL statements
- Specified by:
executeSql
in interface JdbcService
getSqlBucketContexts
protected List<SqlBucketContext> getSqlBucketContexts(List<SqlBucket> buckets,
JdbcContext context,
SqlListener listener)
getJdbcContext
protected JdbcContext getJdbcContext(JdbcContext original,
SqlBucket bucket,
SqlListener listener)
getSqlBuckets
protected List<SqlBucket> getSqlBuckets(JdbcContext context)
executeSequentially
protected long executeSequentially(JdbcContext context)
excecuteSupplier
protected long excecuteSupplier(Statement statement,
JdbcContext context,
SqlSupplier supplier)
throws SQLException
- Throws:
SQLException
executeSql
protected int executeSql(Statement statement,
String sql,
JdbcContext context)
throws SQLException
- Throws:
SQLException
getJdbcMetaData
public JdbcMetaData getJdbcMetaData(DataSource dataSource)
- Description copied from interface:
JdbcService
- Get JDBC related metadata
- Specified by:
getJdbcMetaData
in interface JdbcService
getJdbcMetaData
protected JdbcMetaData getJdbcMetaData(DatabaseMetaData dbmd)
throws SQLException
- Throws:
SQLException
Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.