public class DDLForeignKey extends Object
Database-agnostic representation of a foreign key constraint. To avoid unnecessary object creation (and to simplify schema parsing) this class only contains table and field names, rather than the full DDL representation. Basically, this class just wraps around the data represented by a fully-rendered foreign key constraint.
This class also defines the convention used to determine foreign key names. It is important that this convention be observed by DDL renderings (i.e. database providers) otherwise migrations will do strange things.
Constructor and Description |
---|
DDLForeignKey() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDomesticTable() |
String |
getField() |
String |
getFKName() |
String |
getForeignField() |
String |
getTable() |
int |
hashCode() |
void |
setDomesticTable(String domesticTable) |
void |
setField(String field) |
void |
setForeignField(String foreignField) |
void |
setTable(String table) |
String |
toString() |
public String getField()
public void setField(String field)
public String getTable()
public void setTable(String table)
public String getForeignField()
public void setForeignField(String foreignField)
public String getFKName()
public String getDomesticTable()
public void setDomesticTable(String domesticTable)
Copyright © 2007–2022 Atlassian. All rights reserved.