Class AbstractFeatureExporter<T extends org.citygml4j.model.gml.feature.AbstractFeature>
- java.lang.Object
-
- org.citydb.citygml.exporter.database.content.AbstractTypeExporter
-
- org.citydb.citygml.exporter.database.content.AbstractFeatureExporter<T>
-
- All Implemented Interfaces:
DBExporter
- Direct Known Subclasses:
DBAddress
,DBBridge
,DBBridgeConstrElement
,DBBridgeFurniture
,DBBridgeInstallation
,DBBridgeOpening
,DBBridgeRoom
,DBBridgeThematicSurface
,DBBuilding
,DBBuildingFurniture
,DBBuildingInstallation
,DBCityFurniture
,DBGenericCityObject
,DBLandUse
,DBOpening
,DBPlantCover
,DBReliefComponent
,DBReliefFeature
,DBRoom
,DBSolitaryVegetatObject
,DBThematicSurface
,DBTrafficArea
,DBTransportationComplex
,DBTunnel
,DBTunnelFurniture
,DBTunnelHollowSpace
,DBTunnelInstallation
,DBTunnelOpening
,DBTunnelThematicSurface
,DBWaterBody
,DBWaterBoundarySurface
public abstract class AbstractFeatureExporter<T extends org.citygml4j.model.gml.feature.AbstractFeature> extends AbstractTypeExporter
-
-
Field Summary
Fields Modifier and Type Field Description protected java.sql.Connection
connection
-
Fields inherited from class org.citydb.citygml.exporter.database.content.AbstractTypeExporter
exporter, select, table
-
-
Constructor Summary
Constructors Constructor Description AbstractFeatureExporter(java.lang.Class<T> featureClass, java.sql.Connection connection, CityGMLExportManager exporter)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
protected abstract java.util.Collection<T>
doExport(long id, T root, FeatureType rootType, java.sql.PreparedStatement ps)
protected java.util.Collection<T>
doExport(FeatureProperty featureProperty, long parentId)
protected boolean
doExport(T object, long id, FeatureType featureType)
protected java.sql.PreparedStatement
getOrCreateBulkStatement(int batchSize)
protected java.sql.PreparedStatement
getOrCreateStatement(java.lang.String columnName)
protected java.sql.PreparedStatement
getOrCreateStatement(java.lang.String columnName, java.lang.Class<? extends org.citygml4j.model.gml.feature.AbstractFeature> filterClass)
protected void
prepareBulkStatement(java.sql.PreparedStatement ps, java.lang.Long[] ids, int batchSize)
-
Methods inherited from class org.citydb.citygml.exporter.database.content.AbstractTypeExporter
addJoinsToADEHookTables, retrieveADEHookTables
-
-
-
-
Constructor Detail
-
AbstractFeatureExporter
public AbstractFeatureExporter(java.lang.Class<T> featureClass, java.sql.Connection connection, CityGMLExportManager exporter)
-
-
Method Detail
-
doExport
protected abstract java.util.Collection<T> doExport(long id, T root, FeatureType rootType, java.sql.PreparedStatement ps) throws CityGMLExportException, java.sql.SQLException
- Throws:
CityGMLExportException
java.sql.SQLException
-
doExport
protected boolean doExport(T object, long id, FeatureType featureType) throws CityGMLExportException, java.sql.SQLException
- Throws:
CityGMLExportException
java.sql.SQLException
-
doExport
protected java.util.Collection<T> doExport(FeatureProperty featureProperty, long parentId) throws CityGMLExportException, java.sql.SQLException
- Throws:
CityGMLExportException
java.sql.SQLException
-
getOrCreateBulkStatement
protected java.sql.PreparedStatement getOrCreateBulkStatement(int batchSize) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
prepareBulkStatement
protected void prepareBulkStatement(java.sql.PreparedStatement ps, java.lang.Long[] ids, int batchSize) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getOrCreateStatement
protected java.sql.PreparedStatement getOrCreateStatement(java.lang.String columnName) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getOrCreateStatement
protected java.sql.PreparedStatement getOrCreateStatement(java.lang.String columnName, java.lang.Class<? extends org.citygml4j.model.gml.feature.AbstractFeature> filterClass) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
close
public void close() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-