|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(java.lang.String uuid,
ModelBackend.Type objectType,
int qualityLevel,
java.lang.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. |
|
java.sql.Connection |
getConnection()
|
|
protected abstract org.deegree.geometry.Envelope |
getDatasetEnvelope(java.sql.Connection con,
java.lang.String tableName,
java.lang.String geomColumn)
Should return the envelope in WPVS scene coordinates, not in world coordinates. |
|
java.lang.Object |
getDeSerializedObjectForUUID(ModelBackend.Type objectType,
java.lang.String uuid)
Retrieves and deserializes an object from the given type. |
|
java.util.List<java.lang.Object> |
getDeSerializedObjectsForSQL(ModelBackend.Type objectType,
java.lang.String sqlWhere)
Retrieves and deserializes objects from the given type. |
|
|
insert(java.util.List<DataObjectInfo<P>> model,
ModelBackend.Type objectType)
Insert given data into the backend. |
|
boolean |
isBillboard()
|
|
void |
loadBuildings(org.deegree.rendering.r3d.opengl.rendering.model.manager.BuildingRenderer bm,
org.deegree.cs.CRS baseCRS)
Retrieves the WorldRenderable objects from the backend. |
|
void |
loadEntities(org.deegree.rendering.r3d.opengl.rendering.model.manager.RenderableManager<?> renderer,
org.deegree.cs.CRS baseCRS)
|
|
java.util.List<org.deegree.rendering.r3d.opengl.rendering.model.prototype.RenderablePrototype> |
loadProtoTypes(org.deegree.rendering.r3d.opengl.rendering.model.geometry.DirectGeometryBuffer geometryBuffer,
org.deegree.cs.CRS baseCRS)
Retrieves the WorldRenderable objects from the prototypes table in the database. |
|
void |
loadTrees(org.deegree.rendering.r3d.opengl.rendering.model.manager.TreeRenderer tm,
org.deegree.cs.CRS 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 |
Method Detail |
---|
public java.util.List<org.deegree.rendering.r3d.opengl.rendering.model.prototype.RenderablePrototype> loadProtoTypes(org.deegree.rendering.r3d.opengl.rendering.model.geometry.DirectGeometryBuffer geometryBuffer, org.deegree.cs.CRS baseCRS)
ModelBackend
loadProtoTypes
in interface org.deegree.rendering.r3d.persistence.RenderableStore
loadProtoTypes
in class ModelBackend<G>
baseCRS
- the crs of the WPVS scene
null
.public void loadBuildings(org.deegree.rendering.r3d.opengl.rendering.model.manager.BuildingRenderer bm, org.deegree.cs.CRS baseCRS)
ModelBackend
loadBuildings
in class ModelBackend<G>
bm
- to add the building tobaseCRS
- the crs of the WPVS scenepublic void loadTrees(org.deegree.rendering.r3d.opengl.rendering.model.manager.TreeRenderer tm, org.deegree.cs.CRS baseCRS)
ModelBackend
loadTrees
in class ModelBackend<G>
tm
- to add the trees to.baseCRS
- the crs of the WPVS scenepublic java.lang.Object getDeSerializedObjectForUUID(ModelBackend.Type objectType, java.lang.String uuid) throws java.io.IOException
ModelBackend
getDeSerializedObjectForUUID
in class ModelBackend<G>
uuid
- of the object
null
if given uuid did not match.
java.io.IOException
public java.util.List<java.lang.Object> getDeSerializedObjectsForSQL(ModelBackend.Type objectType, java.lang.String sqlWhere) throws java.io.IOException
ModelBackend
getDeSerializedObjectsForSQL
in class ModelBackend<G>
sqlWhere
- to select the objects to retrieve
java.io.IOException
public BackendResult delete(java.lang.String uuid, ModelBackend.Type objectType, int qualityLevel, java.lang.String sqlWhere) throws java.io.IOException
ModelBackend
delete
in class ModelBackend<G>
uuid
- the id of the object to delete.objectType
- defining the type of object.
java.io.IOException
public <P extends org.deegree.commons.index.PositionableModel> BackendResult insert(java.util.List<DataObjectInfo<P>> model, ModelBackend.Type objectType) throws java.io.IOException
ModelBackend
insert
in class ModelBackend<G>
P
- type of the positionableobjectType
- defining the type of the dataModel
java.io.IOException
public java.sql.Connection getConnection() throws java.sql.SQLException
java.sql.SQLException
public ModelBackendInfo getBackendInfo(ModelBackend.Type type)
ModelBackend
getBackendInfo
in class ModelBackend<G>
public void flush()
ModelBackend
flush
in class ModelBackend<G>
public void loadEntities(org.deegree.rendering.r3d.opengl.rendering.model.manager.RenderableManager<?> renderer, org.deegree.cs.CRS baseCRS)
public boolean isBillboard()
protected abstract org.deegree.geometry.Envelope getDatasetEnvelope(java.sql.Connection con, java.lang.String tableName, java.lang.String geomColumn) throws java.sql.SQLException
con
- tableName
- geomColumn
-
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |