|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A collection containing API for setting parameter types and values for parameterized SQL queries.
DatabaseQuery.getParameterCollection(),
DatabaseQueryParameter| Field Summary | |
static int |
FLAG_ADFALSE_PARAMETER
Indicates that the parameter is an ad-hoc false parameter |
static int |
FLAG_ADHOC_PARAMETER
Indicates that the parameter is an ad-hoc true parameter |
static int |
FLAG_NAMED_PARAMETER
Indicates that the parameter is named. |
| Method Summary | |
void |
addInputParameter(int index,
int flags,
int type,
java.lang.String value,
java.lang.String name)
Adds an input parameter with the specified index, flags, type, and value to this collection. |
void |
addInputParameter(int index,
int flags,
int type,
java.lang.String value,
java.lang.String column,
java.lang.String name)
Adds an input parameter with the specified index, type, value, and column to this collection. |
void |
addInputParameter(int index,
int type,
java.lang.String value)
Adds an input parameter with the specified index, flags, type, and value to this collection. |
void |
addInputParameter(int index,
int type,
java.lang.String value,
java.lang.String name)
Adds an input parameter with the specified index, type, and value to this collection. |
void |
clear()
Removes all parameters from this collection. |
void |
clearOutputParameterInfo()
Deprecated. As of Formula One 10, use clear() or removeParameter(int). |
DatabaseQueryParameter[] |
get()
Returns an ordered array of the parameters contained in this collection. |
int |
getInputParameterCount()
Returns the number of input parameters in this collection. |
DatabaseQueryParameter |
getNamedParameter(java.lang.String name)
Returns the parameter with the specified name. |
DatabaseQueryParameter |
getOutputParameter()
Deprecated. As of Formula One 10, use getNamedParameter(String) or getParameter(int). |
int |
getOutputParameterCount()
Returns the number of output parameters in this collection. |
DatabaseQueryParameter |
getParameter(int index)
Returns the parameter with the specified parameter index. |
boolean |
isContainsInputParameters()
Returns whether this collection contains any input parameters. |
boolean |
isContainsOutputParameter()
Deprecated. As of Formula One 10, use isContainsOutputParameters(). |
boolean |
isContainsOutputParameters()
Returns whether this collection contains output parameters. |
boolean |
isParameterRequired(java.lang.String paramName)
Returns whether this collection requires the specified parameter. |
boolean |
isParameterUsed(java.lang.String paramName)
Returns whether this collection uses the specified report parameter. |
void |
removeParameter(int index)
Removes the parameter with the specified parameter index from this collection. |
void |
removeParameter(java.lang.String name)
Removes the parameter with the specified parameter name from this collection |
void |
setOutputParameterInfo(int index,
int type)
Adds output parameter information to this collection. |
void |
setOutputParameterInfo(int index,
int type,
java.lang.String name)
Adds output parameter information to this collection. |
| Field Detail |
public static final int FLAG_NAMED_PARAMETER
public static final int FLAG_ADHOC_PARAMETER
public static final int FLAG_ADFALSE_PARAMETER
| Method Detail |
public void addInputParameter(int index,
int type,
java.lang.String value)
throws F1Exception
value
parameter is null, the SQL value NULL will be inserted
into the query at the specified index. The value
argument should be a value that is valid for the type specified by the
type argument. To specify a formula or cell reference, set
the type argument to com.f1j.ss.Constants.eQueryParamFormula.
The type parameter can be any of the following SQL types:
type parameter can also be an Actuate type:
| com.f1j.ss.Constants.eQueryParamString | - Actuate String Parameter |
| com.f1j.ss.Constants.eQueryParamInteger | - Actuate Integer Parameter |
| com.f1j.ss.Constants.eQueryParamDouble | - Actuate Double Parameter |
| com.f1j.ss.Constants.eQueryParamDate | - Actuate Date Parameter |
| com.f1j.ss.Constants.eQueryParamCurrency | - Actuate Currency Parameter |
| com.f1j.ss.Constants.eQueryParamFormula | - Parameter type to use for a formula or cell reference |
index - 0-based parameter index.type - query parameter SQL type, see above for list of
valid types.value - value of the parameter, can be null.addInputParameter(int index,int type, String value,String name)
public void addInputParameter(int index,
int type,
java.lang.String value,
java.lang.String name)
throws F1Exception
value
parameter is null, the SQL value NULL is inserted
into the query at the specified index. The value
argument should be a value that is valid for the type specified by the
type argument. To specify a formula or cell reference, set
the type argument to com.f1j.ss.Constants.eQueryParamFormula.
The type parameter can be any of the following:
type parameter can also be an Actuate type:
| com.f1j.ss.Constants.eQueryParamString | - Actuate String Parameter |
| com.f1j.ss.Constants.eQueryParamInteger | - Actuate Integer Parameter |
| com.f1j.ss.Constants.eQueryParamDouble | - Actuate Double Parameter |
| com.f1j.ss.Constants.eQueryParamDate | - Actuate Date Parameter |
| com.f1j.ss.Constants.eQueryParamCurrency | - Actuate Currency Parameter |
| com.f1j.ss.Constants.eQueryParamFormula | - Parameter type to use for a formula or cell reference |
index - 0-based parameter indextype - query parameter SQL type, see above for list of
valid typesvalue - value of the parameter, can be nullname - display name of parameter, can be nulladdInputParameter(int index,int type,String value)
public void addInputParameter(int index,
int flags,
int type,
java.lang.String value,
java.lang.String name)
throws F1Exception
value
parameter is null, the SQL value NULL is inserted
into the query at the specified index. The value
argument should be a value that is valid for the type specified by the
type argument. To specify a formula or cell reference, set
the type argument to com.f1j.ss.Constants.eQueryParamFormula.
The type parameter can be any of the following:
type parameter can also be an Actuate type:
| com.f1j.ss.Constants.eQueryParamString | - Actuate String Parameter |
| com.f1j.ss.Constants.eQueryParamInteger | - Actuate Integer Parameter |
| com.f1j.ss.Constants.eQueryParamDouble | - Actuate Double Parameter |
| com.f1j.ss.Constants.eQueryParamDate | - Actuate Date Parameter |
| com.f1j.ss.Constants.eQueryParamCurrency | - Actuate Currency Parameter |
| com.f1j.ss.Constants.eQueryParamFormula | - Parameter type to use for a formula or cell reference |
index - 0-based parameter indexflags - extra flags beyond the input/output flags.type - query parameter SQL type, see above for list of
valid typesvalue - value of the parameter, can be nullname - display name of parameter, can be nulladdInputParameter(int index,int type,String value)
public void addInputParameter(int index,
int flags,
int type,
java.lang.String value,
java.lang.String column,
java.lang.String name)
throws F1Exception
value
parameter is null, the SQL value NULL is inserted
into the query at the specified index. The value
argument should be a value that is valid for the type specified by the
type argument. To specify a formula or cell reference, set
the type argument to com.f1j.ss.Constants.eQueryParamFormula.
The type parameter can be any of the following:
type parameter can also be an Actuate type:
| com.f1j.ss.Constants.eQueryParamString | - Actuate String Parameter |
| com.f1j.ss.Constants.eQueryParamInteger | - Actuate Integer Parameter |
| com.f1j.ss.Constants.eQueryParamDouble | - Actuate Double Parameter |
| com.f1j.ss.Constants.eQueryParamDate | - Actuate Date Parameter |
| com.f1j.ss.Constants.eQueryParamCurrency | - Actuate Currency Parameter |
| com.f1j.ss.Constants.eQueryParamFormula | - Parameter type to use for a formula or cell reference |
index - 0-based parameter indexflags - indicates the parameter type (Unnamed, Named, Adhoc, Input, Output)type - query parameter SQL type, see above for list of
valid typesvalue - value of the parameter, can be nullcolumn - columnname - display name of parameter, can be nulladdInputParameter(int index,int type,String value)public void clear()
removeParameter(int)public void clearOutputParameterInfo()
clear(),
removeParameter(int)public DatabaseQueryParameter[] get()
getParameter(int)public int getInputParameterCount()
addInputParameter(int, int, java.lang.String),
isContainsInputParameters()public int getOutputParameterCount()
addInputParameter(int, int, java.lang.String),
isContainsInputParameters()public DatabaseQueryParameter getOutputParameter()
null if no output
parameter info exists. See table at the setOutputParameterInfo method.setOutputParameterInfo(int, int),
isContainsOutputParameters()public DatabaseQueryParameter getNamedParameter(java.lang.String name)
name - the name of the parameter to find and return.null.public DatabaseQueryParameter getParameter(int index)
index - 0-based parameter index.null
if no parameter exists with that index.removeParameter(int)public boolean isContainsInputParameters()
true = collection contains input parameters.addInputParameter(int, int, java.lang.String)public boolean isContainsOutputParameter()
true = collection contains an output parameter.setOutputParameterInfo(int, int)public boolean isContainsOutputParameters()
true = collection contains output parameters.setOutputParameterInfo(int, int)public boolean isParameterUsed(java.lang.String paramName)
paramName - The name of the parameter.true = collection uses the specified parameter.public boolean isParameterRequired(java.lang.String paramName)
paramName - The name of the parameter.true = collection requires the specified parameter.public void removeParameter(int index)
index - 0-based index of the parameter to be
removed.getParameter(int)public void removeParameter(java.lang.String name)
name - name of the parameter to be removed.getNamedParameter(java.lang.String)
public void setOutputParameterInfo(int index,
int type)
type parameter can be any of the following:
| java.sql.Types.CHAR | java.sql.Types.VARCHAR | java.sql.Types.LONGVARCHAR |
| java.sql.Types.VARBINARY | java.sql.Types.BINARY | java.sql.Types.LONGVARBINARY |
oracle.jdbc.OracleTypes.CURSOR |
index - 0-based index of the output parameter.type - type of the output parameter. See table above for a list of valid
types.
public void setOutputParameterInfo(int index,
int type,
java.lang.String name)
type parameter can be any of the following:
| java.sql.Types.CHAR | java.sql.Types.VARCHAR | java.sql.Types.LONGVARCHAR |
| java.sql.Types.VARBINARY | java.sql.Types.BINARY | java.sql.Types.LONGVARBINARY |
oracle.jdbc.OracleTypes.CURSOR |
index - 0-based index of the output parameter.type - type of the output parameter, see above for list of valid
types.name - display name of this parameter, can be null.setOutputParameterInfo(int index,int type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||