Class StandardTableExporter
- java.lang.Object
-
- org.hibernate.tool.schema.internal.StandardTableExporter
-
-
Field Summary
Fields Modifier and Type Field Description protected Dialect
dialect
-
Fields inherited from interface org.hibernate.tool.schema.spi.Exporter
NO_COMMANDS
-
-
Constructor Summary
Constructors Constructor Description StandardTableExporter(Dialect dialect)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
applyComments(Table table, String formattedTableName, List<String> sqlStrings)
protected void
applyComments(Table table, QualifiedTableName tableName, List<String> sqlStrings)
Deprecated.UseapplyComments(Table, String, List)
instead.protected void
applyInitCommands(Table table, List<String> sqlStrings, SqlStringGenerationContext context)
protected void
applyTableCheck(Table table, StringBuilder buf)
protected void
applyTableTypeString(StringBuilder buf)
String[]
getSqlCreateStrings(Table table, Metadata metadata, SqlStringGenerationContext context)
Get the commands needed for creation.String[]
getSqlDropStrings(Table table, Metadata metadata, SqlStringGenerationContext context)
Get the commands needed for dropping.protected String
tableCreateString(boolean hasPrimaryKey)
-
-
-
Field Detail
-
dialect
protected final Dialect dialect
-
-
Constructor Detail
-
StandardTableExporter
public StandardTableExporter(Dialect dialect)
-
-
Method Detail
-
getSqlCreateStrings
public String[] getSqlCreateStrings(Table table, Metadata metadata, SqlStringGenerationContext context)
Description copied from interface:Exporter
Get the commands needed for creation.- Specified by:
getSqlCreateStrings
in interfaceExporter<Table>
- Returns:
- The commands needed for creation scripting.
-
applyComments
@Deprecated protected void applyComments(Table table, QualifiedTableName tableName, List<String> sqlStrings)
Deprecated.UseapplyComments(Table, String, List)
instead.- Parameters:
table
- The table.tableName
- The qualified table name.sqlStrings
- The list of SQL strings to add comments to.
-
applyComments
protected void applyComments(Table table, String formattedTableName, List<String> sqlStrings)
- Parameters:
table
- The table.formattedTableName
- The formatted table name.sqlStrings
- The list of SQL strings to add comments to.
-
applyInitCommands
protected void applyInitCommands(Table table, List<String> sqlStrings, SqlStringGenerationContext context)
-
applyTableTypeString
protected void applyTableTypeString(StringBuilder buf)
-
applyTableCheck
protected void applyTableCheck(Table table, StringBuilder buf)
-
tableCreateString
protected String tableCreateString(boolean hasPrimaryKey)
-
getSqlDropStrings
public String[] getSqlDropStrings(Table table, Metadata metadata, SqlStringGenerationContext context)
Description copied from interface:Exporter
Get the commands needed for dropping.- Specified by:
getSqlDropStrings
in interfaceExporter<Table>
- Returns:
- The commands needed for drop scripting.
-
-