com.ibm.jbatch.tck.artifacts.chunkartifacts
Class ConnectionHelper
java.lang.Object
com.ibm.jbatch.tck.artifacts.chunkartifacts.ConnectionHelper
public class ConnectionHelper
- 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_INVENTORY
public static final String INSERT_INVENTORY
- See Also:
- Constant Field Values
UPDATE_INVENTORY
public static final String UPDATE_INVENTORY
- See Also:
- Constant Field Values
SELECT_INVENTORY
public static final String SELECT_INVENTORY
- See Also:
- Constant Field Values
DELETE_INVENTORY
public static final String DELETE_INVENTORY
- See Also:
- Constant Field Values
DELETE_ALL_ORDERS
public static final String DELETE_ALL_ORDERS
- See Also:
- Constant Field Values
INSERT_ORDER
public static final String INSERT_ORDER
- See Also:
- Constant Field Values
COUNT_ORDERS
public static final String COUNT_ORDERS
- See Also:
- Constant Field Values
ConnectionHelper
public ConnectionHelper()
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.