Class DataManager

java.lang.Object
org.dlese.dpc.datamgr.DataManager
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SerializedDataManager

public abstract class DataManager extends Object implements Serializable
Provides an abstract implementation of a common interface for applications needing to work with a data store. Implementers of DataListener register with a DataManager instance. An instance of data is uniquely identified using an object identifier. Applications must request locks to restrict writing of data.

Version:
1.0, 9/30/02
Author:
Dave Deniman, John Weatherley
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract boolean
    Deletes an existing data object iff the object is not locked.
    abstract boolean
    delete(String oid, String lockKey)
    Deletes an existing data object, assuming the caller had requested and recieved the necessary lock.
    abstract Object
    get(String oid)
    Retrieves a single data object.
    abstract List
    get(List oids)
    Retrieves a List of data objects.
    abstract boolean
    Determine whether a given object is locked.
    abstract boolean
    isValidLock(String oid, String lockKey)
    Determine whether a given object is locked with the given key.
    abstract String
    lock(String oid)
    Request a lock for a data object.
    abstract boolean
    Determines whether an object with the given oid exists in the DataManager.
    abstract Object
    put(String oid, Object obj)
    Adds a new object of data.
    abstract Object
    Removes an existing data object iff the object is not locked.
    abstract Object
    remove(String oid, String lockKey)
    Removes an existing data object, assuming the caller had requested and recieved the necessary lock.
    abstract boolean
    unlock(String oid, String lockKey)
    Remove the lock on a data object.
    abstract Object
    update(String oid, Object obj)
    Updates a new object of data iff the object is not locked.
    abstract Object
    update(String oid, Object obj, String lockKey)
    Updates a new object of data, assuming the caller had requested and recieved the necessary lock.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait