Class RetryConnectionHelper
java.lang.Object
com.ibm.jbatch.tck.artifacts.chunkartifacts.RetryConnectionHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcleanupConnection(Connection conn, ResultSet rs, PreparedStatement statement) closes connection to DBstatic ConnectiongetConnection(DataSource dataSource) static ConnectiongetConnection(DataSource dataSource, boolean autoCommit)
-
Field Details
-
jndiName
- See Also:
-
INSERT_NUMBERS
- See Also:
-
UPDATE_NUMBERS
- See Also:
-
SELECT_NUMBERS
- See Also:
-
-
Constructor Details
-
RetryConnectionHelper
public RetryConnectionHelper()
-
-
Method Details
-
getConnection
- Throws:
SQLException
-
getConnection
public static Connection getConnection(DataSource dataSource, boolean autoCommit) throws SQLException - Throws:
SQLException
-
cleanupConnection
closes connection to DB- Parameters:
conn- - connection object to closers- - result set object to closestatement- - statement object to close
-