wt.pds
Class BindParameterUtil
java.lang.Object
wt.pds.BindParameterUtil
- public class BindParameterUtil
- extends Object
This class contains static utility methods for manipulating bind parameters.
Supported API: false
Extendable: false
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASSNAME
private static final String CLASSNAME
DEBUG
public static final boolean DEBUG
LOG
private static final DebugWriter LOG
BindParameterUtil
public BindParameterUtil()
bindStatementParameters
public static int bindStatementParameters(WTConnection a_connection,
PreparedStatement a_statement,
int a_sqlIndex,
Object a_bindParameter,
int a_bindIndex)
throws SQLException,
WTException
- This method bind parameters to the specified statement starting with the
specified bind index.
Supported API: false
- Parameters:
a_connection
- datastore connection to use.a_statement
- Statement to bind parameters to.a_sqlIndex
- Statement index to use for chunking.a_bindParameter
- Parameter list to bind to the statment.a_bindIndex
- Statement bind index to start with.
return next valid bind index
- Throws:
SQLException
WTException
buildBindParameterList
public static List buildBindParameterList(UpdateColumnExpression[] a_updateColumns)
throws WTException
- Appends a bind parameter to the specified bind parameter list. If the
list is null, a new one will be created. If the bind parameter is a list,
then it will be "flattened" and each item in the list will be appended.
Supported API: false
- Throws:
WTException
appendBindParameter
public static List appendBindParameter(Object a_parameter,
List a_parameterList)
- Appends a bind parameter to the specified bind parameter list. If the
list is null, a new one will be created. If the bind parameter is a list,
then it will be "flattened" and each item in the list will be appended.
Supported API: false
- Parameters:
a_parameter
- Bind parameter to append.a_parameterList
- Bind parameter list to append to.
return Bind Parameter list