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 |
getAbsolutePath(String path)
Gets absolute and normalized path for path.
|
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, wait
continueOnError
protected 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
ExecutablePreparedStatement
execute
in interface ExecutablePreparedStatement
factory
- for creating a PreparedStatement
objectDatabaseException
protected void executePreparedStatement(PreparedStatement stmt) throws SQLException
SQLException
protected 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 String getAbsolutePath(String path)
path
- Absolute or relative path.public boolean skipOnUnsupported()
skipOnUnsupported
in interface SqlStatement
public 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
IOException
protected long getContentLength(Reader reader) throws IOException
IOException
Copyright © 2021 Liquibase.org. All rights reserved.