oracle.olapi.data.source
Class StringParameter

A Parameter that specifies a String value that you use in creating a query. After creating the query, you can change the value of the StringParameter and thereby change the selection of dimension or measure elements that the query represents.

The createSource method creates a parameterized StringSource. Youuse the parameterized StringSource as a parameter to a method that selects one or more elements of another Source and produces a derived Source. You can then create a Cursor for the Source to retrieve the results of the query.

You can change the selection of elements that the derived Source represents by changing the value of the StringParameter with the setValue method. The Cursor for the query Source then has the values of the new selection. You do not need to create a new Cursor. You can instead just set the position of the existing Cursor to its first position and get the values for the new selection from the Cursor.

Constructor Summary

StringParameter(DataProvider dataProvider, java.lang.String initialValue)
Creates a StringParameter that has the specified String value.

Method Summary

java.lang.Object

acceptVisitor(ParameterVisitor visitor, java.lang.Object context)
Calls the visitStringParameter method of the specified ParameterVisitor and passes that method this StringParameter and the specified context Object.