|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjve.generated.ObjectReference
jve.generated.BasicDataObject
jve.generated.DataSourceDataObject
Default implementation of a data object that is retrieved by a service call on a Data Source.
| Field Summary |
| Fields inherited from class jve.generated.ObjectReference |
debug |
| Fields inherited from interface jve.generated.IBoundObject |
DELIMITER, PROPERTY_OBJ_CHANGED |
| Constructor Summary | |
DataSourceDataObject()
|
|
| Method Summary | |
void |
actionPerformed(IActionBinder action)
React to an action that may impact this ActionDataObject and its arguments. |
IDataSource |
getDataSource()
Get the data source against which the service call will be performed. |
java.lang.Object |
getObject()
Get the referenced object. |
ObjectReference |
getServiceArgument()
Get an object reference to the service argument. |
java.lang.String |
getServiceSignature()
Get the string signature of the service method. |
java.lang.Class |
getType()
Get the class type of the referenced data object, which should be the return value of the service method. |
java.lang.Object |
getValue(java.lang.String property)
Get the value of the given property from the referenced object. |
boolean |
isAutoRefresh()
Get the value of the autoRefresh property. |
void |
refresh()
Refresh the value of the referenced object. |
void |
setAutoRefresh(boolean autoRefresh)
Sets the autoRefresh property. |
void |
setDataSource(IDataSource source)
Set the data source against which the service call will be performed. |
void |
setServiceArgument(ObjectReference arg)
Set the service argument for the service call. |
void |
setServiceSignature(java.lang.String service)
Set the service method with the given method signature. |
void |
setSourceObject(java.lang.Object obj)
Set the object referenced by this data object. |
java.lang.String |
toString()
Get a string representation of the ActionDataObject. |
| Methods inherited from class jve.generated.BasicDataObject |
isPrimitive, isReadOnly, setValue |
| Methods inherited from class jve.generated.ObjectReference |
addPropertyChangeListener, getProperty, getSourceObject, removePropertyChangeListener, setProperty, setSourceObject |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jve.generated.IBoundObject |
addPropertyChangeListener, getProperty, getSourceObject, removePropertyChangeListener, setProperty, setSourceObject |
| Constructor Detail |
public DataSourceDataObject()
| Method Detail |
public java.lang.Object getObject()
getObject in interface IBoundObjectgetObject in class ObjectReferencepublic void refresh()
PROPERTY_OBJ_CHANGED
as the property.
refresh in interface IBoundObjectrefresh in class BasicDataObjectpublic void setSourceObject(java.lang.Object obj)
setSourceObject in interface IBoundObjectsetSourceObject in class BasicDataObjectobj - the referenced objectpublic void setDataSource(IDataSource source)
setDataSource in interface IDataSourceServicesource - provider the data sourcepublic java.lang.Object getValue(java.lang.String property)
getValue in interface IDataObjectgetValue in class BasicDataObjectproperty - the property value to query on the referenced object.
public java.lang.String getServiceSignature()
getServiceSignature in interface IDataSourceServicepublic void setServiceSignature(java.lang.String service)
setServiceSignature in interface IDataSourceServiceservice - the service method signaturepublic void actionPerformed(IActionBinder action)
actionPerformed in interface IBoundObjectactionPerformed in class ObjectReferenceaction - the action that has occurred.IActionBinderpublic void setServiceArgument(ObjectReference arg)
setServiceArgument in interface IDataSourceServicearg - an object reference to the service argument.public java.lang.String toString()
toString in class BasicDataObjectpublic ObjectReference getServiceArgument()
getServiceArgument in interface IDataSourceServicepublic IDataSource getDataSource()
getDataSource in interface IDataSourceService
public java.lang.Class getType()
throws java.lang.IllegalStateException
getType in interface IBoundObjectgetType in class ObjectReferencejava.io.InvalidObjectException - if the service is not properly configured or the type can't be resolved.
java.lang.IllegalStateExceptionpublic boolean isAutoRefresh()
setAutoRefresh(boolean)public void setAutoRefresh(boolean autoRefresh)
autoRefresh - true to enable autoRefresh, false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||