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, wait
getFrom, getFromAttribute, getFromEntity, getLabelName, getTo, getToAttribute, getToEntity
public final Relation createInverse()
createInverse
in interface Relation
public boolean hasInverse()
hasInverse
in interface Relation
public boolean isMandatory()
isMandatory
in interface Relation
public boolean isOneToOne()
isOneToOne
in interface Relation
public boolean isOneToVirtualOne()
isOneToVirtualOne
in interface Relation
public boolean isOneToMany()
isOneToMany
in interface Relation
public boolean isManyToMany()
isManyToMany
in interface Relation
public boolean isManyToOne()
isManyToOne
in interface Relation
public boolean isSimple()
Relation
public boolean isIntermediate()
Relation
isIntermediate
in interface Relation
public boolean isComposite()
Relation
isComposite
in interface Relation
public List<Relation> getRelations()
getRelations
in interface Relation
public Entity getMiddleEntity()
Relation
getMiddleEntity
in interface Relation
public Relation getMiddleToLeft()
Relation
getMiddleToLeft
in interface Relation
public Relation getMiddleToRight()
Relation
getMiddleToRight
in interface Relation
public boolean isCollection()
isCollection
in interface Relation
public String getOneLineComment()
getOneLineComment
in interface Relation
public CascadeGetter getCascadeGetter()
getCascadeGetter
in interface Relation
public void setCascadeGetter(CascadeGetter cascadeGetter)
public FetchTypeGetter getFetchTypeGetter()
getFetchTypeGetter
in interface Relation
public void setFetchTypeGetter(FetchTypeGetter fetchTypeGetter)
public List<Attribute> getFromAttributes()
Relation
getFromAttributes
in interface Relation
public List<Attribute> getToAttributes()
Relation
getToAttributes
in interface Relation
public List<AttributePair> getAttributePairs()
Relation
AttributePair
.getAttributePairs
in interface Relation
public 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 Relation
public OrderByGetter getOrderByGetter()
getOrderByGetter
in interface Relation
public void setOrderByGetter(OrderByGetter orderByGetter)
public void setLabels(Labels labels)
public void setGenCreate(boolean genCreate)
setGenCreate
in interface Relation
public boolean isGenCreate()
isGenCreate
in interface Relation
public void setGenEdit(boolean genEdit)
setGenEdit
in interface Relation
public void setGenView(boolean genView)
setGenView
in interface Relation
public void setGenSelect(boolean genSelect)
setGenSelect
in interface Relation
public boolean isGenSelect()
isGenSelect
in interface Relation
public void setGenAutoComplete(boolean genAutoComplete)
setGenAutoComplete
in interface Relation
public boolean isGenAutoComplete()
isGenAutoComplete
in interface Relation
public void setGenRemove(boolean genRemove)
setGenRemove
in interface Relation
public boolean isGenRemove()
isGenRemove
in interface Relation
Copyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.