com.ibm.jbatch.tck.artifacts.chunkartifacts
Class RetryConnectionHelper
java.lang.Object
com.ibm.jbatch.tck.artifacts.chunkartifacts.RetryConnectionHelper
public class RetryConnectionHelper
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
RetryConnectionHelper
public RetryConnectionHelper()
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 closers - - result set object to closestatement - - statement object to close
Copyright © 2013. All Rights Reserved.