|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents a database query parameter for a parameterized SQL query. Can represent both input and output parameters.
DatabaseQuery.getParameterCollection(),
DatabaseQueryParamCollection| Field Summary | |
static short |
eAdHocFalse
Ad-Hoc Constant - Ad-Hoc condition that resolves as false when not present. |
static short |
eAdHocTrue
Ad-Hoc Constant - Ad-Hoc condition that resolves as true when not present. |
| Method Summary | |
java.lang.String |
getColumn()
Returns the name of the column associated with this parameter. |
int |
getIndex()
Returns the 0-based index of this query parameter. |
java.lang.String |
getName()
Returns the name of this query parameter. |
int |
getType()
Returns the parameter type of the specified index. |
java.lang.String |
getValue()
Returns the value of this parameter. |
boolean |
isAdHocParameter()
Indicates if this query parameter is an AdHoc parameter. |
boolean |
isAdHocTrue()
Indicates if this adhoc query parameter defaults to true. |
boolean |
isInputParameter()
Indicates if this query parameter is an input parameter. |
boolean |
isNamedParameter()
Indicates if this query parameter is identified by it's name rather than it's position. |
boolean |
isOutputParameter()
Indicates if this query parameter is the output parameter. |
void |
setValue(java.lang.String s)
Sets the value of this parameter. |
| Field Detail |
public static final short eAdHocTrue
public static final short eAdHocFalse
| Method Detail |
public java.lang.String getColumn()
public int getIndex()
0-based index of this query parameter. Indicates
which parameter in the SQL query this object refers to.0-based index of query parameterDatabaseQueryParamCollection.addInputParameter(int, int, java.lang.String),
DatabaseQueryParamCollection.setOutputParameterInfo(int, int)public java.lang.String getName()
DatabaseQueryParamCollection.addInputParameter(int, int, java.lang.String),
DatabaseQueryParamCollection.setOutputParameterInfo(int, int)public int getType()
| java.sql.Types.CHAR | java.sql.Types.VARCHAR | java.sql.Types.LONGVARCHAR |
| java.sql.Types.NUMERIC | java.sql.Types.DECIMAL | java.sql.Types.INTEGER |
| java.sql.Types.SMALLINT | java.sql.Types.FLOAT | java.sql.Types.REAL |
| java.sql.Types.DOUBLE | java.sql.Types.BIGINT | java.sql.Types.TINYINT |
| java.sql.Types.TIMESTAMP | java.sql.Types.DATE | java.sql.Types.TIME |
| java.sql.Types.BIT | ||
| Output Parameter Types Only: | ||
| java.sql.Types.VARBINARY | java.sql.Types.BINARY | java.sql.Types.LONGVARBINARY |
oracle.jdbc.OracleTypes.CURSOR |
DatabaseQueryParamCollection.addInputParameter(int, int, java.lang.String),
DatabaseQueryParamCollection.setOutputParameterInfo(int, int)public java.lang.String getValue()
A1),
or a name assigned using the addInputParameter method, or a value input with the setOutputParameterInfo method.DatabaseQueryParamCollection.addInputParameter(int, int, java.lang.String)public void setValue(java.lang.String s)
s - A string representation of the value of this parameter.DatabaseQueryParamCollection.addInputParameter(int, int, java.lang.String)public boolean isAdHocParameter()
true = this query parameter is an adhoc parameter.public boolean isAdHocTrue()
true = this ahdoc query parameter defaults to true.public boolean isOutputParameter()
true = this query parameter is the output
parameter.isInputParameter(),
DatabaseQueryParamCollection.setOutputParameterInfo(int, int)public boolean isInputParameter()
true = this query parameter is an input parameter.isOutputParameter(),
DatabaseQueryParamCollection.addInputParameter(int, int, java.lang.String)public boolean isNamedParameter()
true = this query parameter is identified by name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||