public abstract class IlvDBDataSource extends IlvTilableDataSource
IlvHierarchicalDataSource.CriterionFilter, IlvHierarchicalDataSource.SingleAttributeFilter
filename, nameMap, styleMap
renderer, usingGeodeticComputation
Constructor and Description |
---|
IlvDBDataSource(IlvDBConnectionInfo connection,
String layerName)
Creates a new
IlvDBDataSource . |
IlvDBDataSource(IlvInputStream stream)
Reads an object from an
IlvInputStream . |
Modifier and Type | Method and Description |
---|---|
protected abstract IlvDBFeatureIterator |
createFeatureIterator()
Creates and returns an iterator on the database feature.
|
protected IlvMapRegionOfInterestIterator |
createTiledIterator(IlvMapLayer arg0)
Creates an iterator that will iterate through the map features
for a specific area of interest.
|
protected void |
createTiledLayers()
Creates all the possible map layers that may be needed when load on
demand occurs in the data source insertion layer.
|
IlvCoordinateSystem |
getCoordinateSystem()
Retrieves the coordinate system of this data source.
|
protected IlvDBConnectionInfo |
getDBConnectionInfo()
Returns the database connection used for that data source.
|
IlvMapReusableFeatureIterator |
getFeatureIterator()
Retrieves the feature iterator used by this data source.
|
protected ilog.views.maps.datasource.ibm.internal.DBGeometryColumn |
getGeometryColumn()
Fetches or returns the database information about the selected geometry column.
|
IlvMapLayer |
getInsertionLayer()
Retrieves the insertion layer.
|
protected abstract ilog.views.maps.datasource.ibm.internal.DBLayerMetaData |
getLayerMetaData()
Fetches the layer meta data.
|
int |
getRowLimit()
Gets the optional limit.
|
protected void |
initInsertionLayer(IlvMapLayer layer)
Initializes the insertion
IlvMapLayer of this data source
and inserts a new IlvManagerLayer in the specified
IlvMapLayer . |
void |
setRowLimit(int rowLimit)
Indicates an optional limit to the number of features this data source will retrieve from the database.
|
void |
write(IlvOutputStream stream)
Writes this
DataSource to an
IlvOutputStream ; |
createGenericTiles, getColumnCount, getLatMax, getLatMin, getLonMax, getLonMin, getRowCount, isMultiThreaded, reset, setAreaOfinterest, setMultiThreaded, setTilingParameters, setupTiledLoaders, start, useTiling
addCriterionFilter, addLayer, createFeatureRenderer, createInsertionLayer, createStyle, getCriterionFilters, getFeatureRenderer, getFeatureRenderer, getKey, getMapLayer, getStyle, isAcceptNullValues, readInfo, removeAllCriterionFilters, removeCriterionFilter, setAcceptNullValues, setupLayer
addDataSourceListener, callListeners, getBackupDataSources, getDescription, getManager, getName, getNode, getValidExtentions, hasInsertionLayer, initBackupDataSource, isAttachingAttributes, isGrapherMode, isSaveBackupDataSources, isSourceDataAvailable, isUsingBackupDataSource, isUsingGeodeticComputation, mapIntersects, removeDataSourceListener, setAttachingAttributes, setCoordinateSystem, setDescription, setFeatureRenderer, setForceUsingBackupDataSource, setGrapherMode, setInsertionLayer, setManager, setName, setSaveBackupDataSources, setValidExtentions, toString
public IlvDBDataSource(IlvDBConnectionInfo connection, String layerName) throws SQLException, IOException
IlvDBDataSource
.connection
- The database connection.layerName
- the layer name. This name has to be in the form: tableSchema.tableName.spatialColumnSQLException
- if layerName
is incorrectly configured.IOException
- the database does not contain the layer.public IlvDBDataSource(IlvInputStream stream) throws IlvReadFileException, SQLException, IOException
IlvInputStream
.stream
- The stream to read from.IlvReadFileException
- if there is a problem reading from
stream
.SQLException
- if layerName
is incorrectly configured.IOException
- the decoding went bad.public void write(IlvOutputStream stream) throws IOException
DataSource
to an
IlvOutputStream
;write
in interface IlvPersistentObject
write
in class IlvTilableDataSource
stream
- The stream to write to.IOException
protected IlvMapRegionOfInterestIterator createTiledIterator(IlvMapLayer arg0)
createTiledIterator
in class IlvTilableDataSource
arg0
- The layer to create objects for.protected void initInsertionLayer(IlvMapLayer layer)
IlvMapLayer
of this data source
and inserts a new IlvManagerLayer
in the specified
IlvMapLayer
.initInsertionLayer
in class IlvMapDataSource
layer
- The IlvMapLayer
to initialize.protected void createTiledLayers()
createTiledLayers
in class IlvTilableDataSource
public IlvCoordinateSystem getCoordinateSystem()
getCoordinateSystem
in class IlvMapDataSource
protected IlvDBConnectionInfo getDBConnectionInfo()
public IlvMapReusableFeatureIterator getFeatureIterator()
getFeatureIterator
in class IlvHierarchicalDataSource
protected ilog.views.maps.datasource.ibm.internal.DBGeometryColumn getGeometryColumn() throws IOException, SQLException
IOException
SQLException
protected abstract ilog.views.maps.datasource.ibm.internal.DBLayerMetaData getLayerMetaData() throws SQLException, IOException
SQLException
IOException
protected abstract IlvDBFeatureIterator createFeatureIterator() throws SQLException, IOException
SQLException
- if database query is incorrect.IOException
- if the database connection went bad.public void setRowLimit(int rowLimit)
rowLimit
- the optional limit.public int getRowLimit()
public IlvMapLayer getInsertionLayer()
getInsertionLayer
in class IlvMapDataSource
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.