com.objectwave.transactionalSupport
Class SupportedCollections

java.lang.Object
  |
  +--com.objectwave.transactionalSupport.SupportedCollections

public class SupportedCollections
extends java.lang.Object

This is to allow the transactional support to work well with collections.

Version:
1.3
Author:
Dave Hoag

Constructor Summary
SupportedCollections()
          SupportedCollections constructor comment.
 
Method Summary
protected static void addCollectionCache(java.lang.Class clazz)
           
static void addCollectionSupport(java.lang.String className)
           
protected static void addFailCache(java.lang.Class clazz)
           
static java.lang.Object cloneCollection(java.lang.Object collection)
          Attempt to clone the collection.
static boolean isCollection(java.lang.Object obj)
          Determine if the object being provided is a collection that we may need to clone.
protected static boolean isCollectionClass(java.lang.Class clazz)
           
static boolean isCollectionOrig(java.lang.Object obj)
           
protected static boolean isFailClass(java.lang.Class clazz)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SupportedCollections

public SupportedCollections()
SupportedCollections constructor comment.

Method Detail

main

public static void main(java.lang.String[] args)

isCollectionClass

protected static final boolean isCollectionClass(java.lang.Class clazz)

isFailClass

protected static final boolean isFailClass(java.lang.Class clazz)

addCollectionSupport

public static void addCollectionSupport(java.lang.String className)
                                 throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException

cloneCollection

public static java.lang.Object cloneCollection(java.lang.Object collection)
Attempt to clone the collection. This may fail if the clone method is not public. In the event of a failure, that particular collection will not be transactional.

Parameters:
collection - A cloneable collection.

addCollectionCache

protected static void addCollectionCache(java.lang.Class clazz)

addFailCache

protected static void addFailCache(java.lang.Class clazz)

isCollection

public static final boolean isCollection(java.lang.Object obj)
Determine if the object being provided is a collection that we may need to clone. We attempt to optimize this by assuming that most objects will not be collections. Most of the time, we will never even run beyond the initial isFailClass call.

Parameters:
obj - Any ole object - perhaps a collection.

isCollectionOrig

public static boolean isCollectionOrig(java.lang.Object obj)