Class StandardTableExporter
java.lang.Object
org.hibernate.tool.schema.internal.StandardTableExporter
-
Field Summary
Fields inherited from interface org.hibernate.tool.schema.spi.Exporter
NO_COMMANDS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyComments
(Table table, String formattedTableName, List<String> sqlStrings) protected void
applyComments
(Table table, QualifiedTableName tableName, List<String> sqlStrings) Deprecated.protected void
applyInitCommands
(Table table, List<String> sqlStrings, SqlStringGenerationContext context) protected void
applyTableCheck
(Table table, StringBuilder buf) protected void
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 Details
-
dialect
-
-
Constructor Details
-
StandardTableExporter
-
-
Method Details
-
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
- 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
-
applyTableCheck
-
tableCreateString
-
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.
-
applyComments(Table, String, List)
instead.