public class ForeignKey extends DatabaseSelectionProvider implements HasReferences
Modifier and Type | Field and Description |
---|---|
protected String |
actualManyPropertyName |
protected String |
actualOnePropertyName |
static String |
copyright |
static org.slf4j.Logger |
logger |
protected String |
manyPropertyName |
protected String |
onDelete |
protected String |
onePropertyName |
protected String |
onUpdate |
protected String |
toSchema |
protected Table |
toTable |
protected String |
toTableName |
fromTable, hql, name, references, sql, toDatabase
Constructor and Description |
---|
ForeignKey() |
ForeignKey(Table fromTable) |
Modifier and Type | Method and Description |
---|---|
Reference |
findReferenceByColumnNamePair(Pair<String> columnNamePair) |
String |
getActualManyPropertyName() |
String |
getActualOnePropertyName() |
String |
getFromDatabaseName() |
String |
getFromSchemaName() |
String |
getFromTableName() |
String |
getHql() |
String |
getManyPropertyName() |
String |
getOnDelete() |
String |
getOnePropertyName() |
String |
getOnUpdate() |
String |
getQualifiedName() |
String |
getToSchema() |
Table |
getToTable() |
String |
getToTableName() |
void |
init(Model model) |
void |
link(Model model) |
void |
reset() |
void |
setManyPropertyName(String manyPropertyName) |
void |
setOnDelete(String onDelete) |
void |
setOnePropertyName(String onePropertyName) |
void |
setOnUpdate(String onUpdate) |
void |
setToSchema(String toSchema) |
void |
setToTable(Table toTable) |
void |
setToTableName(String toTableName) |
String |
toString() |
afterUnmarshal, getFromTable, getName, getReferences, getSql, getToDatabase, setFromTable, setHql, setName, setSql, setToDatabase, visitChildren
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFromTable, getReferences, setFromTable
public static final String copyright
protected String onUpdate
protected String onDelete
protected String toSchema
protected String manyPropertyName
protected String onePropertyName
protected String toTableName
protected String actualManyPropertyName
protected String actualOnePropertyName
protected Table toTable
public static final org.slf4j.Logger logger
public ForeignKey()
public ForeignKey(Table fromTable)
public String getQualifiedName()
getQualifiedName
in class DatabaseSelectionProvider
public void reset()
reset
in interface ModelObject
reset
in class DatabaseSelectionProvider
public void init(Model model)
init
in interface ModelObject
init
in class DatabaseSelectionProvider
public void link(Model model)
link
in interface ModelObject
link
in class DatabaseSelectionProvider
public Reference findReferenceByColumnNamePair(Pair<String> columnNamePair)
public String getFromDatabaseName()
public String getFromSchemaName()
public String getFromTableName()
public String getOnUpdate()
public void setOnUpdate(String onUpdate)
public String getOnDelete()
public void setOnDelete(String onDelete)
public String getManyPropertyName()
public void setManyPropertyName(String manyPropertyName)
public String getOnePropertyName()
public void setOnePropertyName(String onePropertyName)
public String getActualManyPropertyName()
public String getActualOnePropertyName()
public String getHql()
getHql
in class DatabaseSelectionProvider
public String getToSchema()
public void setToSchema(String toSchema)
public Table getToTable()
getToTable
in interface HasReferences
getToTable
in class DatabaseSelectionProvider
public void setToTable(Table toTable)
public String getToTableName()
public void setToTableName(String toTableName)