|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDataProvider
Interface used for only read access data providers.
The classes implementing this interface must have a constructor like
public DataProviderClass(Hashtable parameters)
where the parameters in the hashtable are passed by the Attribute
elements
on the data provider xml definition.
Sample code:
<DataProvider
class="com.test.server.SampleDataProvider"
type="vectorial">
<Attribute name="geoField" value="the_geom" />
<Attribute name="parentKey" value="lineid" />
<Attribute name="geometryType" value="line" />
</DataProvider>
in this situation the constructor will get a hashtable parameter with the data{geoField=the_geom; parentKey=lineid; geometryType=line}
| Method Summary | |
|---|---|
void |
initProvider(java.util.Hashtable<java.lang.String,java.lang.Object> parameters)
|
java.lang.Object |
query(java.lang.Object keysValues,
java.lang.Object attributes,
int sessionId)
This method must implement a standard query operation returning the set of data that matches the conditions specified by the keysValues parameter. |
| Method Detail |
|---|
java.lang.Object query(java.lang.Object keysValues,
java.lang.Object attributes,
int sessionId)
throws java.lang.Exception
keysValues - Identifiers for the dataattributes - Data attributes to querysessionId - Session Id for this user
java.lang.Exceptionvoid initProvider(java.util.Hashtable<java.lang.String,java.lang.Object> parameters)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||