wt.pds.oracle81
Class OracleStatementParameterFactory

java.lang.Object
  extended bywt.pds.StatementParameterFactory
      extended bywt.pds.oracle81.OracleStatementParameterFactory
All Implemented Interfaces:
ApplicationContextChild

public class OracleStatementParameterFactory
extends StatementParameterFactory

This class provides the Oracle implementation for a factory used to create statement parameter instances.

Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private static HashMap connectionCache
           
static boolean DEBUG
           
private static DebugWriter LOG
           
private static String RESOURCE
           
 
Fields inherited from class wt.pds.StatementParameterFactory
 
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild
APPLICATION_CONTEXT
 
Constructor Summary
OracleStatementParameterFactory()
           
 
Method Summary
static void clearCache(WTConnection a_connection)
           
static oracle.sql.ArrayDescriptor getArrayType(String a_typeName, WTConnection a_connection)
           
static oracle.sql.StructDescriptor getStructType(String a_typeName, WTConnection a_connection)
           
protected  void initializeArray(WTConnection a_connection, ClassInfo a_datastoreType)
          This method performs initialization for the specified connection and Array.
protected  void initializeStruct(WTConnection a_connection, ClassInfo a_datastoreType)
          This method performs initialization for the specified connection and Struct.
 void initializeTypes(WTConnection a_connection)
          This method performs Type initialization for the specified connection.
 StatementParameter newArrayStatementParameter(String a_arrayTypeName, Object a_value)
          This method create a new array StatementParameter instance using the specified array type name and object value.
 StatementParameter newArrayStatementParameter(String a_arrayTypeName, Object a_value, String a_structTypeName)
          This method create a new array StatementParameter instance using the specified array type name and object value.
 StatementParameter newStructStatementParameter(String a_structTypeName, Object a_value)
          This method create a new structure StatementParameter instance using the specified structure type name and object value.
 
Methods inherited from class wt.pds.StatementParameterFactory
getApplicationContext, getInstance, newStatementParameter, newStatementParameter, newStatementParameter, newStatementParameter, newStatementParameterArray, newStatementParameterArray, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

DEBUG

public static final boolean DEBUG

LOG

private static final DebugWriter LOG

connectionCache

private static final HashMap connectionCache
Constructor Detail

OracleStatementParameterFactory

public OracleStatementParameterFactory()
Method Detail

initializeTypes

public void initializeTypes(WTConnection a_connection)
                     throws WTException
This method performs Type initialization for the specified connection.

Supported API: false

Overrides:
initializeTypes in class StatementParameterFactory
Parameters:
a_connection - Connection to initialize Types for.
Throws:
WTException

newStructStatementParameter

public StatementParameter newStructStatementParameter(String a_structTypeName,
                                                      Object a_value)
                                               throws WTPropertyVetoException
This method create a new structure StatementParameter instance using the specified structure type name and object value.

Supported API: false

Specified by:
newStructStatementParameter in class StatementParameterFactory
Parameters:
a_structTypeName -
a_value -
Returns:
StatementParameter
Throws:
WTPropertyVetoException

newArrayStatementParameter

public StatementParameter newArrayStatementParameter(String a_arrayTypeName,
                                                     Object a_value)
                                              throws WTPropertyVetoException
This method create a new array StatementParameter instance using the specified array type name and object value.

Supported API: false

Specified by:
newArrayStatementParameter in class StatementParameterFactory
Parameters:
a_arrayTypeName -
a_value -
Returns:
StatementParameter
Throws:
WTPropertyVetoException

newArrayStatementParameter

public StatementParameter newArrayStatementParameter(String a_arrayTypeName,
                                                     Object a_value,
                                                     String a_structTypeName)
                                              throws WTPropertyVetoException
This method create a new array StatementParameter instance using the specified array type name and object value. The array consists of the specified structures.

Supported API: false

Specified by:
newArrayStatementParameter in class StatementParameterFactory
Parameters:
a_arrayTypeName -
a_value -
a_structTypeName -
Returns:
StatementParameter
Throws:
WTPropertyVetoException

initializeStruct

protected void initializeStruct(WTConnection a_connection,
                                ClassInfo a_datastoreType)
                         throws WTException
This method performs initialization for the specified connection and Struct.

Supported API: false

Specified by:
initializeStruct in class StatementParameterFactory
Parameters:
a_connection - Connection to initialize Types for.
a_datastoreType - The ClassInfo representing the Datastore Type.
Throws:
WTException

initializeArray

protected void initializeArray(WTConnection a_connection,
                               ClassInfo a_datastoreType)
                        throws WTException
This method performs initialization for the specified connection and Array.

Supported API: false

Specified by:
initializeArray in class StatementParameterFactory
Parameters:
a_connection - Connection to initialize Types for.
a_datastoreType - The ClassInfo representing the Datastore Type.
Throws:
WTException

clearCache

public static void clearCache(WTConnection a_connection)

getArrayType

public static oracle.sql.ArrayDescriptor getArrayType(String a_typeName,
                                                      WTConnection a_connection)
                                               throws SQLException
Throws:
SQLException

getStructType

public static oracle.sql.StructDescriptor getStructType(String a_typeName,
                                                        WTConnection a_connection)
                                                 throws SQLException
Throws:
SQLException