|
||||||||||
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<Envelope> org.deegree.services.wpvs.io.file.FileBackend
public class FileBackend
The FileBackend
is the access to the model in files on the local file system.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.deegree.services.wpvs.io.ModelBackend |
---|
ModelBackend.Type |
Constructor Summary | |
---|---|
FileBackend(File billboardFile)
|
|
FileBackend(File entityFile,
File prototypeFile)
|
Method Summary | ||
---|---|---|
Envelope |
createBackendEnvelope(Envelope geometry,
int dimension)
|
|
Envelope |
createEnvelope(Envelope someGeometry)
Create an envelope from the given Geometry type. |
|
BackendResult |
delete(String uuid,
ModelBackend.Type objectType,
int qualityLevel,
String sqlWhere)
Delete some data from the backend. |
|
void |
destroy()
Usually called by the ResourceManager upon workspace shutdown. |
|
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. |
|
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. |
|
protected String |
getDriverPrefix()
|
|
void |
init(DeegreeWorkspace workspace)
Usually called by the ResourceManager upon workspace startup. |
|
static void |
initFiles(File entityFile)
|
|
|
insert(List<DataObjectInfo<P>> objects,
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 |
---|
getBaseCRS, getBuildingSerializer, 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 |
Constructor Detail |
---|
public FileBackend(File billboardFile) throws IOException
billboardFile
-
IOException
public FileBackend(File entityFile, File prototypeFile) throws IOException
entityFile
- prototypeFile
-
IOException
Method Detail |
---|
public Envelope createBackendEnvelope(Envelope geometry, int dimension)
createBackendEnvelope
in class ModelBackend<Envelope>
dimension
- of the result geometry
public Envelope createEnvelope(Envelope someGeometry)
ModelBackend
createEnvelope
in class ModelBackend<Envelope>
public Object getDeSerializedObjectForUUID(ModelBackend.Type objectType, String uuid) throws IOException
ModelBackend
getDeSerializedObjectForUUID
in class ModelBackend<Envelope>
uuid
- of the object
null
if given uuid did not match.
IOException
protected String getDriverPrefix()
getDriverPrefix
in class ModelBackend<Envelope>
public void loadBuildings(BuildingRenderer bm, ICRS baseCRS)
ModelBackend
loadBuildings
in class ModelBackend<Envelope>
bm
- to add the building tobaseCRS
- the crs of the WPVS scenepublic List<RenderablePrototype> loadProtoTypes(DirectGeometryBuffer geometryBuffer, ICRS baseCRS)
ModelBackend
loadProtoTypes
in interface RenderableStore
loadProtoTypes
in class ModelBackend<Envelope>
baseCRS
- the crs of the WPVS scene
null
.public void loadTrees(TreeRenderer tm, ICRS baseCRS)
ModelBackend
loadTrees
in class ModelBackend<Envelope>
tm
- to add the trees to.baseCRS
- the crs of the WPVS scenepublic BackendResult delete(String uuid, ModelBackend.Type objectType, int qualityLevel, String sqlWhere) throws IOException
ModelBackend
delete
in class ModelBackend<Envelope>
uuid
- the id of the object to delete.objectType
- defining the type of object.
IOException
public <P extends PositionableModel> BackendResult insert(List<DataObjectInfo<P>> objects, ModelBackend.Type objectType) throws IOException
ModelBackend
insert
in class ModelBackend<Envelope>
P
- type of the positionableobjectType
- defining the type of the dataModel
IOException
public void flush() throws IOException
ModelBackend
flush
in class ModelBackend<Envelope>
IOException
- if flushing was not successfulpublic ModelBackendInfo getBackendInfo(ModelBackend.Type type)
ModelBackend
getBackendInfo
in class ModelBackend<Envelope>
public List<Object> getDeSerializedObjectsForSQL(ModelBackend.Type objectType, String sqlWhere)
ModelBackend
getDeSerializedObjectsForSQL
in class ModelBackend<Envelope>
sqlWhere
- to select the objects to retrieve
public void loadEntities(RenderableManager<?> renderer, ICRS baseCRS)
public boolean isBillboard()
public static void initFiles(File entityFile) throws IOException
IOException
public void destroy()
Resource
ResourceManager
upon workspace shutdown.
public void init(DeegreeWorkspace workspace) throws ResourceInitException
Resource
ResourceManager
upon workspace startup.
workspace
- the workspace the resource belongs to, may be null
ResourceInitException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |