wt.pds.sqlServer
Class SQLServerStatementParameterFactory

java.lang.Object
  extended bywt.pds.StatementParameterFactory
      extended bywt.pds.sqlServer.SQLServerStatementParameterFactory
All Implemented Interfaces:
ApplicationContextChild, Serializable

public class SQLServerStatementParameterFactory
extends StatementParameterFactory
implements Serializable

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

Supported API: false

Extendable: false

See Also:
Serialized Form

Nested Class Summary
(package private) static class SQLServerStatementParameterFactory.TypeInfo
           
 
Field Summary
private static String CLASSNAME
           
(package private) static Datastore DATASTORE
           
(package private) static DMLGenerator DML_GENERATOR
           
private static String PARAMETER_INDEX
           
private static String RESOURCE
           
 
Fields inherited from class wt.pds.StatementParameterFactory
 
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild
APPLICATION_CONTEXT
 
Constructor Summary
SQLServerStatementParameterFactory()
           
 
Method Summary
(package private) static SQLServerStatementParameterFactory.TypeInfo getTypeInfo(ClassInfo a_datastoreType)
           
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.
private static void initializeType(WTConnection a_connection, ClassInfo a_datastoreType)
           
 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, initializeTypes, 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

PARAMETER_INDEX

private static final String PARAMETER_INDEX
See Also:
Constant Field Values

DATASTORE

static final Datastore DATASTORE

DML_GENERATOR

static final DMLGenerator DML_GENERATOR
Constructor Detail

SQLServerStatementParameterFactory

public SQLServerStatementParameterFactory()
Method Detail

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

getTypeInfo

static SQLServerStatementParameterFactory.TypeInfo getTypeInfo(ClassInfo a_datastoreType)
                                                        throws WTException
Throws:
WTException

initializeType

private static void initializeType(WTConnection a_connection,
                                   ClassInfo a_datastoreType)
                            throws WTException
Throws:
WTException