net.sf.jso.remote
Class StorageManagerProxy

java.lang.Object
  extended bynet.sf.jso.remote.StorageManagerProxy
All Implemented Interfaces:
java.util.EventListener, QueryProcessor, SchemaListener, java.io.Serializable, StatusListener, StorageListener, StorageManager

public class StorageManagerProxy
extends java.lang.Object
implements StorageManager, java.io.Serializable

Proxy for remote storage managers.

See Also:
Serialized Form

Constructor Summary
StorageManagerProxy(RemoteStorageManager aManager)
          Constructs the proxy.
 
Method Summary
 void addStatusListener(StatusListener listener)
          Not supported.
 void addStorageListener(StorageListener listener)
          Not supported.
 void batchStore(java.util.Collection objs, boolean deep)
          Not supported.
 void classAltered(SchemaEvent event)
          Called when a class in the schema is altered.
 void classDropped(SchemaEvent event)
          Called when a class in the schema is dropped.
 int count(Parameters params)
          Not supported.
 int count(Parameters params, Transaction tx)
          Not supported.
 int countPages(Parameters params)
          Not supported.
 int countPages(Parameters params, Transaction tx)
          Not supported.
 OID createOID(java.lang.Object obj)
          Not supported.
 void delete(java.lang.Object obj)
          Not supported.
 void delete(OID oid)
          Not supported.
 int delete(Parameters params)
          Not supported.
 boolean equals(java.lang.Object o)
          Indicates whether some other proxy is "equal to" this one.
 ManagerInfo getManagerInfo()
          Not supported.
 OID getOID(java.lang.Object obj)
          Not supported.
 Status getStatus()
          Not supported.
 Transaction getTransaction()
          Not supported.
 int hashCode()
          Returns a hash code value for the proxy.
 void invalidateCache()
          Not supported.
 boolean isRemote()
          Indicates if manager is running on another JVM.
 void objectDeleted(StorageEvent event)
          Called when an object is deleted.
 void objectStored(StorageEvent event)
          Called when an object is stored.
 void removeStatusListener(StatusListener listener)
          Not supported.
 void removeStorageListener(StorageListener listener)
          Not supported.
 java.lang.Object retrieve(OID oid)
          Not supported.
 java.lang.Object retrieve(OID oid, boolean summary)
          Not supported.
 java.lang.Object retrieve(OID oid, boolean summary, boolean lazy)
          Not supported.
 java.util.List retrieve(Parameters params)
          Not supported.
 java.util.List retrieve(Parameters params, Transaction tx)
          Not supported.
 void start(StorageController aController)
          Not supported.
 void statusChanged(StatusEvent event)
          Called when a status change occur.
 void stop()
          Not supported.
 OID store(java.lang.Object obj)
          Not supported.
 OID store(java.lang.Object obj, boolean deep)
          Not supported.
 void subclassCreated(SchemaEvent event)
          Called when a class in the schema is created and is subclass of another class.
 void subclassDropped(SchemaEvent event)
          Called when a class in the schema is dropped and is subclass of another class.
 void unlinkTransientObjects()
          Not supported.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageManagerProxy

public StorageManagerProxy(RemoteStorageManager aManager)
Constructs the proxy.

Parameters:
aManager - Reference to remote storage manager.
Method Detail

start

public void start(StorageController aController)
           throws StorageException
Not supported.

Specified by:
start in interface StorageManager
Parameters:
aController - Application's controller.
Throws:
RuntimeStorageException - Always.
StorageException

stop

public void stop()
          throws StorageException
Not supported.

Specified by:
stop in interface StorageManager
Throws:
RuntimeStorageException - Always.
StorageException

getStatus

public Status getStatus()
Not supported.

Specified by:
getStatus in interface StorageManager
Returns:
manager's current status.
Throws:
RuntimeStorageException - Always.

isRemote

public boolean isRemote()
Description copied from interface: StorageManager
Indicates if manager is running on another JVM.

Specified by:
isRemote in interface StorageManager
Returns:
true if manager is running on another JVM; false otherwise.
See Also:
StorageManager.isRemote()

invalidateCache

public void invalidateCache()
Not supported.

Specified by:
invalidateCache in interface StorageManager
Throws:
RuntimeStorageException - Always.

getManagerInfo

public ManagerInfo getManagerInfo()
Not supported.

Specified by:
getManagerInfo in interface StorageManager
Returns:
Information about storage management.
Throws:
RuntimeStorageException - Always.

getTransaction

public Transaction getTransaction()
                           throws StorageException
Not supported.

Specified by:
getTransaction in interface StorageManager
Returns:
If no transaction is currently associated to the current thread a new one is created and returned. Otherwise the associated transaction is returned.
Throws:
RuntimeStorageException - Always.
StorageException

createOID

public OID createOID(java.lang.Object obj)
Not supported.

Specified by:
createOID in interface StorageManager
Parameters:
obj - An OID representation. Usually a String or Number object.
Throws:
RuntimeStorageException - Always.

getOID

public OID getOID(java.lang.Object obj)
           throws StorageException
Not supported.

Specified by:
getOID in interface StorageManager
Parameters:
obj - The object to be identified.
Returns:
Storable object's OID.
Throws:
RuntimeStorageException - Always.
StorageException

unlinkTransientObjects

public void unlinkTransientObjects()
Not supported.

Specified by:
unlinkTransientObjects in interface StorageManager
Throws:
RuntimeStorageException - Always.

store

public OID store(java.lang.Object obj)
          throws StorageException
Not supported.

Specified by:
store in interface StorageManager
Parameters:
obj - The object to be stored.
Returns:
The stored object identification.
Throws:
RuntimeStorageException - Always.
StorageException - If any storage operation fails.

store

public OID store(java.lang.Object obj,
                 boolean deep)
          throws StorageException
Not supported.

Specified by:
store in interface StorageManager
Parameters:
obj - The object to be stored.
deep - Indicates if referenced objects should also be stored.
Returns:
The stored object identification.
Throws:
RuntimeStorageException - Always.
StorageException - If any storage operation fails.

batchStore

public void batchStore(java.util.Collection objs,
                       boolean deep)
                throws StorageException
Not supported.

Specified by:
batchStore in interface StorageManager
Parameters:
objs - The collection of object to be stored.
deep - Indicates if referenced objects should also be stored.
Throws:
RuntimeStorageException - Always.
StorageException - If any storage operation fails.

retrieve

public java.lang.Object retrieve(OID oid)
                          throws StorageException
Not supported.

Specified by:
retrieve in interface StorageManager
Parameters:
oid - The identification of object to be stored.
Returns:
The stored object.
Throws:
RuntimeStorageException - Always.
StorageException - If any storage operation fails.

retrieve

public java.lang.Object retrieve(OID oid,
                                 boolean summary)
                          throws StorageException
Not supported.

Specified by:
retrieve in interface StorageManager
Parameters:
oid - The identification of object to be stored.
summary - Indicates if only summary fields should be retrieved.
Returns:
The stored object.
Throws:
RuntimeStorageException - Always.
StorageException - If any storage operation fails.

retrieve

public java.lang.Object retrieve(OID oid,
                                 boolean summary,
                                 boolean lazy)
                          throws StorageException
Not supported.

Specified by:
retrieve in interface StorageManager
Parameters:
oid - The identification of object to be stored.
summary - Indicates if only summary fields should be retrieved.
lazy - Indicates if referenced objects should be lazy loaded.
Returns:
The stored object.
Throws:
RuntimeStorageException - Always.
StorageException - If any storage operation fails.

delete

public void delete(java.lang.Object obj)
            throws StorageException
Not supported.

Specified by:
delete in interface StorageManager
Parameters:
obj - The object to be deleted.
Throws:
RuntimeStorageException - Always.
StorageException - If any storage operation fails.

delete

public void delete(OID oid)
            throws StorageException
Not supported.

Specified by:
delete in interface StorageManager
Parameters:
oid - The identification of object to be deleted.
Throws:
RuntimeStorageException - Always.
StorageException - If any storage operation fails.

delete

public int delete(Parameters params)
           throws StorageException
Not supported.

Specified by:
delete in interface StorageManager
Parameters:
params - Parameters to be used.
Returns:
The number of objects deleted.
Throws:
RuntimeStorageException - Always.
StorageException - If any storage operation fails.

addStatusListener

public void addStatusListener(StatusListener listener)
Not supported.

Specified by:
addStatusListener in interface StorageManager
Parameters:
listener - Listener to receive status events.
Throws:
RuntimeStorageException - Always.

removeStatusListener

public void removeStatusListener(StatusListener listener)
Not supported.

Specified by:
removeStatusListener in interface StorageManager
Parameters:
listener - Listener to stop receiving status events.
Throws:
RuntimeStorageException - Always.

addStorageListener

public void addStorageListener(StorageListener listener)
Not supported.

Specified by:
addStorageListener in interface StorageManager
Parameters:
listener - Listener to receive storage events.
Throws:
RuntimeStorageException - Always.

removeStorageListener

public void removeStorageListener(StorageListener listener)
Not supported.

Specified by:
removeStorageListener in interface StorageManager
Parameters:
listener - Listener to stop receiving storage events.
Throws:
RuntimeStorageException - Always.

count

public int count(Parameters params,
                 Transaction tx)
          throws StorageException
Not supported.

Throws:
RuntimeStorageException - Always.
StorageException

count

public int count(Parameters params)
          throws StorageException
Not supported.

Specified by:
count in interface QueryProcessor
Parameters:
params - Parameters to be used.
Returns:
The number of objects that match supplied criteira.
Throws:
RuntimeStorageException - Always.
StorageException - If any storage operation fails.

countPages

public int countPages(Parameters params,
                      Transaction tx)
               throws StorageException
Not supported.

Throws:
RuntimeStorageException - Always.
StorageException

countPages

public int countPages(Parameters params)
               throws StorageException
Not supported.

Specified by:
countPages in interface QueryProcessor
Parameters:
params - Parameters to be used.
Returns:
The number of result pages that match supplied criteira according to supplied paging parameters. If supplied page size is lesser than 1 a negative count is returned.
Throws:
RuntimeStorageException - Always.
StorageException - If any storage operation fails.

retrieve

public java.util.List retrieve(Parameters params,
                               Transaction tx)
                        throws StorageException
Not supported.

Throws:
RuntimeStorageException - Always.
StorageException

retrieve

public java.util.List retrieve(Parameters params)
                        throws StorageException
Not supported.

Specified by:
retrieve in interface QueryProcessor
Parameters:
params - Parameters to be used.
Returns:
A list of objects that match supplied criteira, in supplied order and within supplied paging limits.
Throws:
RuntimeStorageException - Always.
StorageException - If any storage operation fails.

statusChanged

public void statusChanged(StatusEvent event)
Description copied from interface: StatusListener
Called when a status change occur.

Specified by:
statusChanged in interface StatusListener
See Also:
StatusListener.statusChanged(StatusEvent)

objectStored

public void objectStored(StorageEvent event)
Description copied from interface: StorageListener
Called when an object is stored.

Specified by:
objectStored in interface StorageListener
See Also:
StorageListener.objectStored(StorageEvent)

objectDeleted

public void objectDeleted(StorageEvent event)
Description copied from interface: StorageListener
Called when an object is deleted.

Specified by:
objectDeleted in interface StorageListener
See Also:
StorageListener.objectDeleted(StorageEvent)

classAltered

public void classAltered(SchemaEvent event)
Description copied from interface: SchemaListener
Called when a class in the schema is altered.

Specified by:
classAltered in interface SchemaListener
See Also:
SchemaListener.classAltered(SchemaEvent)

classDropped

public void classDropped(SchemaEvent event)
Description copied from interface: SchemaListener
Called when a class in the schema is dropped.

Specified by:
classDropped in interface SchemaListener
See Also:
SchemaListener.classDropped(SchemaEvent)

subclassCreated

public void subclassCreated(SchemaEvent event)
Description copied from interface: SchemaListener
Called when a class in the schema is created and is subclass of another class.

Specified by:
subclassCreated in interface SchemaListener
See Also:
SchemaListener.subclassCreated(SchemaEvent)

subclassDropped

public void subclassDropped(SchemaEvent event)
Description copied from interface: SchemaListener
Called when a class in the schema is dropped and is subclass of another class.

Specified by:
subclassDropped in interface SchemaListener
See Also:
SchemaListener.subclassDropped(SchemaEvent)

equals

public boolean equals(java.lang.Object o)
Indicates whether some other proxy is "equal to" this one.

Parameters:
o - The object with which to compare.
Returns:
true if the proxy is the same as the proxy argument; false otherwise.

hashCode

public int hashCode()
Returns a hash code value for the proxy.

Returns:
A hash code value for the proxy.