public class DBConnectionPoolsHolder extends Object
Modifier and Type | Method and Description |
---|---|
ResultSet |
executeQuery(DBConnectionDetails dbConnectionDetails,
String queryStr) |
CachedRowSet |
executeStoredProcedure(DBConnectionDetails dbConnectionDetails,
String storedProcName,
Object... params)
Executes a stored procedure query with the given name and parameters.
|
int |
executeStoredProcedureUpdate(DBConnectionDetails dbConnectionDetails,
String storedProcName,
Object... params)
Executes a stored procedure update with the given name and parameters.
|
int |
executeUpdate(DBConnectionDetails dbConnectionDetails,
String updateStr) |
static DBConnectionPoolsHolder |
getInstance() |
public static DBConnectionPoolsHolder getInstance()
public ResultSet executeQuery(DBConnectionDetails dbConnectionDetails, String queryStr)
dbConnectionDetails
- queryStr
- public int executeUpdate(DBConnectionDetails dbConnectionDetails, String updateStr)
dbConnectionDetails
- updateStr
- public CachedRowSet executeStoredProcedure(DBConnectionDetails dbConnectionDetails, String storedProcName, Object... params)
dbConnectionDetails
- The connection details for the database.storedProcName
- The name of the stored procedure.params
- The parameters to be passed to the stored procedure.public int executeStoredProcedureUpdate(DBConnectionDetails dbConnectionDetails, String storedProcName, Object... params)
dbConnectionDetails
- The connection details for the database.storedProcName
- The name of the stored procedure.params
- The parameters to be passed to the stored procedure.