public abstract class ExecutablePreparedStatementBase extends Object implements ExecutablePreparedStatement
| Modifier | Constructor and Description |
|---|---|
protected |
ExecutablePreparedStatementBase(Database database,
String catalogName,
String schemaName,
String tableName,
List<ColumnConfig> columns,
ChangeSet changeSet,
ResourceAccessor resourceAccessor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
attachParams(List<ColumnConfig> cols,
PreparedStatement stmt)
Sets the list of bind variables for the execution of a DML statement
|
void |
execute(PreparedStatementFactory factory)
Execute the prepared statement
|
protected void |
executePreparedStatement(PreparedStatement stmt) |
protected abstract String |
generateSql(List<ColumnConfig> cols) |
String |
getAbsolutePath(String path)
Gets absolute and normalized path for path.
|
String |
getCatalogName() |
List<ColumnConfig> |
getColumns() |
String |
getSchemaName() |
String |
getTableName() |
boolean |
skipOnUnsupported() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontinueOnErrorprotected Database database
protected ExecutablePreparedStatementBase(Database database, String catalogName, String schemaName, String tableName, List<ColumnConfig> columns, ChangeSet changeSet, ResourceAccessor resourceAccessor)
public void execute(PreparedStatementFactory factory) throws DatabaseException
ExecutablePreparedStatementexecute in interface ExecutablePreparedStatementfactory - for creating a PreparedStatement objectDatabaseExceptionprotected void executePreparedStatement(PreparedStatement stmt) throws SQLException
SQLExceptionprotected void attachParams(List<ColumnConfig> cols, PreparedStatement stmt) throws SQLException, DatabaseException
cols - a list of columns with their designated valuesstmt - the PreparedStatement to which the values are to be attachedSQLException - if JDBC objects to a setting (non-existent bind number, wrong column type etc.)DatabaseException - if an I/O error occurs during the read of LOB valuesprotected abstract String generateSql(List<ColumnConfig> cols)
public String getAbsolutePath(String path)
path - Absolute or relative path.public boolean skipOnUnsupported()
skipOnUnsupported in interface SqlStatementpublic String getCatalogName()
public String getSchemaName()
public String getTableName()
public List<ColumnConfig> getColumns()
Copyright © 2019 Liquibase.org. All rights reserved.