Class StandardTableMigrator
- java.lang.Object
-
- org.hibernate.tool.schema.internal.StandardTableMigrator
-
- All Implemented Interfaces:
TableMigrator
@Incubating public class StandardTableMigrator extends Object implements TableMigrator
ATableMigrator
that only knows how to add new columns.
-
-
Constructor Summary
Constructors Constructor Description StandardTableMigrator(Dialect dialect)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getSqlAlterStrings(Table table, Metadata metadata, TableInformation tableInfo, SqlStringGenerationContext context)
static List<String>
sqlAlterStrings(Table table, Dialect dialect, Metadata metadata, TableInformation tableInformation, SqlStringGenerationContext context)
-
-
-
Field Detail
-
dialect
protected final Dialect dialect
-
-
Constructor Detail
-
StandardTableMigrator
public StandardTableMigrator(Dialect dialect)
-
-
Method Detail
-
getSqlAlterStrings
public String[] getSqlAlterStrings(Table table, Metadata metadata, TableInformation tableInfo, SqlStringGenerationContext context)
- Specified by:
getSqlAlterStrings
in interfaceTableMigrator
-
sqlAlterStrings
@Internal public static List<String> sqlAlterStrings(Table table, Dialect dialect, Metadata metadata, TableInformation tableInformation, SqlStringGenerationContext context) throws HibernateException
- Throws:
HibernateException
-
-