|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RefObject_1_0
This interface extends the javax.jmi.reflect.RefObject interface by additional helpers and openMDX-specific methods. These methods must not be used by 100% JMI-compliant applications.
| Method Summary | |
|---|---|
void |
refAddEventListener(String feature,
EventListener listener)
Add an event listener. |
void |
refAddToUnitOfWork()
After this call the object observes unit of work boundaries. |
void |
refAddValue(String featureName,
Object qualifier,
Object value)
Adds the value to the feature with the specified qualifier. |
Object |
refContext()
Returns application-defined context. |
Set<String> |
refDefaultFetchGroup()
Returns the refDelegate().objDefaultFetchGroup() plus the set of all non-derived attributes of the object. |
Object_1_0 |
refDelegate()
Return the object which RefObject_1_0 delegates to. |
void |
refFlush()
Flush the state of the instance to its provider. |
EventListener[] |
refGetEventListeners(String feature,
Class<? extends EventListener> listenerType)
Get event listeners. |
Path |
refGetPath()
Returns the object's access path. |
Object |
refGetValue(RefObject feature,
Object qualifier,
boolean marshal)
Returns the value of feature identified by qualifier. |
long |
refGetValue(String feature,
Object value,
long position)
Returns the value of feature. |
void |
refInitialize(boolean setRequiredToNull,
boolean setOptionalToNull)
Initializes the object as follows: collections are cleared. primitive required attributes are set to default values: string = ""; number = 0; date = min date. |
void |
refInitialize(RefObject source)
Initializes the object based on the source object. |
boolean |
refIsDeleted()
Tests whether this object has been deleted. |
boolean |
refIsDirty()
Tests whether this object is dirty. |
boolean |
refIsNew()
Tests whether this object has been newly made persistent. |
boolean |
refIsPersistent()
Tests whether this object is persistent. |
boolean |
refIsWriteProtected()
Tells whether this object is in read-only mode. |
void |
refRefresh()
Refresh the state of the instance from its provider. |
void |
refRefreshAsynchronously()
Refresh the state of the instance from its provider asynchrounously. |
void |
refRemoveEventListener(String feature,
EventListener listener)
Remove an event listener. |
void |
refRemoveFromUnitOfWork()
After this call the object ignores unit of work boundaries. |
void |
refRemoveValue(String featureName,
Object qualifier)
Removes qualified value from feature. |
void |
refRemoveValue(String featureName,
RefObject value)
Removes value from feature. |
void |
refSetValue(String feature,
Object newValue,
long length)
Sets the value of feature. |
void |
refWriteProtect()
Puts an object in read-only mode. |
| Methods inherited from interface javax.jmi.reflect.RefObject |
|---|
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite |
| Methods inherited from interface javax.jmi.reflect.RefFeatured |
|---|
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue |
| Methods inherited from interface javax.jmi.reflect.RefBaseObject |
|---|
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints |
| Method Detail |
|---|
Object_1_0 refDelegate()
Path refGetPath()
void refWriteProtect()
This method is idempotent.
JmiServiceException - ILLEGAL_STATE
if the object is dirtyvoid refAddToUnitOfWork()
This method is idempotent.
JmiServiceException - ILLEGAL_STATE
if the object is locked
JmiServiceException - if the object can't be added to the unit of work for
another reason.void refRemoveFromUnitOfWork()
This method is idempotent.
JmiServiceException - ILLEGAL_STATE
if the object is dirty.
JmiServiceException - if the object can't be removed from
its unit of work for another reasonboolean refIsWriteProtected()
boolean refIsDirty()
Transient instances return false.
boolean refIsPersistent()
boolean refIsNew()
Transient instances return false.
boolean refIsDeleted()
void refRefresh()
JmiServiceException - if the object can't be synchronizedvoid refFlush()
JmiServiceException - if the object can't be flushed.void refRefreshAsynchronously()
JmiServiceException - if the object can't be synchronized asynchronouslySet<String> refDefaultFetchGroup()
Object refContext()
void refInitialize(RefObject source)
existing - existing object.
JmiServiceException - thrown if object can not be initialized.
void refInitialize(boolean setRequiredToNull,
boolean setOptionalToNull)
setRequiredToNull - if true, required attributes are set to null. Otherwise
they are initialized with a default value.setOptionalToNull - if true, optional features are set to true, otherwise
they are left untouched.
JmiServiceException - thrown if object can not be initialized.
Object refGetValue(RefObject feature,
Object qualifier,
boolean marshal)
feature - feature to be retrieved.qualifier - identifies object to be retrieved.marshal - if true the returned value is marshalled.
JmiServiceException
long refGetValue(String feature,
Object value,
long position)
feature - feature to be retrieved.value - binary or character output stream.position - stream is returned starting from position.
JmiServiceException
void refSetValue(String feature,
Object newValue,
long length)
feature - feature to be retrieved.newValue - binary or character input stream.length - length of the stream.
JmiServiceException
void refAddValue(String featureName,
Object qualifier,
Object value)
featureName - feature to add value.qualifier - qualifier of value to add.value - value to add.
void refRemoveValue(String featureName,
Object qualifier)
featureName - qualified value is removed from feature.qualifier - value qualifier.
void refRemoveValue(String featureName,
RefObject value)
featureName - value is removed from feature.value - value to be removed.
void refAddEventListener(String feature,
EventListener listener)
throws ServiceException
feature - restrict the listener to this feature;
or null if the listener is interested in all featureslistener - the event listener to be added
It is implementation dependent whether the feature name is verified or not.
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
ServiceException - NOT_SUPPORTED
if the listener's class is not supported
ServiceException - TOO_MANY_EVENT_LISTENERS
if an attempt is made to register more than one
listener for a unicast event.
ServiceException - BAD_PARAMETER
If the listener is null
void refRemoveEventListener(String feature,
EventListener listener)
throws ServiceException
It is implementation dependent whether feature name and listener class are verified.
feature - 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
ServiceException - NOT_SUPPORTED
if the listener's class is not supported
ServiceException - BAD_PARAMETER
If the listener is null
EventListener[] refGetEventListeners(String feature,
Class<? extends EventListener> listenerType)
throws ServiceException
The feature argument is ignored for listeners registered
with a null feature argument.
It is implementation dependent whether feature name and listener type are verified.
feature - the name of the feature that was listened on,
or null for listeners 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
ServiceException - BAD_PARAMETER
If the listener's type is not a subtype of EventListener
ServiceException - NOT_SUPPORTED
if the listener type is not supported
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||