org.kuali.common.jdbc.service
Class DefaultJdbcService

java.lang.Object
  extended by org.kuali.common.jdbc.service.DefaultJdbcService
All Implemented Interfaces:
JdbcService

public class DefaultJdbcService
extends Object
implements JdbcService


Constructor Summary
DefaultJdbcService()
           
 
Method Summary
protected  ExecutionStats excecuteSupplier(Statement statement, JdbcContext context, SqlSupplier supplier)
           
protected  ExecutionStats executeMultiThreaded(JdbcContext context)
           
protected  ExecutionStats 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  Driver getDriver(DatabaseMetaData dbmd)
           
protected  JdbcContext getJdbcContext(JdbcContext original, SqlBucket bucket, SqlListener listener)
           
protected  JdbcMetaData getJdbcMetaData(DatabaseMetaData dbmd)
           
 JdbcMetaData getJdbcMetaData(DataSource dataSource)
          Get JDBC related metadata
protected  SqlBucket getNewBucket(SqlBucket bucket, SqlSupplier supplier)
           
protected  Product getProduct(DatabaseMetaData dbmd)
           
protected  List<SqlBucketContext> getSqlBucketContexts(List<SqlBucket> buckets, JdbcContext context, SqlListener listener)
           
protected  List<SqlBucket> getSqlBuckets(JdbcContext context)
           
protected  ThreadsContext getThreadsContext(JdbcContext context)
           
protected  void logStats(ThreadSafeListener listener, org.kuali.common.threads.ExecutionStatistics stats, List<SqlBucket> buckets)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJdbcService

public DefaultJdbcService()
Method Detail

executeSql

public ExecutionResult executeSql(JdbcContext context)
Description copied from interface: JdbcService
Execute SQL as dictated by the context

Specified by:
executeSql in interface JdbcService

getThreadsContext

protected ThreadsContext getThreadsContext(JdbcContext context)

executeMultiThreaded

protected ExecutionStats executeMultiThreaded(JdbcContext context)

logStats

protected void logStats(ThreadSafeListener listener,
                        org.kuali.common.threads.ExecutionStatistics stats,
                        List<SqlBucket> buckets)

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)

getNewBucket

protected SqlBucket getNewBucket(SqlBucket bucket,
                                 SqlSupplier supplier)

executeSequentially

protected ExecutionStats executeSequentially(JdbcContext context)

excecuteSupplier

protected ExecutionStats 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

getProduct

protected Product getProduct(DatabaseMetaData dbmd)
                      throws SQLException
Throws:
SQLException

getDriver

protected Driver getDriver(DatabaseMetaData dbmd)
                    throws SQLException
Throws:
SQLException


Copyright © 2010-2014 The Kuali Foundation. All Rights Reserved.