public class RetryConnectionHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
INSERT_NUMBERS |
static String |
jndiName |
static String |
SELECT_NUMBERS |
static String |
UPDATE_NUMBERS |
Constructor and Description |
---|
RetryConnectionHelper() |
Modifier and Type | Method and Description |
---|---|
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) |
public static final String jndiName
public static final String INSERT_NUMBERS
public static final String UPDATE_NUMBERS
public static final String SELECT_NUMBERS
public static Connection getConnection(DataSource dataSource) throws SQLException
SQLException
public static Connection getConnection(DataSource dataSource, boolean autoCommit) throws SQLException
SQLException
public static void cleanupConnection(Connection conn, ResultSet rs, PreparedStatement statement)
conn
- - connection object to closers
- - result set object to closestatement
- - statement object to close© Copyright 2013, 2020 International Business Machines Corp. and others
Licensed under the Apache License, Version 2.0