com.sybase.uep.bobclient.utils
Class CollectionsFactory

java.lang.Object
  extended by com.sybase.uep.bobclient.utils.CollectionsFactory

public class CollectionsFactory
extends java.lang.Object

Factory to generate collection instance according datatype

Author:
linsong

Method Summary
static CollectionsFactory getCollectionFactory()
           
 java.util.Vector getList(DataType datatype)
          Create new instance of Collection type of com.sybase.collections for specified List datatype
 java.util.Vector getList(java.lang.String datatypeName)
          Create new instance of Collection type of com.sybase.collections for specified List datatype name If datatypeName is not list type, return null.
 java.util.Vector getPrimitiveList(DataType datatype)
          Create new instance of Collection type of com.sybase.collections for specified primitive AFX multiple datatype
 java.util.Vector getPrimitiveList(java.lang.String datatypeName)
          Create new instance of Collection type of com.sybase.collections for specified AFX multiple primitive datatype name If datatypeName is not primitive list type or list type, return null.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCollectionFactory

public static CollectionsFactory getCollectionFactory()

getPrimitiveList

public java.util.Vector getPrimitiveList(DataType datatype)
Create new instance of Collection type of com.sybase.collections for specified primitive AFX multiple datatype

Parameters:
datatype - Primitive List Type
Returns:

getList

public java.util.Vector getList(DataType datatype)
Create new instance of Collection type of com.sybase.collections for specified List datatype

Parameters:
datatype - List Type, including primitive and complex type
Returns:

getList

public java.util.Vector getList(java.lang.String datatypeName)
Create new instance of Collection type of com.sybase.collections for specified List datatype name If datatypeName is not list type, return null. If datatypeName is not primitive list type, return ObjectList.

Parameters:
datatypeName -
Returns:

getPrimitiveList

public java.util.Vector getPrimitiveList(java.lang.String datatypeName)
Create new instance of Collection type of com.sybase.collections for specified AFX multiple primitive datatype name If datatypeName is not primitive list type or list type, return null.

Parameters:
datatypeName -
Returns: