|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.StatementParameterFactory
This abstract class provides the abstraction for a factory used to create
statement parameter instances.
Supported API: false
Extendable: false
Field Summary | |
private static ApplicationContextServices |
APPLICATION_CONTEXT_SERVICES
|
private ApplicationContext |
applicationContext
|
private static String |
CLASSNAME
|
private static String |
DEFAULT_SELECTOR
|
private static StatementParameterFactory |
instance
|
private static String |
RESOURCE
|
private static String |
STATEMENT_PARAMETER_SELECTOR_RESOURCE
|
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild |
APPLICATION_CONTEXT |
Constructor Summary | |
StatementParameterFactory()
|
Method Summary | |
ApplicationContext |
getApplicationContext()
Gets the object for the association that plays role: applicationContext. |
static StatementParameterFactory |
getInstance()
Gets the value of the attribute: instance; Returns the default factory for the current dataservice. |
protected abstract void |
initializeArray(WTConnection a_connection,
ClassInfo a_datastoreType)
This method performs initialization for the specified connection and Array. |
protected abstract 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. |
(package private) static boolean |
isTypeParameter(List a_parameters)
|
(package private) static boolean |
isTypeParameter(Object a_parameter)
|
(package private) static boolean |
isTypeParameter(StatementParameter[] a_parameters)
|
abstract 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. |
abstract 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 |
newStatementParameter(DatastoreType a_value)
This method create a new StatementParameter instance using the specified object value. |
StatementParameter |
newStatementParameter(Object a_value)
This method create a new StatementParameter instance using the specified object value. |
StatementParameter |
newStatementParameter(Object a_value,
ClassInfo a_datastoreType)
This method create a new StatementParameter instance using the specified datastore type and object value. |
StatementParameter |
newStatementParameter(Object a_value,
int a_sqlType)
This method create a new StatementParameter instance using the specified object value and SQL type. |
StatementParameter[] |
newStatementParameterArray(Object[] a_values)
Creates a new array of StatementParameters from raw values or DatastoreType instances. |
StatementParameter[] |
newStatementParameterArray(Object[] a_values,
int[] a_sqlTypes)
Creates a new array of StatementParameters from raw values and SQL types. |
abstract 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. |
void |
setApplicationContext(ApplicationContext a_ApplicationContext)
Sets the object for the association that plays role: applicationContext. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static StatementParameterFactory instance
private ApplicationContext applicationContext
private static final String STATEMENT_PARAMETER_SELECTOR_RESOURCE
private static final String DEFAULT_SELECTOR
private static final ApplicationContextServices APPLICATION_CONTEXT_SERVICES
Constructor Detail |
public StatementParameterFactory()
Method Detail |
public static StatementParameterFactory getInstance()
public StatementParameter newStatementParameter(Object a_value)
a_value
-
public StatementParameter newStatementParameter(Object a_value, int a_sqlType)
a_value
- a_sqlType
-
public abstract StatementParameter newStructStatementParameter(String a_structTypeName, Object a_value) throws WTPropertyVetoException
a_structTypeName
- a_value
-
WTPropertyVetoException
public abstract StatementParameter newArrayStatementParameter(String a_arrayTypeName, Object a_value) throws WTPropertyVetoException
a_arrayTypeName
- a_value
-
WTPropertyVetoException
public abstract StatementParameter newArrayStatementParameter(String a_arrayTypeName, Object a_value, String a_structTypeName) throws WTPropertyVetoException
a_arrayTypeName
- a_value
- a_structTypeName
-
WTPropertyVetoException
public StatementParameter[] newStatementParameterArray(Object[] a_values) throws WTException
a_values
- Array of object values used to construct the new array of StatementParameters
WTException
public StatementParameter[] newStatementParameterArray(Object[] a_values, int[] a_sqlTypes) throws WTException
a_values
- Array of object values used to construct the new array of StatementParametersa_sqlTypes
- Array of SQL Type values used to construct the new array of StatementParameters
WTException
public void initializeTypes(WTConnection a_connection) throws WTException
a_connection
- Connection to initialize Types for.
WTException
protected abstract void initializeStruct(WTConnection a_connection, ClassInfo a_datastoreType) throws WTException
a_connection
- Connection to initialize Types for.a_datastoreType
- The ClassInfo representing the Datastore Type.
WTException
protected abstract void initializeArray(WTConnection a_connection, ClassInfo a_datastoreType) throws WTException
a_connection
- Connection to initialize Types for.a_datastoreType
- The ClassInfo representing the Datastore Type.
WTException
public StatementParameter newStatementParameter(Object a_value, ClassInfo a_datastoreType) throws WTException
a_value
- specifies the value for the parameter to create.a_datastoreType
- specifies the Datastore Type for the parameter to create.
WTException
public StatementParameter newStatementParameter(DatastoreType a_value) throws WTException
a_value
- DatastoreType instance to use as StatementParameter value.
WTException
public ApplicationContext getApplicationContext()
getApplicationContext
in interface ApplicationContextChild
public void setApplicationContext(ApplicationContext a_ApplicationContext) throws WTPropertyVetoException
setApplicationContext
in interface ApplicationContextChild
a_ApplicationContext
-
WTPropertyVetoException
static boolean isTypeParameter(Object a_parameter)
static boolean isTypeParameter(List a_parameters)
static boolean isTypeParameter(StatementParameter[] a_parameters)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |