Package liquibase.sqlgenerator.core
Class CreateTableGeneratorInformix
- java.lang.Object
-
- liquibase.sqlgenerator.core.AbstractSqlGenerator<CreateTableStatement>
-
- liquibase.sqlgenerator.core.CreateTableGenerator
-
- liquibase.sqlgenerator.core.CreateTableGeneratorInformix
-
- All Implemented Interfaces:
PrioritizedService
,SqlGenerator<CreateTableStatement>
public class CreateTableGeneratorInformix extends CreateTableGenerator
An Informix-specific create table statement generator.
-
-
Field Summary
-
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR
-
Fields inherited from interface liquibase.sqlgenerator.SqlGenerator
EMPTY_SQL, PRIORITY_DATABASE, PRIORITY_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description CreateTableGeneratorInformix()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Sql[]
generateSql(CreateTableStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain)
Informix SQL-specific implementation of the CREATE TABLE SQL generator.int
getPriority()
Of all the SqlGenerators that "support" a given SqlStatement/Database, SqlGeneratorFactory will return the one with the highest priority.boolean
supports(CreateTableStatement statement, Database database)
Does this generator support the given statement/database combination? Do not validate the statement with this method, only return if it can support it.-
Methods inherited from class liquibase.sqlgenerator.core.CreateTableGenerator
getAffectedTable, validate
-
Methods inherited from class liquibase.sqlgenerator.core.AbstractSqlGenerator
generateRollbackStatementsIsVolatile, generateStatementsIsVolatile, looksLikeFunctionCall, warn
-
-
-
-
Method Detail
-
supports
public boolean supports(CreateTableStatement statement, Database database)
Description copied from interface:SqlGenerator
Does this generator support the given statement/database combination? Do not validate the statement with this method, only return if it can support it.- Specified by:
supports
in interfaceSqlGenerator<CreateTableStatement>
- Overrides:
supports
in classAbstractSqlGenerator<CreateTableStatement>
-
getPriority
public int getPriority()
Description copied from interface:SqlGenerator
Of all the SqlGenerators that "support" a given SqlStatement/Database, SqlGeneratorFactory will return the one with the highest priority.- Specified by:
getPriority
in interfacePrioritizedService
- Specified by:
getPriority
in interfaceSqlGenerator<CreateTableStatement>
- Overrides:
getPriority
in classAbstractSqlGenerator<CreateTableStatement>
-
generateSql
public Sql[] generateSql(CreateTableStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain)
Informix SQL-specific implementation of the CREATE TABLE SQL generator.- Specified by:
generateSql
in interfaceSqlGenerator<CreateTableStatement>
- Overrides:
generateSql
in classCreateTableGenerator
- Parameters:
statement
- The properties of the statement that we will translate into SQLdatabase
- For this implementation always an object of the InformixDatabase typesqlGeneratorChain
- Other generators in the pipeline for this command- Returns:
- An array of Sql[] statements containing the requested SQL statements for Informix SQL
-
-