public abstract class ExecutablePreparedStatementBase extends Object implements ExecutablePreparedStatement
| Modifier | Constructor and Description |
|---|---|
protected |
ExecutablePreparedStatementBase(Database database,
String catalogName,
String schemaName,
String tableName,
List<? extends ColumnConfig> columns,
ChangeSet changeSet,
ResourceAccessor resourceAccessor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
attachParams(List<? extends 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 |
getCatalogName() |
ChangeSet |
getChangeSet() |
List<? extends ColumnConfig> |
getColumns() |
protected long |
getContentLength(InputStream in) |
protected long |
getContentLength(Reader reader) |
ResourceAccessor |
getResourceAccessor() |
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<? extends 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<? extends 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 boolean skipOnUnsupported()
skipOnUnsupported in interface SqlStatementpublic String getCatalogName()
public String getSchemaName()
public String getTableName()
public List<? extends ColumnConfig> getColumns()
public ChangeSet getChangeSet()
public ResourceAccessor getResourceAccessor()
protected long getContentLength(InputStream in) throws IOException
IOExceptionprotected long getContentLength(Reader reader) throws IOException
IOExceptionCopyright © 2022 Liquibase.org. All rights reserved.