|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDataAccess
Interface used for read-write operations on gis 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 |
delete(java.lang.Object keysValues,
int sessionId)
This method must implement a standard delete operation over the set of records defined by keysValues. |
java.lang.Object |
insert(java.lang.Object attributesValues,
int sessionId)
This method must implement a standard insert operation with the data contained in attributesValues parameter. |
void |
update(java.lang.Object keysValues,
java.lang.Object attributesValues,
int sessionId)
This method must implement a standard update operation with the data specified in attributesValues over the set of records defined by keysValues. |
| Methods inherited from interface com.ontimize.util.gis.server.interfaces.IDataProvider |
|---|
initProvider, query |
| Method Detail |
|---|
java.lang.Object insert(java.lang.Object attributesValues,
int sessionId)
throws java.lang.Exception
attributesValues - Data to storesessionId - Session Id for this user
java.lang.Exception
void delete(java.lang.Object keysValues,
int sessionId)
throws java.lang.Exception
keysValues - The conditions that the records to be deleted must fulfillsessionId - Session Id for this user
java.lang.Exception
void update(java.lang.Object keysValues,
java.lang.Object attributesValues,
int sessionId)
throws java.lang.Exception
keysValues - The conditions that the records to be updated must fulfillattributesValues - The data for updating the records tosessionId - Session Id for this user
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||