Class StandardTableExporter
- java.lang.Object
-
- org.hibernate.tool.schema.internal.StandardTableExporter
-
-
Field Summary
Fields Modifier and Type Field Description protected Dialectdialect-
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 voidapplyComments(Table table, String formattedTableName, List<String> sqlStrings)protected voidapplyComments(Table table, QualifiedTableName tableName, List<String> sqlStrings)Deprecated.UseapplyComments(Table, String, List)instead.protected voidapplyInitCommands(Table table, List<String> sqlStrings, SqlStringGenerationContext context)protected voidapplyTableCheck(Table table, StringBuilder buf)protected voidapplyTableTypeString(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 StringtableCreateString(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:ExporterGet the commands needed for creation.- Specified by:
getSqlCreateStringsin 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:ExporterGet the commands needed for dropping.- Specified by:
getSqlDropStringsin interfaceExporter<Table>- Returns:
- The commands needed for drop scripting.
-
-