liquibase.statement
Class ExecutablePreparedStatementBase

java.lang.Object
  extended by liquibase.statement.ExecutablePreparedStatementBase
All Implemented Interfaces:
ExecutablePreparedStatement, SqlStatement
Direct Known Subclasses:
InsertExecutablePreparedStatement, UpdateExecutablePreparedStatement

public abstract class ExecutablePreparedStatementBase
extends Object
implements ExecutablePreparedStatement


Field Summary
protected  Database database
           
 
Constructor Summary
protected ExecutablePreparedStatementBase(Database database, String catalogName, String schemaName, String tableName, List<ColumnConfig> columns, ChangeSet changeSet, ResourceAccessor resourceAccessor)
           
 
Method Summary
 void execute(PreparedStatementFactory factory)
          Execute the prepared statement
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface liquibase.statement.SqlStatement
continueOnError
 

Field Detail

database

protected Database database
Constructor Detail

ExecutablePreparedStatementBase

protected ExecutablePreparedStatementBase(Database database,
                                          String catalogName,
                                          String schemaName,
                                          String tableName,
                                          List<ColumnConfig> columns,
                                          ChangeSet changeSet,
                                          ResourceAccessor resourceAccessor)
Method Detail

execute

public void execute(PreparedStatementFactory factory)
             throws DatabaseException
Description copied from interface: ExecutablePreparedStatement
Execute the prepared statement

Specified by:
execute in interface ExecutablePreparedStatement
Parameters:
factory - for creating a PreparedStatement object
Throws:
DatabaseException

generateSql

protected abstract String generateSql(List<ColumnConfig> cols)

getAbsolutePath

public String getAbsolutePath(String path)
Gets absolute and normalized path for path. If path is relative, absolute path is calculated relative to change log file.

Parameters:
path - Absolute or relative path.
Returns:
Absolute and normalized path.

skipOnUnsupported

public boolean skipOnUnsupported()
Specified by:
skipOnUnsupported in interface SqlStatement

getCatalogName

public String getCatalogName()

getSchemaName

public String getSchemaName()

getTableName

public String getTableName()

getColumns

public List<ColumnConfig> getColumns()


Copyright © 2016 Liquibase.org. All rights reserved.