Package liquibase.database
Class PreparedStatementFactory
- java.lang.Object
-
- liquibase.database.PreparedStatementFactory
-
public final class PreparedStatementFactory extends Object
Factory for PreparedStatements
-
-
Constructor Summary
Constructors Constructor Description PreparedStatementFactory(JdbcConnection con)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PreparedStatementcreate(String sql)Creates aPreparedStatementobject for the specified SQL statement.StringtoString()
-
-
-
Constructor Detail
-
PreparedStatementFactory
public PreparedStatementFactory(JdbcConnection con)
-
-
Method Detail
-
create
public PreparedStatement create(String sql) throws DatabaseException
Creates aPreparedStatementobject 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
PreparedStatementobject representing the specified SQL statement - Throws:
DatabaseException- if a database access error occurs or the given SQL statement is invalid
-
-