public abstract class AbstractRelation extends Object implements Relation, Map<String,Object>
| Constructor and Description |
|---|
AbstractRelation() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object arg0) |
boolean |
containsValue(Object arg0) |
Relation |
createInverse() |
Set<Map.Entry<String,Object>> |
entrySet() |
Object |
get(Object arg0) |
List<AttributePair> |
getAttributePairs()
AttributePairs that form the relation.
|
CascadeGetter |
getCascadeGetter() |
FetchTypeGetter |
getFetchTypeGetter() |
List<Attribute> |
getFromAttributes()
In case of a composite relation, the foreign key attributes.
|
Relation |
getInverse() |
String |
getKind() |
Labels |
getLabels() |
Entity |
getMiddleEntity()
For intermediate relation only.
|
Relation |
getMiddleToLeft()
For intermediate relation only.
|
Relation |
getMiddleToRight()
For intermediate relation only.
|
String |
getName() |
String |
getOneLineComment() |
OrderByGetter |
getOrderByGetter() |
List<Relation> |
getRelations() |
List<Attribute> |
getToAttributes()
In case of a composite relation, the target attributes, often a composite pk.
|
boolean |
hasInverse() |
boolean |
isCollection() |
boolean |
isComposite()
A composite relation involves more than 1 foreign key.
|
boolean |
isEmpty() |
boolean |
isGenAutoComplete() |
boolean |
isGenCreate() |
boolean |
isGenEdit() |
boolean |
isGenRemove() |
boolean |
isGenSelect() |
boolean |
isGenView() |
boolean |
isIntermediate()
An intermediate relation is a relation involving an intermediate table.
|
boolean |
isInverse() |
boolean |
isMandatory()
Note: When x to one has an inverse relation, we never mark it as @NotNull as it would break webflow navigation (indeed, the mandatory value is set
transparently once the entity is added to the collection) However, in test (XxxGenerator), we must take mandatory into account...
|
boolean |
isManyToMany() |
boolean |
isManyToOne() |
boolean |
isOneToMany() |
boolean |
isOneToOne() |
boolean |
isOneToVirtualOne() |
boolean |
isSimple()
A simple relation is neither composite nor intermediate.
|
boolean |
isUnique() |
Set<String> |
keySet() |
Object |
put(String arg0,
Object arg1) |
void |
putAll(Map<? extends String,? extends Object> arg0) |
Object |
remove(Object arg0) |
void |
setCascadeGetter(CascadeGetter cascadeGetter) |
void |
setFetchTypeGetter(FetchTypeGetter fetchTypeGetter) |
void |
setGenAutoComplete(boolean genAutoComplete) |
void |
setGenCreate(boolean genCreate) |
void |
setGenEdit(boolean genEdit) |
void |
setGenRemove(boolean genRemove) |
void |
setGenSelect(boolean genSelect) |
void |
setGenView(boolean genView) |
void |
setLabels(Labels labels) |
void |
setOrderByGetter(OrderByGetter orderByGetter) |
int |
size() |
Collection<Object> |
values() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFrom, getFromAttribute, getFromEntity, getLabelName, getTo, getToAttribute, getToEntitypublic final Relation createInverse()
createInverse in interface Relationpublic boolean hasInverse()
hasInverse in interface Relationpublic boolean isMandatory()
isMandatory in interface Relationpublic boolean isOneToOne()
isOneToOne in interface Relationpublic boolean isOneToVirtualOne()
isOneToVirtualOne in interface Relationpublic boolean isOneToMany()
isOneToMany in interface Relationpublic boolean isManyToMany()
isManyToMany in interface Relationpublic boolean isManyToOne()
isManyToOne in interface Relationpublic boolean isSimple()
Relationpublic boolean isIntermediate()
RelationisIntermediate in interface Relationpublic boolean isComposite()
RelationisComposite in interface Relationpublic List<Relation> getRelations()
getRelations in interface Relationpublic Entity getMiddleEntity()
RelationgetMiddleEntity in interface Relationpublic Relation getMiddleToLeft()
RelationgetMiddleToLeft in interface Relationpublic Relation getMiddleToRight()
RelationgetMiddleToRight in interface Relationpublic boolean isCollection()
isCollection in interface Relationpublic String getOneLineComment()
getOneLineComment in interface Relationpublic CascadeGetter getCascadeGetter()
getCascadeGetter in interface Relationpublic void setCascadeGetter(CascadeGetter cascadeGetter)
public FetchTypeGetter getFetchTypeGetter()
getFetchTypeGetter in interface Relationpublic void setFetchTypeGetter(FetchTypeGetter fetchTypeGetter)
public List<Attribute> getFromAttributes()
RelationgetFromAttributes in interface Relationpublic List<Attribute> getToAttributes()
RelationgetToAttributes in interface Relationpublic List<AttributePair> getAttributePairs()
RelationAttributePair.getAttributePairs in interface Relationpublic boolean containsKey(Object arg0)
containsKey in interface Map<String,Object>public boolean containsValue(Object arg0)
containsValue in interface Map<String,Object>public Relation getInverse()
getInverse in interface Relationpublic OrderByGetter getOrderByGetter()
getOrderByGetter in interface Relationpublic void setOrderByGetter(OrderByGetter orderByGetter)
public void setLabels(Labels labels)
public void setGenCreate(boolean genCreate)
setGenCreate in interface Relationpublic boolean isGenCreate()
isGenCreate in interface Relationpublic void setGenEdit(boolean genEdit)
setGenEdit in interface Relationpublic void setGenView(boolean genView)
setGenView in interface Relationpublic void setGenSelect(boolean genSelect)
setGenSelect in interface Relationpublic boolean isGenSelect()
isGenSelect in interface Relationpublic void setGenAutoComplete(boolean genAutoComplete)
setGenAutoComplete in interface Relationpublic boolean isGenAutoComplete()
isGenAutoComplete in interface Relationpublic void setGenRemove(boolean genRemove)
setGenRemove in interface Relationpublic boolean isGenRemove()
isGenRemove in interface RelationCopyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.