Package org.opencms.setup
Class CmsSetupDBWrapper
java.lang.Object
org.opencms.setup.CmsSetupDBWrapper
Wrapper to encapsulate, connection, statement and result set for the setup
and update wizard.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor, creates a new CmsSetupDBWrapper. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes result set, and statement.voidcreatePreparedStatement(String query, List<Object> params) Creates a new SQL Statement on the connection of this DB wrapper.voidCreates a new SQL Statement on the connection of this DB wrapper.voidExecutes a query on the connection and prepared statement of this db wrapper.voidexcecuteQuery(String query) Executes a query on the connection and statement of this db wrapper.Returns the res.
-
Constructor Details
-
CmsSetupDBWrapper
Constructor, creates a new CmsSetupDBWrapper.- Parameters:
con- the connection to use in this db wrapper.
-
-
Method Details
-
close
Closes result set, and statement. -
createPreparedStatement
Creates a new SQL Statement on the connection of this DB wrapper.- Parameters:
query- the DB query to useparams- List of additional parameters- Throws:
SQLException- if statement cannot be created
-
createStatement
Creates a new SQL Statement on the connection of this DB wrapper.- Throws:
SQLException- if statement cannot be created
-
excecutePreparedQuery
Executes a query on the connection and prepared statement of this db wrapper.- Throws:
SQLException- if statement cannot be created
-
excecuteQuery
Executes a query on the connection and statement of this db wrapper.- Parameters:
query- the query to execute- Throws:
SQLException- if statement cannot be created
-
getResultSet
Returns the res.- Returns:
- the res
-