Package liquibase.sqlgenerator
Class SqlGeneratorFactory
java.lang.Object
liquibase.sqlgenerator.SqlGeneratorFactory
SqlGeneratorFactory is a singleton registry of SqlGenerators.
Use the register(SqlGenerator) method to add custom SqlGenerators,
and the getBestGenerator() method to retrieve the SqlGenerator that should be used for a given SqlStatement.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
generateRollbackStatementsVolatile
(SqlStatement statement, Database database) Sql[]
generateSql
(Change change, Database database) Sql[]
generateSql
(SqlStatement[] statements, Database database) Sql[]
generateSql
(SqlStatement statement, Database database) boolean
generateStatementsVolatile
(SqlStatement statement, Database database) Return true if the SqlStatement class queries the database in any way to determine Statements to execute.getAffectedDatabaseObjects
(SqlStatement statement, Database database) protected Collection<SqlGenerator>
getGenerators
(SqlStatement statement, Database database) static SqlGeneratorFactory
Return singleton SqlGeneratorFactoryvoid
register
(SqlGenerator generator) static void
reset()
boolean
supports
(SqlStatement statement, Database database) void
unregister
(Class generatorClass) void
unregister
(SqlGenerator generator) validate
(SqlStatement statement, Database database) warn
(SqlStatement statement, Database database)
-
Field Details
-
GENERATED_SQL_ARRAY_SCOPE_KEY
- See Also:
-
-
Method Details
-
getInstance
Return singleton SqlGeneratorFactory -
reset
public static void reset() -
register
-
unregister
-
unregister
-
getGenerators
-
getGenerators
-
generateSql
-
generateSql
-
generateSql
-
generateStatementsVolatile
Return true if the SqlStatement class queries the database in any way to determine Statements to execute. If the statement queries the database, it cannot be used in updateSql type operations -
generateRollbackStatementsVolatile
-
supports
-
validate
-
warn
-
getAffectedDatabaseObjects
-