com.ibm.jbatch.tck.artifacts.chunkartifacts
Class RetryConnectionHelper

java.lang.Object
  extended by com.ibm.jbatch.tck.artifacts.chunkartifacts.RetryConnectionHelper

public class RetryConnectionHelper
extends Object


Field Summary
static String INSERT_NUMBERS
           
static String jndiName
           
static String SELECT_NUMBERS
           
static String UPDATE_NUMBERS
           
 
Constructor Summary
RetryConnectionHelper()
           
 
Method Summary
static void cleanupConnection(Connection conn, ResultSet rs, PreparedStatement statement)
          closes connection to DB
static Connection getConnection(DataSource dataSource)
           
static Connection getConnection(DataSource dataSource, boolean autoCommit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jndiName

public static final String jndiName
See Also:
Constant Field Values

INSERT_NUMBERS

public static final String INSERT_NUMBERS
See Also:
Constant Field Values

UPDATE_NUMBERS

public static final String UPDATE_NUMBERS
See Also:
Constant Field Values

SELECT_NUMBERS

public static final String SELECT_NUMBERS
See Also:
Constant Field Values
Constructor Detail

RetryConnectionHelper

public RetryConnectionHelper()
Method Detail

getConnection

public static Connection getConnection(DataSource dataSource)
                                throws SQLException
Throws:
SQLException

getConnection

public static Connection getConnection(DataSource dataSource,
                                       boolean autoCommit)
                                throws SQLException
Throws:
SQLException

cleanupConnection

public static void cleanupConnection(Connection conn,
                                     ResultSet rs,
                                     PreparedStatement statement)
closes connection to DB

Parameters:
conn - - connection object to close
rs - - result set object to close
statement - - statement object to close


Copyright © 2013. All Rights Reserved.