|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.base.accessor.generic.spi.DelegatingObject_1
org.openmdx.base.accessor.generic.spi.MarshallingObject_1
public class MarshallingObject_1
An abstract delegating object
| Field Summary | |
|---|---|
protected Marshaller |
marshaller
|
| Constructor Summary | |
|---|---|
protected |
MarshallingObject_1()
Deserializer |
|
MarshallingObject_1(Object_1_0 object,
Marshaller marshaller)
Constructor |
| Method Summary | |
|---|---|
void |
objAddEventListener(String feature,
EventListener listener)
Add an event listener. |
Object_1_0 |
objCopy(FilterableMap there,
String criteria)
The copy operation makes a copy of the object. |
FilterableMap |
objGetContainer(String feature)
Get a reference feature. |
EventListener[] |
objGetEventListeners(String feature,
Class listenerType)
Add an event listener. |
List |
objGetList(String feature)
Get a List attribute. |
Set |
objGetSet(String feature)
Get a Set attribute. |
SortedMap |
objGetSparseArray(String feature)
Get a SparseArray attribute. |
Object |
objGetValue(String feature)
Get a feature. |
Structure_1_0 |
objInvokeOperation(String operation,
Structure_1_0 arguments)
Invokes an operation synchronously. |
Structure_1_0 |
objInvokeOperationInUnitOfWork(String operation,
Structure_1_0 arguments)
Invokes an operation asynchronously. |
void |
objMove(FilterableMap there,
String criteria)
The move operation moves the object to the scope of the container passed as the first parameter. |
void |
objRemoveEventListener(String feature,
EventListener listener)
Remove an event listener. |
void |
objSetValue(String feature,
Object to)
Set an attribute's value. |
| Methods inherited from class org.openmdx.base.accessor.generic.spi.DelegatingObject_1 |
|---|
equals, getDelegate, hashCode, objAddToUnitOfWork, objDefaultFetchGroup, objFlush, objGetClass, objGetDelegate, objGetLargeObject, objGetPath, objGetResourceIdentifier, objIsDeleted, objIsDirty, objIsInUnitOfWork, objIsNew, objIsPersistent, objMakeClean, objMakeVolatile, objRefresh, objRegisterSynchronization, objRemove, objRemoveFromUnitOfWork, setDelegate, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Marshaller marshaller
| Constructor Detail |
|---|
public MarshallingObject_1(Object_1_0 object,
Marshaller marshaller)
protected MarshallingObject_1()
| Method Detail |
|---|
public void objSetValue(String feature,
Object to)
throws ServiceException
This method returns a BAD_PARAMETER exception unless the
feature is single valued or a stream.
objSetValue in interface Object_1_0objSetValue in class DelegatingObject_1feature - the attribute's nameto - the object.
ServiceException - ILLEGAL_STATE
if the object is write protected or the feature is a
stream modified in the current unit of work.
ServiceException - BAD_PARAMETER
if the feature is multi-valued
ServiceException - NOT_SUPPORTED
if the object has no such feature
ServiceException - if the object is not accessible
public Object objGetValue(String feature)
throws ServiceException
objGetValue in interface Object_1_0objGetValue in class DelegatingObject_1feature - the feature's name
ServiceException - NOT_SUPPORTED
if the object has no such feature
ServiceException - if the object is not accessible
public List objGetList(String feature)
throws ServiceException
This method never returns null as an instance of the
requested class is created on demand if it hasn't been set yet.
objGetList in interface Object_1_0objGetList in class DelegatingObject_1feature - The feature's name.
ServiceException - ILLEGAL_STATE
if the object is deleted
ServiceException - NOT_SUPPORTED
if the object has no such feature
ClassCastException - if the feature's value is not a list
public Set objGetSet(String feature)
throws ServiceException
This method never returns null as an instance of the
requested class is created on demand if it hasn't been set yet.
objGetSet in interface Object_1_0objGetSet in class DelegatingObject_1feature - The feature's name.
ServiceException - ILLEGAL_STATE
if the object is deleted
ServiceException - NOT_SUPPORTED
if the object has no such feature
ClassCastException - if the feature's value is not a set
public SortedMap objGetSparseArray(String feature)
throws ServiceException
This method never returns null as an instance of the
requested class is created on demand if it hasn't been set yet.
objGetSparseArray in interface Object_1_0objGetSparseArray in class DelegatingObject_1feature - The feature's name.
ServiceException - ILLEGAL_STATE
if the object is deleted
ClassCastException - if the feature's value is not a sparse array
ServiceException - NOT_SUPPORTED
if the object has no such feature
public FilterableMap objGetContainer(String feature)
throws ServiceException
This method never returns null as an instance of the
requested class is created on demand if it hasn't been set yet.
objGetContainer in interface Object_1_0objGetContainer in class DelegatingObject_1feature - The feature's name.
ServiceException - ILLEGAL_STATE
if the object is deleted
ClassCastException - if the feature is not a reference
ServiceException - NOT_SUPPORTED
if the object has no such feature
public Object_1_0 objCopy(FilterableMap there,
String criteria)
throws ServiceException
objCopy in interface Object_1_0objCopy in class DelegatingObject_1there - the new object's container or null, in which case
the object will not belong to any container until it is moved
to a container.criteria - The criteria is used to add the object to the container or
null, in which case it is up to the
implementation to define the criteria.
- Returns:
- an object initialized from the existing object.
- Throws:
ServiceException - if the copy operation fails.
public void objMove(FilterableMap there,
String criteria)
throws ServiceException
objMove in interface Object_1_0objMove in class DelegatingObject_1there - the object's new container.criteria - The criteria is used to move the object to the container or
null, in which case it is up to the
implementation to define the criteria.
- Throws:
ServiceException - ILLEGAL_STATE
if the object is persistent.
ServiceException - BAD_PARAMETER
if there is null.
ServiceException - if the move operation fails.
public Structure_1_0 objInvokeOperationInUnitOfWork(String operation,
Structure_1_0 arguments)
throws ServiceException
objInvokeOperationInUnitOfWork in interface Object_1_0objInvokeOperationInUnitOfWork in class DelegatingObject_1operation - The operation namearguments - The operation's arguments object.
ServiceException - ILLEGAL_STATE
if no unit of work is in progress
ServiceException - NOT_SUPPORTED
if either asynchronous calls are not supported by the
manager or the requested operation is not supportd by the
object.
ServiceException - if the invocation fails for another reason
public Structure_1_0 objInvokeOperation(String operation,
Structure_1_0 arguments)
throws ServiceException
Only query operations can be invoked synchronously unless the unit of work is non-optimistic or committing.
objInvokeOperation in interface Object_1_0objInvokeOperation in class DelegatingObject_1operation - The operation namearguments - The operation's arguments object.
ServiceException - ILLEGAL_STATE
if a non-query operation is called in an inappropriate
state of the unit of work.
ServiceException - NOT_SUPPORTED
if either synchronous calls are not supported by the
manager or the requested operation is not supportd by the
object.
ServiceException - if a checked exception is thrown by the implementation or
the invocation fails for another reason.
public void objAddEventListener(String feature,
EventListener listener)
throws ServiceException
objAddEventListener in interface Object_1_0objAddEventListener in class DelegatingObject_1feature - restrict the listener to this feature;
or null if the listener is interested in all featureslistener - the event listener to be added
ServiceException - BAD_MEMBER_NAME
if the object has no such feature or if a non-null
feature name is specified for an instance level event
public void objRemoveEventListener(String feature,
EventListener listener)
throws ServiceException
objRemoveEventListener in interface Object_1_0objRemoveEventListener in class DelegatingObject_1feature - the name of the feature that was listened on,
or null if the listener is interested in all featureslistener - the event listener to be removed
ServiceException - BAD_MEMBER_NAME
if the object has no such feature or if a non-null
feature name is specified for an instance level event
public EventListener[] objGetEventListeners(String feature,
Class listenerType)
throws ServiceException
objGetEventListeners in interface Object_1_0objGetEventListeners in class DelegatingObject_1feature - the name of the feature that was listened on,
or null if the listener is interested in all featureslistenerType - the type of the event listeners to be returned
ServiceException - BAD_MEMBER_NAME
if the object has no such feature or if a non-null
feature name is specified for an instance level event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||