public abstract class SimpleRelation extends AbstractRelation
Constructor and Description |
---|
SimpleRelation(Namer fromNamer,
Namer toNamer,
Attribute fromAttribute,
Entity fromEntity,
Entity toEntity,
Attribute toAttribute) |
Modifier and Type | Method and Description |
---|---|
Namer |
getFrom() |
Attribute |
getFromAttribute()
In most cases, a foreign key attribute.
|
Entity |
getFromEntity() |
List<Relation> |
getRelations() |
Namer |
getTo() |
Attribute |
getToAttribute()
The target attribute, often a primary key attribute.
|
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, getFromAttributes, getInverse, getKind, getLabels, getMiddleEntity, getMiddleToLeft, getMiddleToRight, getName, getOneLineComment, getOrderByGetter, getToAttributes, 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 Entity getFromEntity()
public Entity getToEntity()
public Attribute getToAttribute()
Relation
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.