public abstract class CompositeRelation extends AbstractRelation
| Constructor and Description |
|---|
CompositeRelation(Namer fromNamer,
Namer toNamer,
List<Attribute> fromAttributes,
Entity fromEntity,
Entity toEntity,
List<Attribute> toAttributes) |
| Modifier and Type | Method and Description |
|---|---|
Namer |
getFrom() |
Attribute |
getFromAttribute()
In most cases, a foreign key attribute.
|
List<Attribute> |
getFromAttributes()
In case of a composite relation, the foreign key attributes.
|
Entity |
getFromEntity() |
List<Relation> |
getRelations() |
Namer |
getTo() |
Attribute |
getToAttribute()
The target attribute, often a primary key attribute.
|
List<Attribute> |
getToAttributes()
In case of a composite relation, the target attributes, often a composite pk.
|
Entity |
getToEntity() |
boolean |
isComposite()
A composite relation involves more than 1 foreign key.
|
boolean |
isSimple()
A simple relation is neither composite nor intermediate.
|
String |
toString() |
clear, containsKey, containsValue, createInverse, entrySet, get, getAttributePairs, getCascadeGetter, getFetchTypeGetter, getInverse, getKind, getLabels, getMiddleEntity, getMiddleToLeft, getMiddleToRight, getName, getOneLineComment, getOrderByGetter, hasInverse, isCollection, isEmpty, isGenAutoComplete, isGenCreate, isGenEdit, isGenRemove, isGenSelect, isGenView, isIntermediate, isInverse, isMandatory, isManyToMany, isManyToOne, isOneToMany, isOneToOne, isOneToVirtualOne, isUnique, keySet, put, putAll, remove, setCascadeGetter, setFetchTypeGetter, setGenAutoComplete, setGenCreate, setGenEdit, setGenRemove, setGenSelect, setGenView, setLabels, setOrderByGetter, size, valuesequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLabelNamepublic final boolean isSimple()
RelationisSimple in interface RelationisSimple in class AbstractRelationpublic final boolean isComposite()
RelationisComposite in interface RelationisComposite in class AbstractRelationpublic Attribute getFromAttribute()
Relationpublic Attribute getToAttribute()
Relationpublic List<Attribute> getFromAttributes()
RelationgetFromAttributes in interface RelationgetFromAttributes in class AbstractRelationpublic Entity getFromEntity()
public Entity getToEntity()
public List<Attribute> getToAttributes()
RelationgetToAttributes in interface RelationgetToAttributes in class AbstractRelationpublic Namer getFrom()
public Namer getTo()
public List<Relation> getRelations()
getRelations in interface RelationgetRelations in class AbstractRelationCopyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.