Package com.softwaremining.sql
Class ACMDbDecorator
java.lang.Object
com.softwaremining.sql.ACMDbDecorator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
commitAndReleaseConnection
(Connection connection, Long _sessionId) getConnection
(Long sessionId) Only used through ShadowTransaction servergetPrimaryKey
(String tableName) protected PreparedStatement
getStatement
(String query, Long sessionId) performExec
(String query, List<Object> theParams) Prepare a Query using parameters passedperformExecForObject
(ISQLWrapper wrapper, String query, Object param) prepare a SQL Statement using a single Parameterint
performIntQuery
(String query) used in COUNT Statements ...int
performIntQueryForObject
(String query, Object param) used in COUNT Statements ...performReadQuery
(String query, List<Object> theParams, int fetchSize) performReadQuery
(String query, List<Object> theParams, int fetchSize, boolean conditionIsLIKE) performReadQueryForObject
(String query, Object param, int resultSetFetchSize)
-
Field Details
-
totalRuntime
public static long totalRuntimefor internal use only ... profiling information
-
-
Constructor Details
-
ACMDbDecorator
-
-
Method Details
-
getDbFeatures
-
getNewConnection
Only used through ShadowTransaction server- Returns:
-
getConnection
-
getStatement
- Throws:
SQLException
-
performIntQuery
used in COUNT Statements ... e.g. SELECT COUNT(*) from TABLE- Parameters:
query
-- Returns:
- Throws:
SQLException
-
performIntQueryForObject
used in COUNT Statements ... e.g. SELECT COUNT(*) from TABLE- Parameters:
query
-param
-- Returns:
- -
- Throws:
SQLException
-
performReadQueryForObject
public ResultSet performReadQueryForObject(String query, Object param, int resultSetFetchSize) throws SQLException - Throws:
SQLException
-
performReadQuery
public ResultSet performReadQuery(String query, List<Object> theParams, int fetchSize) throws SQLException - Throws:
SQLException
-
performReadQuery
public ResultSet performReadQuery(String query, List<Object> theParams, int fetchSize, boolean conditionIsLIKE) throws SQLException - Throws:
SQLException
-
performExecForObject
public PreparedStatement performExecForObject(ISQLWrapper wrapper, String query, Object param) throws SQLException prepare a SQL Statement using a single Parameter- Parameters:
query
-param
- of Integer or String- Returns:
- Throws:
SQLException
-
performExec
Prepare a Query using parameters passed- Parameters:
query
- INSERT INTO Table1 (A , B) VALUES (? , ?)theParams
- - List of Integer or String- Returns:
- preparedStatement
- Throws:
SQLException
-
getPrimaryKey
- Throws:
SQLException
-
commitAndReleaseConnection
-