public class Index extends Object implements RelationalModel, Serializable
Constructor and Description |
---|
Index() |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(Column column) |
void |
addColumns(Iterator extraColumns) |
static String |
buildSqlCreateIndexString(Dialect dialect,
String name,
Table table,
Iterator columns,
boolean unique,
String defaultCatalog,
String defaultSchema) |
static String |
buildSqlDropIndexString(Dialect dialect,
Table table,
String name,
String defaultCatalog,
String defaultSchema) |
boolean |
containsColumn(Column column) |
Iterator |
getColumnIterator() |
int |
getColumnSpan() |
String |
getName() |
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 columns, boolean unique, String defaultCatalog, String defaultSchema)
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 Iterator getColumnIterator()
public void addColumn(Column column)
public void addColumns(Iterator extraColumns)
public boolean containsColumn(Column column)
column
- public String getName()
public void setName(String name)
Copyright © 2018 JBoss by Red Hat. All rights reserved.