|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface QueryProperty
The QueryProperty interface specifies the name and value of a property
for a query. For example, to set the maximum number of rows fetched by the query,
you would set the name of a QueryProperty instance to "MaxRowFetched"
and the value to an integer representing the maximum number of rows fetched.
To set a number of properties for a query, you create an array of QueryProperty
objects, set the name and value for each element in the array, and then assign the array to a
QuerySpecification instance using the
QuerySpecification.setQueryPropertyArray
method.
The following properties can be set:
boolean that specifies whether identical rows are retrieved at each occurrence.int that specifies the maximum amount of time, in milliseconds, to wait for data to be retrieved.
This value should be less than or equal to the value returned by the DataSourceSpecification.getMaxRetrievalTime method.int that specifies the maximum number of rows to retrieve.
This value should be less than or equal to the value returned by the DataSourceSpecification.getMaxRowsRetrieved method.boolean that specifies whether contexts are reset on a refresh.Example: Setting the name and value for the query properties
QueryProperty[] boQueryProperties = new QueryProperty[4];
boQueryProperties[0] = QueryProperty.Factory.newInstance();
boQueryProperties[1] = QueryProperty.Factory.newInstance();
boQueryProperties[2] = QueryProperty.Factory.newInstance();
boQueryProperties[3] = QueryProperty.Factory.newInstance();
boQueryProperties[0].setName("DuplicatedRows");
boQueryProperties[0].setValue("true");
boQueryProperties[1].setName("MaxFetchedTime");
boQueryProperties[1].setValue("1000");
boQueryProperties[2].setName("MaxRowFetched");
boQueryProperties[2].setValue("100");
boQueryProperties[3].setName("ResetContextOnRefresh");
boQueryProperties[3].setValue("true");
boQuery.setQueryResultArray(boQueryResultObjects);
boQuerySpec.setQueryPropertyArray(boQueryProperties);
boQuerySpec.setQueryBase(boQuery);
| Nested Class Summary | |
|---|---|
static class |
QueryProperty.Factory
A class with methods for creating instances of the QueryProperty type. |
| Field Summary | |
|---|---|
static org.apache.xmlbeans.SchemaType |
type
Internal Use Only. |
| Method Summary | |
|---|---|
boolean |
getActivate()
Checks whether the user is allowed to set a value to this query property. |
java.lang.String |
getName()
Gets the name of the property represented by this QueryProperty instance. |
java.lang.String |
getValue()
Gets the value for the property represented by this QueryProperty instance. |
void |
setActivate(boolean activate)
Internal Use Only. |
void |
setName(java.lang.String name)
Sets the name of the property represented by this QueryProperty instance. |
void |
setValue(java.lang.String value)
Sets the value for the property represented by this QueryProperty instance. |
org.apache.xmlbeans.XmlBoolean |
xgetActivate()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetName()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetValue()
Internal Use Only. |
void |
xsetActivate(org.apache.xmlbeans.XmlBoolean activate)
Internal Use Only. |
void |
xsetName(org.apache.xmlbeans.XmlString name)
Internal Use Only. |
void |
xsetValue(org.apache.xmlbeans.XmlString value)
Internal Use Only. |
| Field Detail |
|---|
static final org.apache.xmlbeans.SchemaType type
Internal Use Only.
| Method Detail |
|---|
java.lang.String getName()
Gets the name of the property represented by this QueryProperty instance. Possible values are
"DuplicatedRows", "MaxFetchedTime", "MaxRowFetched" and "ResetContextOnRefresh".
QueryProperty instance as a Stringorg.apache.xmlbeans.XmlString xgetName()
Internal Use Only.
void setName(java.lang.String name)
Sets the name of the property represented by this QueryProperty instance. Possible values are
"DuplicatedRows", "MaxFetchedTime", "MaxRowFetched" and "ResetContextOnRefresh".
name - the name of the property represented by this QueryProperty instance as a Stringvoid xsetName(org.apache.xmlbeans.XmlString name)
Internal Use Only.
boolean getActivate()
Checks whether the user is allowed to set a value to this query property.
true if the user can set a value to this query property, otherwise falseorg.apache.xmlbeans.XmlBoolean xgetActivate()
Internal Use Only.
void setActivate(boolean activate)
Internal Use Only.
void xsetActivate(org.apache.xmlbeans.XmlBoolean activate)
Internal Use Only.
java.lang.String getValue()
Gets the value for the property represented by this QueryProperty instance. Even though
the values for the properties are either int or boolean, this method
returns the String representation of those values. For example, if you set the value
of "DuplicatedRows" to "true" in this QueryProperty instance. The getValue
method will return the String "true" (not the boolean true).
String that represents the value of the property represented by this QueryProperty instanceorg.apache.xmlbeans.XmlString xgetValue()
Internal Use Only.
void setValue(java.lang.String value)
Sets the value for the property represented by this QueryProperty instance. Even though
the values for the properties are either int or boolean values, this method
must be passed a String representation of those values. For example, to set the value
of "DuplicatedRows" to "true" for this QueryProperty instance, you must pass the String
"true" to this method.
value - a String that represents the value of the property represented by this QueryProperty instancevoid xsetValue(org.apache.xmlbeans.XmlString value)
Internal Use Only.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||