public abstract class Constraint extends Object implements RelationalModel, Serializable
Constructor and Description |
---|
Constraint() |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(Column column) |
void |
addColumns(Iterator columnIterator) |
Iterator |
columnIterator() |
boolean |
containsColumn(Column column) |
Column |
getColumn(int i) |
Iterator |
getColumnIterator() |
List |
getColumns() |
int |
getColumnSpan() |
String |
getName() |
Table |
getTable() |
boolean |
isGenerated(Dialect dialect) |
void |
setName(String name) |
void |
setTable(Table table) |
abstract String |
sqlConstraintString(Dialect d,
String constraintName,
String defaultCatalog,
String defaultSchema) |
String |
sqlCreateString(Dialect dialect,
Mapping p,
String defaultCatalog,
String defaultSchema) |
String |
sqlDropString(Dialect dialect,
String defaultCatalog,
String defaultSchema) |
String |
toString() |
public String getName()
public void setName(String name)
public Iterator getColumnIterator()
public void addColumn(Column column)
public void addColumns(Iterator columnIterator)
public boolean containsColumn(Column column)
column
- public int getColumnSpan()
public Column getColumn(int i)
public Iterator columnIterator()
public Table getTable()
public void setTable(Table table)
public boolean isGenerated(Dialect dialect)
public String sqlDropString(Dialect dialect, String defaultCatalog, String defaultSchema)
sqlDropString
in interface RelationalModel
public String sqlCreateString(Dialect dialect, Mapping p, String defaultCatalog, String defaultSchema)
sqlCreateString
in interface RelationalModel
public List getColumns()
public abstract String sqlConstraintString(Dialect d, String constraintName, String defaultCatalog, String defaultSchema)
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.