public class GenericRelationHandler extends RelationHandlerAdapter
| Constructor and Description |
|---|
GenericRelationHandler(String attribute) |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
get(Object owner)
The objects associated with owner.
|
String |
getAttribute() |
Object |
insert(Object owner,
Object value)
Add a new object to the association in owner.
|
Object |
remove(Object owner,
Object value)
Remove an object from the association in owner.
|
int |
size(Object owner)
The number of objects associated with owner.
|
Object |
update(Object owner,
Object value,
Object newValue)
Update value in the association for owner to newValue
|
getOwnerpublic GenericRelationHandler(String attribute)
public Object[] get(Object owner)
IRelationHandlerget in interface IRelationHandlerget in class RelationHandlerAdapterpublic String getAttribute()
public Object insert(Object owner, Object value)
IRelationHandlerinsert in interface IRelationHandlerinsert in class RelationHandlerAdapterpublic Object remove(Object owner, Object value)
IRelationHandlerremove in interface IRelationHandlerremove in class RelationHandlerAdapterpublic int size(Object owner)
IRelationHandlersize in interface IRelationHandlersize in class RelationHandlerAdapterpublic Object update(Object owner, Object value, Object newValue)
IRelationHandlerupdate in interface IRelationHandlerupdate in class RelationHandlerAdapterCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.