public class Index extends Object implements RelationalModel, Exportable, Serializable
Constructor and Description |
---|
Index() |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(Column column) |
void |
addColumn(Column column,
String order) |
void |
addColumns(Iterator extraColumns) |
static String |
buildSqlCreateIndexString(Dialect dialect,
String name,
String tableName,
Iterator<Column> columns,
Map<Column,String> columnOrderMap,
boolean unique) |
static String |
buildSqlCreateIndexString(Dialect dialect,
String name,
Table table,
Iterator<Column> columns,
boolean unique,
String defaultCatalog,
String defaultSchema) |
static String |
buildSqlCreateIndexString(Dialect dialect,
String name,
Table table,
Iterator<Column> columns,
Map<Column,String> columnOrderMap,
boolean unique,
Metadata metadata) |
static String |
buildSqlCreateIndexString(Dialect dialect,
String name,
Table table,
Iterator<Column> columns,
Map<Column,String> columnOrderMap,
boolean unique,
String defaultCatalog,
String defaultSchema) |
static String |
buildSqlDropIndexString(Dialect dialect,
Table table,
String name,
String defaultCatalog,
String defaultSchema) |
static String |
buildSqlDropIndexString(String name,
String tableName) |
boolean |
containsColumn(Column column) |
Iterator<Column> |
getColumnIterator() |
int |
getColumnSpan() |
String |
getExportIdentifier()
Get a unique identifier to make sure we are not exporting the same database structure multiple times.
|
String |
getName() |
String |
getQuotedName(Dialect dialect) |
Table |
getTable() |
void |
setName(String name) |
void |
setTable(Table table) |
String |
sqlConstraintString(Dialect dialect) |
String |
sqlCreateString(Dialect dialect,
Mapping mapping,
String defaultCatalog,
String defaultSchema) |
String |
sqlDropString(Dialect dialect,
String defaultCatalog,
String defaultSchema) |
String |
toString() |
public String sqlCreateString(Dialect dialect, Mapping mapping, String defaultCatalog, String defaultSchema) throws HibernateException
sqlCreateString
in interface RelationalModel
HibernateException
public static String buildSqlDropIndexString(Dialect dialect, Table table, String name, String defaultCatalog, String defaultSchema)
public static String buildSqlCreateIndexString(Dialect dialect, String name, Table table, Iterator<Column> columns, Map<Column,String> columnOrderMap, boolean unique, String defaultCatalog, String defaultSchema)
public static String buildSqlCreateIndexString(Dialect dialect, String name, String tableName, Iterator<Column> columns, Map<Column,String> columnOrderMap, boolean unique)
public static String buildSqlCreateIndexString(Dialect dialect, String name, Table table, Iterator<Column> columns, boolean unique, String defaultCatalog, String defaultSchema)
public static String buildSqlCreateIndexString(Dialect dialect, String name, Table table, Iterator<Column> columns, Map<Column,String> columnOrderMap, boolean unique, Metadata metadata)
public String sqlDropString(Dialect dialect, String defaultCatalog, String defaultSchema)
sqlDropString
in interface RelationalModel
public Table getTable()
public void setTable(Table table)
public int getColumnSpan()
public void addColumn(Column column)
public void addColumns(Iterator extraColumns)
public boolean containsColumn(Column column)
public String getName()
public void setName(String name)
public String getExportIdentifier()
Exportable
getExportIdentifier
in interface Exportable
Copyright © 2017 JBoss by Red Hat. All rights reserved.