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, values
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLabelName
public final boolean isSimple()
Relation
isSimple
in interface Relation
isSimple
in class AbstractRelation
public final boolean isComposite()
Relation
isComposite
in interface Relation
isComposite
in class AbstractRelation
public Attribute getFromAttribute()
Relation
public Attribute getToAttribute()
Relation
public List<Attribute> getFromAttributes()
Relation
getFromAttributes
in interface Relation
getFromAttributes
in class AbstractRelation
public Entity getFromEntity()
public Entity getToEntity()
public List<Attribute> getToAttributes()
Relation
getToAttributes
in interface Relation
getToAttributes
in class AbstractRelation
public Namer getFrom()
public Namer getTo()
public List<Relation> getRelations()
getRelations
in interface Relation
getRelations
in class AbstractRelation
Copyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.