public interface ForeignKey
Because Tentackle references PDOs only by id there is only one attribute per foreign key.
| Modifier and Type | Method and Description |
|---|---|
Attribute |
getReferencedAttribute()
Gets the referenced attribute.
|
Entity |
getReferencedEntity()
Gets the referenced entity.
|
Entity |
getReferencedTableProvidingEntity()
Gets the entity that provides the table for the referenced entity.
|
Attribute |
getReferencingAttribute()
Gets the referencing attribute.
|
Entity |
getReferencingEntity()
Gets the referencing entity.
|
Entity |
getReferencingTableProvidingEntity()
Gets the entity that provides the table for the referencing entity.
|
boolean |
isComposite()
Returns whether the reference is via a composite relation.
|
String |
sqlCreateForeignKey(Backend backend)
Creates the foreign key creation sql code.
|
Entity getReferencingEntity()
Attribute getReferencingAttribute()
Entity getReferencedEntity()
Attribute getReferencedAttribute()
boolean isComposite()
String sqlCreateForeignKey(Backend backend)
backend - the backend to create sql code forEntity getReferencingTableProvidingEntity()
Entity getReferencedTableProvidingEntity()
Tentackle - a domain driven enterprise framework