Class PreparedStatementFactory

java.lang.Object
liquibase.database.PreparedStatementFactory

public final class PreparedStatementFactory extends Object
Factory for PreparedStatements
  • Constructor Details

    • PreparedStatementFactory

      public PreparedStatementFactory(JdbcConnection con)
  • Method Details

    • create

      public PreparedStatement create(String sql) throws DatabaseException
      Creates a PreparedStatement object for the specified SQL statement. The SQL statement may be pre-compiled by the driver depending on its support.
      Parameters:
      sql - the SQL statement to execute
      Returns:
      a PreparedStatement object representing the specified SQL statement
      Throws:
      DatabaseException - if a database access error occurs or the given SQL statement is invalid
    • toString

      public String toString()
      Overrides:
      toString in class Object