Class CmsSetupDBWrapper

java.lang.Object
org.opencms.setup.CmsSetupDBWrapper

public class CmsSetupDBWrapper extends Object
Wrapper to encapsulate, connection, statement and result set for the setup and update wizard.

  • Constructor Details

    • CmsSetupDBWrapper

      Constructor, creates a new CmsSetupDBWrapper.

      Parameters:
      con - the connection to use in this db wrapper.
  • Method Details

    • close

      public void close()
      Closes result set, and statement.

    • createStatement

      public void createStatement() throws SQLException
      Creates a new SQL Statement on the connection of this DB wrapper.

      Throws:
      SQLException - if statement cannot be created
    • createPreparedStatement

      public void createPreparedStatement(String query, List<Object> params) throws SQLException
      Creates a new SQL Statement on the connection of this DB wrapper.

      Parameters:
      query - the DB query to use
      params - List of additional parameters
      Throws:
      SQLException - if statement cannot be created
    • excecuteQuery

      public void excecuteQuery(String query) throws SQLException
      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

      public void excecutePreparedQuery() throws SQLException
      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