com.objectwave.persist.collectionAdapters
Class SupportedCollections

java.lang.Object
  |
  +--com.objectwave.persist.collectionAdapters.SupportedCollections

public class SupportedCollections
extends java.lang.Object

This class is nothing more than a place holder to initialize predefined supported collections. The registered collections are the default collection adpaters for the registered class type. This can be overridden by explicitly setting the collection adapter on the SQLQuery object.

Version:
1.2
Author:
Dave Hoag

Constructor Summary
SupportedCollections()
          The default behavior is to initialize the collections with defaults.
SupportedCollections(boolean useDefaults)
          The default behavior is to initialize the collections with defaults.
SupportedCollections(boolean useDefaults, java.util.Properties props)
          If using the defaults, first set up those collection adapters; If props is not null, then add those to the list of CollectionAdapters.
SupportedCollections(java.util.Properties props)
          The default behavior is to initialize the collections with defaults.
 
Method Summary
 void addCollection(java.lang.String collectionClassName, java.lang.String adapterClassName)
           
 void initialize(java.util.Properties props)
          Register the collection classes in the properties parameter.
 void initializeDefaults()
          JavaGrinder predefined support collections.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SupportedCollections

public SupportedCollections()
The default behavior is to initialize the collections with defaults.


SupportedCollections

public SupportedCollections(java.util.Properties props)
The default behavior is to initialize the collections with defaults.


SupportedCollections

public SupportedCollections(boolean useDefaults)
The default behavior is to initialize the collections with defaults.


SupportedCollections

public SupportedCollections(boolean useDefaults,
                            java.util.Properties props)
If using the defaults, first set up those collection adapters; If props is not null, then add those to the list of CollectionAdapters.

Method Detail

addCollection

public void addCollection(java.lang.String collectionClassName,
                          java.lang.String adapterClassName)
                   throws java.lang.ClassNotFoundException
Parameters:
collectionClassName - java.lang.String
adapterClassName - java.lang.String The class must implement the CollectionAdapter interface in Persist.
java.lang.ClassNotFoundException
See Also:
CollectionAdapter

initialize

public void initialize(java.util.Properties props)
Register the collection classes in the properties parameter. 'collectionClassName=adapterClassName' 'java.util.Hashtable=com.objectwave.persist.collectionAdapters.HashtableCollectionAdapter'

See Also:
CollectionAdapter

initializeDefaults

public void initializeDefaults()
JavaGrinder predefined support collections. NOTE: Vector is not in this list, since that is the SQLQuery default collection type.