Top Fields Constructors Methods
org.hibernate.tool.schema.internal

public Class StandardTableExporter

extends Object
implements Exporter<Table>
Class Inheritance
All Implemented Interfaces
org.hibernate.tool.schema.spi.Exporter
Imports
java.util.ArrayList, .Collections, .Iterator, .List, org.hibernate.boot.Metadata, org.hibernate.boot.model.naming.Identifier, org.hibernate.boot.model.relational.InitCommand, .QualifiedName, .QualifiedNameParser, .QualifiedTableName, .SqlStringGenerationContext, org.hibernate.dialect.Dialect, org.hibernate.mapping.Column, .Constraint, .Table, .UniqueKey, org.hibernate.tool.schema.spi.Exporter

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
protected final Dialect

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
applyComments(Table
The table.
table
,
QualifiedTableName
The qualified table name.
tableName
,
List<String>
The list of SQL strings to add comments to.
sqlStrings
)

Deprecated Use applyComments(Table, String, List) instead.
protected void
applyComments(Table
The table.
table
,
String
The formatted table name.
formattedTableName
,
List<String>
The list of SQL strings to add comments to.
sqlStrings
)

Deprecated as a consequence of Table being deprecated.
protected void
applyInitCommands(Table table, List<String> sqlStrings, SqlStringGenerationContext context)

Deprecated as a consequence of Table being deprecated.
protected void
applyTableCheck(Table table, StringBuilder buf)

Deprecated as a consequence of Table being deprecated.
protected void
public String[]
getSqlCreateStrings(Table table, Metadata metadata, SqlStringGenerationContext context)

Overrides default org.hibernate.tool.schema.spi.Exporter.getSqlCreateStrings.

Deprecated as a consequence of Table being deprecated.
Get the commands needed for creation.
public String[]
getSqlDropStrings(Table table, Metadata metadata, SqlStringGenerationContext context)

Overrides default org.hibernate.tool.schema.spi.Exporter.getSqlDropStrings.

Deprecated as a consequence of Table being deprecated.
Get the commands needed for dropping.
protected String
tableCreateString(boolean hasPrimaryKey)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dialectback to summary
protected final Dialect dialect

Constructor Detail

StandardTableExporterback to summary
public StandardTableExporter(Dialect dialect)

Method Detail

applyCommentsback to summary
protected void applyComments(Table table, QualifiedTableName tableName, List<String> sqlStrings)

Deprecated

Use applyComments(Table, String, List) instead.

Parameters
table:Table

The table.

tableName:QualifiedTableName

The qualified table name.

sqlStrings:List<String>

The list of SQL strings to add comments to.

Annotations
@Deprecated
applyCommentsback to summary
protected void applyComments(Table table, String formattedTableName, List<String> sqlStrings)

Deprecated

as a consequence of Table being deprecated. See corresponding docs for further information.

Parameters
table:Table

The table.

formattedTableName:String

The formatted table name.

sqlStrings:List<String>

The list of SQL strings to add comments to.

applyInitCommandsback to summary
protected void applyInitCommands(Table table, List<String> sqlStrings, SqlStringGenerationContext context)

Deprecated

as a consequence of Table being deprecated. See corresponding docs for further information.

applyTableCheckback to summary
protected void applyTableCheck(Table table, StringBuilder buf)

Deprecated

as a consequence of Table being deprecated. See corresponding docs for further information.

applyTableTypeStringback to summary
protected void applyTableTypeString(StringBuilder buf)
getSqlCreateStringsback to summary
public String[] getSqlCreateStrings(Table table, Metadata metadata, SqlStringGenerationContext context)

Overrides default org.hibernate.tool.schema.spi.Exporter.getSqlCreateStrings.

Doc from org.hibernate.tool.schema.spi.Exporter.getSqlCreateStrings.

Deprecated

as a consequence of Table being deprecated. See corresponding docs for further information.

Get the commands needed for creation.

Returns:String[]

The commands needed for creation scripting.

Annotations
@Override
getSqlDropStringsback to summary
public String[] getSqlDropStrings(Table table, Metadata metadata, SqlStringGenerationContext context)

Overrides default org.hibernate.tool.schema.spi.Exporter.getSqlDropStrings.

Doc from org.hibernate.tool.schema.spi.Exporter.getSqlDropStrings.

Deprecated

as a consequence of Table being deprecated. See corresponding docs for further information.

Get the commands needed for dropping.

Returns:String[]

The commands needed for drop scripting.

Annotations
@Override
tableCreateStringback to summary
protected String tableCreateString(boolean hasPrimaryKey)