oracle.cle.persistence
Interface HandlerDefinition

All Known Implementing Classes:
Handler

public interface HandlerDefinition

This interface is the parent for the abstract Handler class and all implementation level Handler interfaces. Extend this for xyz.resource.XXXHandler, where XXX is the name of an implementation level business object or "resource".


Method Summary
 java.lang.Object createObject(java.util.Map defaultValues)
          Make a new instance of the specified Object for which this Handler is being constructed.
 java.lang.Object createObject(java.util.Map defaultValues, java.lang.Object sessionId)
          Make a new instance of the specified Object for which this Handler is being constructed.
 void deleteObject(java.lang.Object key)
          Delete the Resource with the specified key
 void deleteObject(java.lang.Object key, java.lang.Object sessionId)
          Delete the Resource with the specified key
 void deleteObject(Resource aResource, java.lang.Object sessionId)
          Deprecated. Use deleteObject(Object, Object) instead. Handler will now work against any business object interface, not only those extending Resource. Resource is deprecated.
 java.lang.Object findObject(java.lang.Object key)
          Get the Object for the specified key
 java.lang.Object findObject(java.lang.Object key, java.lang.Object sessionId)
          Get the Object for the specified key
 java.util.Vector getAllObjects()
          Returns a Vector of resource objects represented by this Handler
 java.util.Vector getAllObjects(java.lang.Object sessionId)
          Returns a Vector of resource objects represented by this Handler
 Resource getObject(java.lang.Object key, java.lang.Object sessionId)
          Deprecated. Use findObject instead. Handler will now work against any business object interface, not only those extending Resource. Resource is deprecated.
 Resource newObject(java.lang.Object sessionId)
          Deprecated. Use createObject instead. Handler will now work against any business object interface, not only those extending Resource. Resource is deprecated.
 

Method Detail

getAllObjects

public java.util.Vector getAllObjects()
                               throws java.lang.Exception
Returns a Vector of resource objects represented by this Handler
Returns:
vector of objects

getAllObjects

public java.util.Vector getAllObjects(java.lang.Object sessionId)
                               throws java.lang.Exception
Returns a Vector of resource objects represented by this Handler
Returns:
vector of objects

createObject

public java.lang.Object createObject(java.util.Map defaultValues,
                                     java.lang.Object sessionId)
                              throws java.lang.Exception
Make a new instance of the specified Object for which this Handler is being constructed. If the object requires default values, they can be passed via the Map provided.

createObject

public java.lang.Object createObject(java.util.Map defaultValues)
                              throws java.lang.Exception
Make a new instance of the specified Object for which this Handler is being constructed. If the object requires default values, they can be passed via the Map provided.

newObject

public Resource newObject(java.lang.Object sessionId)
                   throws java.lang.Exception
Deprecated. Use createObject instead. Handler will now work against any business object interface, not only those extending Resource. Resource is deprecated.


findObject

public java.lang.Object findObject(java.lang.Object key,
                                   java.lang.Object sessionId)
                            throws java.lang.Exception
Get the Object for the specified key

findObject

public java.lang.Object findObject(java.lang.Object key)
                            throws java.lang.Exception
Get the Object for the specified key

getObject

public Resource getObject(java.lang.Object key,
                          java.lang.Object sessionId)
                   throws java.lang.Exception
Deprecated. Use findObject instead. Handler will now work against any business object interface, not only those extending Resource. Resource is deprecated.

Get the Resource for the specified key

deleteObject

public void deleteObject(java.lang.Object key,
                         java.lang.Object sessionId)
                  throws java.lang.Exception
Delete the Resource with the specified key

deleteObject

public void deleteObject(java.lang.Object key)
                  throws java.lang.Exception
Delete the Resource with the specified key

deleteObject

public void deleteObject(Resource aResource,
                         java.lang.Object sessionId)
                  throws java.lang.Exception
Deprecated. Use deleteObject(Object, Object) instead. Handler will now work against any business object interface, not only those extending Resource. Resource is deprecated.

Delete the specified Resource


Copyright © 2003 ORACLE Corp. All Rights Reserved.