|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainService
This class should be extended by domain object services that need privileged access to the DataObject encapsulated by a DomainObject or the DataCollection encapsulated by a DomainCollection.
DataObject
Field Summary | |
static String |
versionId
|
Constructor Summary | |
DomainService()
|
Method Summary | |
protected static DataObject |
add(DomainObject domainObject,
String roleName,
DataObject value)
Adds data object specified by value to the specified role (with multiplicity>1) of the specified domain object. |
protected static DataObject |
add(DomainObject domainObject,
String roleName,
DomainObject value)
Adds domain object specified by value to the specified role (with multiplicity>1) of the specified domain object. |
protected static void |
clear(DomainObject domainObject,
String roleName)
Clears specified role (with multiplicity > 1) of specified domain object. |
protected static Object |
get(DomainObject domainObject,
String attr)
Get a property of the specified domain object. |
protected static DataCollection |
getDataCollection(DomainCollection domainCollection)
Get the data collection encapsulated by a domain collection. |
protected static DataObject |
getDataObject(DomainObject domainObject)
Get the underlying DataObject of the DomainObject |
protected static void |
remove(DomainObject domainObject,
String roleName,
DataObject value)
Removes data object specified by value from the specified role (with multiplicity>1) of the specified domain object. |
protected static void |
remove(DomainObject domainObject,
String roleName,
DomainObject value)
Removes domain object specified by value from the specified role (with multiplicity>1) of the specified domain object. |
protected static void |
set(DomainObject domainObject,
String attr,
Object value)
Set a property of the DomainObjects DataObject. |
protected static void |
setAssociation(DomainObject domainObject,
String attr,
DomainObject dobj)
Set an association DomainObjects DataObject. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
Constructor Detail |
public DomainService()
Method Detail |
protected static Object get(DomainObject domainObject, String attr)
DomainObject.get(String)
protected static DataObject getDataObject(DomainObject domainObject)
DataObject
of the DomainObject
protected static DataCollection getDataCollection(DomainCollection domainCollection)
DomainObject.get(String)
protected static void set(DomainObject domainObject, String attr, Object value)
DomainObject.set(String, Object)
protected static void setAssociation(DomainObject domainObject, String attr, DomainObject dobj)
DomainObject.set(String, Object)
protected static DataObject add(DomainObject domainObject, String roleName, DataObject value)
DomainObject.add(String, DataObject)
protected static DataObject add(DomainObject domainObject, String roleName, DomainObject value)
DomainObject.add(String, DomainObject)
protected static void remove(DomainObject domainObject, String roleName, DataObject value)
DomainObject.remove(String, DataObject)
protected static void remove(DomainObject domainObject, String roleName, DomainObject value)
DomainObject.remove(String, DomainObject)
protected static void clear(DomainObject domainObject, String roleName)
DomainObject.clear(String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |