public class VirtualObject
extends java.lang.Object
| Constructor and Description |
|---|
VirtualObject()
Creates a new object not attached to any repository.
|
VirtualObject(Repository repository,
java.util.Map<java.lang.String,? extends java.lang.Object> creationParameters)
Creates a new object from the given repository and parameters.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,? extends java.lang.Object> |
getCreationParameters()
Gets the creation parameters this object was created from.
|
Repository |
getRepository()
Gets the
Repository this object was created from. |
void |
invokeMethod(java.lang.String method,
java.util.Map<java.lang.String,? extends java.lang.Object> parameters,
Adapter.BinaryCallback callback)
Invokes a remotable method exposed within instances of this class on the
server,
parses the response as binary data.
|
void |
invokeMethod(java.lang.String method,
java.util.Map<java.lang.String,? extends java.lang.Object> parameters,
Adapter.Callback callback)
Invokes a remotable method exposed within instances of this class on the
server.
|
void |
setCreationParameters(java.util.Map<java.lang.String,? extends java.lang.Object> creationParameters)
Sets the creation parameters this object was created from.
|
void |
setRepository(Repository repository)
Sets the
Repository this object was created from. |
java.util.Map<java.lang.String,? extends java.lang.Object> |
toMap()
Converts the object (and all of its Java Bean properties) into a
Map. |
public VirtualObject()
public VirtualObject(Repository repository, java.util.Map<java.lang.String,? extends java.lang.Object> creationParameters)
repository - The repository this object should inherit from.creationParameters - The creationParameters of the new object.public Repository getRepository()
Repository this object was created from.Repository.public void setRepository(Repository repository)
Repository this object was created from.repository - The Repository.public java.util.Map<java.lang.String,? extends java.lang.Object> getCreationParameters()
public void setCreationParameters(java.util.Map<java.lang.String,? extends java.lang.Object> creationParameters)
creationParameters - The creation parameters.public java.util.Map<java.lang.String,? extends java.lang.Object> toMap()
Map.public void invokeMethod(java.lang.String method,
java.util.Map<java.lang.String,? extends java.lang.Object> parameters,
Adapter.Callback callback)
method - The method to invoke (without the repository), e.g.
"doSomething".parameters - The parameters to invoke with.callback - The callback to invoke when the execution finishes.public void invokeMethod(java.lang.String method,
java.util.Map<java.lang.String,? extends java.lang.Object> parameters,
Adapter.BinaryCallback callback)
method - The method to invoke (without the repository), e.g.
"doSomething".parameters - The parameters to invoke with.callback - The callback to invoke when the execution finishes.