Top Description 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, .List, org.hibernate.MappingException, 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.dialect.aggregate.AggregateSupport, org.hibernate.mapping.AggregateColumn, .CheckConstraint, .Column, .Component, .Property, .Table, .Value, org.hibernate.sql.Template, org.hibernate.tool.schema.spi.Exporter

An Exporter for tables.
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
private void
private String
applyAggregateColumnCheck(StringBuilder buf, String separator, AggregateColumn aggregateColumn, String aggregatePath, AggregateSupport aggregateSupport, Value value)

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
)

protected void
protected void
protected void
private static String
public String[]
getSqlCreateStrings(Table table, Metadata metadata, SqlStringGenerationContext context)

Implements org.hibernate.tool.schema.spi.Exporter.getSqlCreateStrings.

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

Implements org.hibernate.tool.schema.spi.Exporter.getSqlDropStrings.

Deprecated as a consequence of Metadata being deprecated.
Get the commands needed for dropping.
private static QualifiedName
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

applyAggregateColumnCheckback to summary
private void applyAggregateColumnCheck(StringBuilder buf, AggregateColumn aggregateColumn)
applyAggregateColumnCheckback to summary
private String applyAggregateColumnCheck(StringBuilder buf, String separator, AggregateColumn aggregateColumn, String aggregatePath, AggregateSupport aggregateSupport, Value value)
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)
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)
applyTableCheckback to summary
protected void applyTableCheck(Table table, StringBuilder buf)
applyTableTypeStringback to summary
protected void applyTableTypeString(StringBuilder buf)
getCheckConstraintback to summary
private static String getCheckConstraint(Column subColumn)
getSqlCreateStringsback to summary
public String[] getSqlCreateStrings(Table table, Metadata metadata, SqlStringGenerationContext context)

Implements org.hibernate.tool.schema.spi.Exporter.getSqlCreateStrings.

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

Deprecated

as a consequence of Metadata 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)

Implements org.hibernate.tool.schema.spi.Exporter.getSqlDropStrings.

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

Deprecated

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

Get the commands needed for dropping.

Returns:String[]

The commands needed for drop scripting.

Annotations
@Override
getTableNameback to summary
private static QualifiedName getTableName(Table table)
tableCreateStringback to summary
protected String tableCreateString(boolean hasPrimaryKey)