com.ibm.jbatch.tck.artifacts.chunkartifacts
Class ConnectionHelper
java.lang.Object
com.ibm.jbatch.tck.artifacts.chunkartifacts.ConnectionHelper
public class ConnectionHelper
- extends java.lang.Object
|
Method Summary |
static void |
cleanupConnection(java.sql.Connection conn,
java.sql.ResultSet rs,
java.sql.PreparedStatement statement)
closes connection to DB |
static java.sql.Connection |
getConnection(javax.sql.DataSource dataSource)
|
static java.sql.Connection |
getConnection(javax.sql.DataSource dataSource,
boolean autoCommit)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jndiName
public static final java.lang.String jndiName
- See Also:
- Constant Field Values
INSERT_INVENTORY
public static final java.lang.String INSERT_INVENTORY
- See Also:
- Constant Field Values
UPDATE_INVENTORY
public static final java.lang.String UPDATE_INVENTORY
- See Also:
- Constant Field Values
SELECT_INVENTORY
public static final java.lang.String SELECT_INVENTORY
- See Also:
- Constant Field Values
DELETE_INVENTORY
public static final java.lang.String DELETE_INVENTORY
- See Also:
- Constant Field Values
DELETE_ALL_ORDERS
public static final java.lang.String DELETE_ALL_ORDERS
- See Also:
- Constant Field Values
INSERT_ORDER
public static final java.lang.String INSERT_ORDER
- See Also:
- Constant Field Values
COUNT_ORDERS
public static final java.lang.String COUNT_ORDERS
- See Also:
- Constant Field Values
ConnectionHelper
public ConnectionHelper()
getConnection
public static java.sql.Connection getConnection(javax.sql.DataSource dataSource)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getConnection
public static java.sql.Connection getConnection(javax.sql.DataSource dataSource,
boolean autoCommit)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
cleanupConnection
public static void cleanupConnection(java.sql.Connection conn,
java.sql.ResultSet rs,
java.sql.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.