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
ConstructorDescriptionConstructor, creates a new CmsSetupDBWrapper. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes result set, and statement.void
createPreparedStatement
(String query, List<Object> params) Creates a new SQL Statement on the connection of this DB wrapper.void
Creates a new SQL Statement on the connection of this DB wrapper.void
Executes a query on the connection and prepared statement of this db wrapper.void
excecuteQuery
(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. -
createStatement
Creates a new SQL Statement on the connection of this DB wrapper.- Throws:
SQLException
- if statement cannot be created
-
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
-
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
-
excecutePreparedQuery
Executes a query on the connection and prepared statement of this db wrapper.- Throws:
SQLException
- if statement cannot be created
-
getResultSet
Returns the res.- Returns:
- the res
-