|
||||||||||
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>
G
- the Geometry type used to create the envelope from.public abstract class ModelBackend<G>
The ModelBackend
provides methods for connections to the wpvs model in a database.
Nested Class Summary | |
---|---|
static class |
ModelBackend.Type
The Types known to the modelbackend |
Constructor Summary | |
---|---|
ModelBackend()
|
Method Summary | ||
---|---|---|
abstract G |
createBackendEnvelope(org.deegree.geometry.Envelope geometry,
int dimension)
|
|
abstract org.deegree.geometry.Envelope |
createEnvelope(G someGeometry)
Create an envelope from the given Geometry type. |
|
abstract BackendResult |
delete(java.lang.String uuid,
ModelBackend.Type objectType,
int qualityLevel,
java.lang.String sqlWhere)
Delete some data from the backend. |
|
abstract void |
flush()
flush any cached data to the backend and close the connections. |
|
abstract ModelBackendInfo |
getBackendInfo(ModelBackend.Type type)
Retrieve some information on the number of vertices and texture coordinates used in the backend. |
|
org.deegree.cs.CRS |
getBaseCRS()
|
|
WROSerializer |
getBuildingSerializer()
|
|
abstract java.lang.Object |
getDeSerializedObjectForUUID(ModelBackend.Type objectType,
java.lang.String uuid)
Retrieves and deserializes an object from the given type. |
|
abstract java.util.List<java.lang.Object> |
getDeSerializedObjectsForSQL(ModelBackend.Type objectType,
java.lang.String sqlWhere)
Retrieves and deserializes objects from the given type. |
|
protected abstract java.lang.String |
getDriverPrefix()
|
|
static ModelBackend<?> |
getInstance(java.lang.String id,
java.lang.String fileURL)
Creates the appropriate database backend for the given connection id. |
|
PrototypeSerializer |
getPrototypeSerializer()
|
|
ObjectSerializer<?> |
getSerializerForType(ModelBackend.Type objectType)
|
|
BillBoardSerializer |
getTreeSerializer()
|
|
double[] |
getWPVSTranslationVector()
|
|
abstract
|
insert(java.util.List<DataObjectInfo<P>> objects,
ModelBackend.Type objectType)
Insert given data into the backend. |
|
abstract void |
loadBuildings(org.deegree.rendering.r3d.opengl.rendering.model.manager.BuildingRenderer bm,
org.deegree.cs.CRS baseCRS)
Retrieves the WorldRenderable objects from the backend. |
|
abstract 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. |
|
abstract void |
loadTrees(org.deegree.rendering.r3d.opengl.rendering.model.manager.TreeRenderer tm,
org.deegree.cs.CRS baseCRS)
Retrieves the Billboard objects from the backend. |
|
void |
setWPVSBaseCRS(org.deegree.cs.CRS baseCRS)
|
|
void |
setWPVSTranslationVector(double[] wpvsTranslationVector)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.deegree.rendering.r3d.persistence.RenderableStore |
---|
isBillboard, loadEntities |
Constructor Detail |
---|
public ModelBackend()
Method Detail |
---|
public final BillBoardSerializer getTreeSerializer()
public final WROSerializer getBuildingSerializer()
public final PrototypeSerializer getPrototypeSerializer()
public abstract ModelBackendInfo getBackendInfo(ModelBackend.Type type)
type
-
public abstract 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)
loadProtoTypes
in interface org.deegree.rendering.r3d.persistence.RenderableStore
geometryBuffer
- baseCRS
- the crs of the WPVS scene
null
.public abstract void loadBuildings(org.deegree.rendering.r3d.opengl.rendering.model.manager.BuildingRenderer bm, org.deegree.cs.CRS baseCRS)
bm
- to add the building tobaseCRS
- the crs of the WPVS scenepublic abstract void loadTrees(org.deegree.rendering.r3d.opengl.rendering.model.manager.TreeRenderer tm, org.deegree.cs.CRS baseCRS)
tm
- to add the trees to.baseCRS
- the crs of the WPVS scenepublic abstract java.util.List<java.lang.Object> getDeSerializedObjectsForSQL(ModelBackend.Type objectType, java.lang.String sqlWhere) throws java.io.IOException
objectType
- sqlWhere
- to select the objects to retrieve
java.io.IOException
public abstract java.lang.Object getDeSerializedObjectForUUID(ModelBackend.Type objectType, java.lang.String uuid) throws java.io.IOException
objectType
- uuid
- of the object
null
if given uuid did not match.
java.io.IOException
public abstract org.deegree.geometry.Envelope createEnvelope(G someGeometry)
someGeometry
-
public abstract G createBackendEnvelope(org.deegree.geometry.Envelope geometry, int dimension)
geometry
- dimension
- of the result geometry
public abstract BackendResult delete(java.lang.String uuid, ModelBackend.Type objectType, int qualityLevel, java.lang.String sqlWhere) throws java.io.IOException
uuid
- the id of the object to delete.objectType
- defining the type of object.sqlWhere
- qualityLevel
-
java.io.IOException
public abstract <P extends org.deegree.commons.index.PositionableModel> BackendResult insert(java.util.List<DataObjectInfo<P>> objects, ModelBackend.Type objectType) throws java.io.IOException
P
- type of the positionableobjects
- objectType
- defining the type of the dataModel
java.io.IOException
public static ModelBackend<?> getInstance(java.lang.String id, java.lang.String fileURL) throws DatasourceException, java.lang.UnsupportedOperationException
UnsupportedOperationException
if the driver was not supported.
id
- to be used to initialize the if it contains org.deegree.services.wpvs.io.file.FileBackend, the file
backend will be initialized.fileURL
- of the file backend files
DatasourceException
- if the driver was not found on the classpath, or could not be initialized.
java.lang.UnsupportedOperationException
- if the given driver has no implementing backend.protected abstract java.lang.String getDriverPrefix()
public ObjectSerializer<?> getSerializerForType(ModelBackend.Type objectType)
objectType
-
public abstract void flush() throws java.io.IOException
java.io.IOException
- if flushing was not successfulpublic final double[] getWPVSTranslationVector()
null
public final void setWPVSTranslationVector(double[] wpvsTranslationVector)
wpvsTranslationVector
- the 3 dimensional wpvsTranslationVector to setpublic final void setWPVSBaseCRS(org.deegree.cs.CRS baseCRS)
baseCRS
- of the wpvspublic org.deegree.cs.CRS getBaseCRS()
null
if not set)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |