|
||||||||||
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(Envelope geometry,
int dimension)
|
|
abstract Envelope |
createEnvelope(G someGeometry)
Create an envelope from the given Geometry type. |
|
abstract BackendResult |
delete(String uuid,
ModelBackend.Type objectType,
int qualityLevel,
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. |
|
ICRS |
getBaseCRS()
|
|
WROSerializer |
getBuildingSerializer()
|
|
abstract Object |
getDeSerializedObjectForUUID(ModelBackend.Type objectType,
String uuid)
Retrieves and deserializes an object from the given type. |
|
abstract List<Object> |
getDeSerializedObjectsForSQL(ModelBackend.Type objectType,
String sqlWhere)
Retrieves and deserializes objects from the given type. |
|
protected abstract String |
getDriverPrefix()
|
|
static ModelBackend<?> |
getInstance(String id,
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(List<DataObjectInfo<P>> objects,
ModelBackend.Type objectType)
Insert given data into the backend. |
|
abstract void |
loadBuildings(BuildingRenderer bm,
ICRS baseCRS)
Retrieves the WorldRenderable objects from the backend. |
|
abstract List<RenderablePrototype> |
loadProtoTypes(DirectGeometryBuffer geometryBuffer,
ICRS baseCRS)
Retrieves the WorldRenderable objects from the prototypes table in the database. |
|
abstract void |
loadTrees(TreeRenderer tm,
ICRS baseCRS)
Retrieves the Billboard objects from the backend. |
|
void |
setWPVSBaseCRS(ICRS 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 |
Methods inherited from interface org.deegree.commons.config.Resource |
---|
destroy, init |
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 List<RenderablePrototype> loadProtoTypes(DirectGeometryBuffer geometryBuffer, ICRS baseCRS)
loadProtoTypes
in interface RenderableStore
geometryBuffer
- baseCRS
- the crs of the WPVS scene
null
.public abstract void loadBuildings(BuildingRenderer bm, ICRS baseCRS)
bm
- to add the building tobaseCRS
- the crs of the WPVS scenepublic abstract void loadTrees(TreeRenderer tm, ICRS baseCRS)
tm
- to add the trees to.baseCRS
- the crs of the WPVS scenepublic abstract List<Object> getDeSerializedObjectsForSQL(ModelBackend.Type objectType, String sqlWhere) throws IOException
objectType
- sqlWhere
- to select the objects to retrieve
IOException
public abstract Object getDeSerializedObjectForUUID(ModelBackend.Type objectType, String uuid) throws IOException
objectType
- uuid
- of the object
null
if given uuid did not match.
IOException
public abstract Envelope createEnvelope(G someGeometry)
someGeometry
-
public abstract G createBackendEnvelope(Envelope geometry, int dimension)
geometry
- dimension
- of the result geometry
public abstract BackendResult delete(String uuid, ModelBackend.Type objectType, int qualityLevel, String sqlWhere) throws IOException
uuid
- the id of the object to delete.objectType
- defining the type of object.sqlWhere
- qualityLevel
-
IOException
public abstract <P extends PositionableModel> BackendResult insert(List<DataObjectInfo<P>> objects, ModelBackend.Type objectType) throws IOException
P
- type of the positionableobjects
- objectType
- defining the type of the dataModel
IOException
public static ModelBackend<?> getInstance(String id, String fileURL) throws DatasourceException, 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.
UnsupportedOperationException
- if the given driver has no implementing backend.protected abstract String getDriverPrefix()
public ObjectSerializer<?> getSerializerForType(ModelBackend.Type objectType)
objectType
-
public abstract void flush() throws IOException
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(ICRS baseCRS)
baseCRS
- of the wpvspublic ICRS getBaseCRS()
null
if not set)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |