Package net.java.ao.schema.ddl
Class DDLForeignKey
java.lang.Object
net.java.ao.schema.ddl.DDLForeignKey
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.
- Author:
- Daniel Spiewak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getField()
getTable()
int
hashCode()
void
setDomesticTable
(String domesticTable) void
void
setForeignField
(String foreignField) void
toString()
-
Constructor Details
-
DDLForeignKey
public DDLForeignKey()
-
-
Method Details