org.persvr.remote
Class ClientData

java.lang.Object
  extended by org.persvr.remote.ClientData
All Implemented Interfaces:
DataSource

public class ClientData
extends java.lang.Object
implements DataSource

Just a place holder data source for client generated objects, client created objects should be in the id map or not available

Author:
Kris Zyp

Constructor Summary
ClientData()
           
 
Method Summary
 java.lang.Object getFieldValue(LazyPropertyId valueId)
          This is called when a field value contains an unfulfilled value (ValueId)
 java.lang.String getId()
          Gets a string identification of the data source
 boolean hiddenId(java.lang.String id)
           
 void initParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
          This is called on initialization and provides access to the data source configuration parameters
 void mapObject(PersistableInitializer initializer, java.lang.String objectId)
          This is called when an object is being activated to retrieve the persisted data for a given object
 java.util.Iterator mapQuery(Query query)
          This is called when an object is being activated to retrieve the persisted data for a given object with a filter
 void mapSchema(PersistableInitializer initializer)
           
 void setId(java.lang.String id)
          Sets a string identification of the data source
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientData

public ClientData()
Method Detail

hiddenId

public boolean hiddenId(java.lang.String id)
Specified by:
hiddenId in interface DataSource

getFieldValue

public java.lang.Object getFieldValue(LazyPropertyId valueId)
                               throws java.lang.Exception
Description copied from interface: DataSource
This is called when a field value contains an unfulfilled value (ValueId)

Specified by:
getFieldValue in interface DataSource
Returns:
the real value referred to by valueId
Throws:
java.lang.Exception

initParameters

public void initParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
                    throws java.lang.Exception
Description copied from interface: DataSource
This is called on initialization and provides access to the data source configuration parameters

Specified by:
initParameters in interface DataSource
Throws:
java.lang.Exception

mapObject

public void mapObject(PersistableInitializer initializer,
                      java.lang.String objectId)
               throws java.lang.Exception
Description copied from interface: DataSource
This is called when an object is being activated to retrieve the persisted data for a given object

Specified by:
mapObject in interface DataSource
Throws:
java.lang.Exception

mapQuery

public java.util.Iterator mapQuery(Query query)
                            throws java.lang.Exception
Description copied from interface: DataSource
This is called when an object is being activated to retrieve the persisted data for a given object with a filter

Specified by:
mapQuery in interface DataSource
Returns:
Throws:
java.lang.Exception

getId

public java.lang.String getId()
Description copied from interface: DataSource
Gets a string identification of the data source

Specified by:
getId in interface DataSource
Returns:

setId

public void setId(java.lang.String id)
Description copied from interface: DataSource
Sets a string identification of the data source

Specified by:
setId in interface DataSource

mapSchema

public void mapSchema(PersistableInitializer initializer)
               throws java.lang.Exception
Throws:
java.lang.Exception