org.exolab.core.database.recman
Class PMDCollectionManager

java.lang.Object
  extended by org.exolab.core.database.recman.PMDCollectionManager
All Implemented Interfaces:
CollectionManagerIfc

public class PMDCollectionManager
extends java.lang.Object
implements CollectionManagerIfc

This is an implementation of the collection manager specific to the page managed database. These are collections that are persistent capable.

The PMDCollectionManager is a singleton classes and is accessible through PMDCollectionManager.instance

Version:
$Revision: 1.3 $ $Date: 2003/06/09 06:28:39 $
Author:
Jim Alateras
See Also:
CollectionManagerIfc

Method Summary
 HashMapIfc createHashMap()
          Create a hashmap with default capacity and return a reference to the client.
 TreeMapIfc createTreeMap()
          Create a treemap with default capacity and return a reference to the client.
 TreeMapIfc createTreeMap(java.util.Comparator comparator)
          Create a treemap with the specified comparator and return a reference client.
 TreeSetIfc createTreeSet()
          Create a treeset with default capacity and return a reference to the client.
 TreeSetIfc createTreeSet(java.util.Comparator comparator)
          Create a treeset with the specified comparator and return a reference client.
 VectorIfc createVector()
          Create a vector with default capacity and return a reference to the to the client.
static PMDCollectionManager instance()
          Return the singleton reference to the collection manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static PMDCollectionManager instance()
Return the singleton reference to the collection manager. If one does not exist, create it before returning it.

Returns:
PMDCollectionManager

createVector

public VectorIfc createVector()
                       throws FailedToCreateCollectionException
Description copied from interface: CollectionManagerIfc
Create a vector with default capacity and return a reference to the to the client. If the vector cannot be created then throw FailedToCreate- CollectionException exception.

Specified by:
createVector in interface CollectionManagerIfc
Returns:
VectorIfc returned object
Throws:
FailedToCreateCollectionException

createHashMap

public HashMapIfc createHashMap()
                         throws FailedToCreateCollectionException
Description copied from interface: CollectionManagerIfc
Create a hashmap with default capacity and return a reference to the client. If the hahsmap cannot be created then throw FailedToCreate- CollectionException exception.

Specified by:
createHashMap in interface CollectionManagerIfc
Returns:
HashMapIfc returned object
Throws:
FailedToCreateCollectionException

createTreeMap

public TreeMapIfc createTreeMap()
                         throws FailedToCreateCollectionException
Description copied from interface: CollectionManagerIfc
Create a treemap with default capacity and return a reference to the client. If the treemap cannot be created then throw FailedToCreate- CollectionException exception

Specified by:
createTreeMap in interface CollectionManagerIfc
Returns:
TreeMapIfc returned object
Throws:
FailedToCreateCollectionException

createTreeMap

public TreeMapIfc createTreeMap(java.util.Comparator comparator)
                         throws FailedToCreateCollectionException
Description copied from interface: CollectionManagerIfc
Create a treemap with the specified comparator and return a reference client. If the treemap cannot be created then throw FailedToCreate- CollectionException exception

Specified by:
createTreeMap in interface CollectionManagerIfc
Parameters:
comparator - specified comparator
Returns:
TreeMapIfc returned object
Throws:
FailedToCreateCollectionException

createTreeSet

public TreeSetIfc createTreeSet()
                         throws FailedToCreateCollectionException
Description copied from interface: CollectionManagerIfc
Create a treeset with default capacity and return a reference to the client. If the treeset cannot be created then throw FailedToCreate- CollectionException exception

Specified by:
createTreeSet in interface CollectionManagerIfc
Returns:
TreeSetIfc returned object
Throws:
FailedToCreateCollectionException

createTreeSet

public TreeSetIfc createTreeSet(java.util.Comparator comparator)
                         throws FailedToCreateCollectionException
Description copied from interface: CollectionManagerIfc
Create a treeset with the specified comparator and return a reference client. If the treeset cannot be created then throw FailedToCreate- CollectionException exception

Specified by:
createTreeSet in interface CollectionManagerIfc
Parameters:
comparator - specified comparator
Returns:
TreeSetIfc returned object
Throws:
FailedToCreateCollectionException


Copyright © 1999-2012 The Exolab Group. All Rights Reserved.