|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.services.wpvs.io.ModelBackend<G>
org.deegree.services.wpvs.io.db.DBBackend<G>
G - the Geometry type used to create the envelope from.public abstract class DBBackend<G>
The DBBackend provides methods for connections to the wpvs model in a database.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.deegree.services.wpvs.io.ModelBackend |
|---|
ModelBackend.Type |
| Method Summary | ||
|---|---|---|
BackendResult |
delete(String uuid,
ModelBackend.Type objectType,
int qualityLevel,
String sqlWhere)
Delete some data from the backend. |
|
void |
flush()
flush any cached data to the backend and close the connections. |
|
ModelBackendInfo |
getBackendInfo(ModelBackend.Type type)
Retrieve some information on the number of vertices and texture coordinates used in the backend. |
|
Connection |
getConnection()
|
|
protected abstract Envelope |
getDatasetEnvelope(Connection con,
String tableName,
String geomColumn)
Should return the envelope in WPVS scene coordinates, not in world coordinates. |
|
Object |
getDeSerializedObjectForUUID(ModelBackend.Type objectType,
String uuid)
Retrieves and deserializes an object from the given type. |
|
List<Object> |
getDeSerializedObjectsForSQL(ModelBackend.Type objectType,
String sqlWhere)
Retrieves and deserializes objects from the given type. |
|
|
insert(List<DataObjectInfo<P>> model,
ModelBackend.Type objectType)
Insert given data into the backend. |
|
boolean |
isBillboard()
|
|
void |
loadBuildings(BuildingRenderer bm,
ICRS baseCRS)
Retrieves the WorldRenderable objects from the backend. |
|
void |
loadEntities(RenderableManager<?> renderer,
ICRS baseCRS)
|
|
List<RenderablePrototype> |
loadProtoTypes(DirectGeometryBuffer geometryBuffer,
ICRS baseCRS)
Retrieves the WorldRenderable objects from the prototypes table in the database. |
|
void |
loadTrees(TreeRenderer tm,
ICRS baseCRS)
Retrieves the Billboard objects from the backend. |
|
| Methods inherited from class org.deegree.services.wpvs.io.ModelBackend |
|---|
createBackendEnvelope, createEnvelope, getBaseCRS, getBuildingSerializer, getDriverPrefix, getInstance, getPrototypeSerializer, getSerializerForType, getTreeSerializer, getWPVSTranslationVector, setWPVSBaseCRS, setWPVSTranslationVector |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.deegree.commons.config.Resource |
|---|
destroy, init |
| Method Detail |
|---|
public List<RenderablePrototype> loadProtoTypes(DirectGeometryBuffer geometryBuffer,
ICRS baseCRS)
ModelBackend
loadProtoTypes in interface RenderableStoreloadProtoTypes in class ModelBackend<G>baseCRS - the crs of the WPVS scene
null.
public void loadBuildings(BuildingRenderer bm,
ICRS baseCRS)
ModelBackend
loadBuildings in class ModelBackend<G>bm - to add the building tobaseCRS - the crs of the WPVS scene
public void loadTrees(TreeRenderer tm,
ICRS baseCRS)
ModelBackend
loadTrees in class ModelBackend<G>tm - to add the trees to.baseCRS - the crs of the WPVS scene
public Object getDeSerializedObjectForUUID(ModelBackend.Type objectType,
String uuid)
throws IOException
ModelBackend
getDeSerializedObjectForUUID in class ModelBackend<G>uuid - of the object
null if given uuid did not match.
IOException
public List<Object> getDeSerializedObjectsForSQL(ModelBackend.Type objectType,
String sqlWhere)
throws IOException
ModelBackend
getDeSerializedObjectsForSQL in class ModelBackend<G>sqlWhere - to select the objects to retrieve
IOException
public BackendResult delete(String uuid,
ModelBackend.Type objectType,
int qualityLevel,
String sqlWhere)
throws IOException
ModelBackend
delete in class ModelBackend<G>uuid - the id of the object to delete.objectType - defining the type of object.
IOException
public <P extends PositionableModel> BackendResult insert(List<DataObjectInfo<P>> model,
ModelBackend.Type objectType)
throws IOException
ModelBackend
insert in class ModelBackend<G>P - type of the positionableobjectType - defining the type of the dataModel
IOException
public Connection getConnection()
throws SQLException
SQLExceptionpublic ModelBackendInfo getBackendInfo(ModelBackend.Type type)
ModelBackend
getBackendInfo in class ModelBackend<G>public void flush()
ModelBackend
flush in class ModelBackend<G>
public void loadEntities(RenderableManager<?> renderer,
ICRS baseCRS)
public boolean isBillboard()
protected abstract Envelope getDatasetEnvelope(Connection con,
String tableName,
String geomColumn)
throws SQLException
con - tableName - geomColumn -
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||