public abstract class IlvDBDataSource extends IlvTilableDataSource
IlvHierarchicalDataSource.CriterionFilter, IlvHierarchicalDataSource.SingleAttributeFilterfilename, nameMap, styleMaprenderer, 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, useTilingaddCriterionFilter, addLayer, createFeatureRenderer, createInsertionLayer, createStyle, getCriterionFilters, getFeatureRenderer, getFeatureRenderer, getKey, getMapLayer, getStyle, isAcceptNullValues, readInfo, removeAllCriterionFilters, removeCriterionFilter, setAcceptNullValues, setupLayeraddDataSourceListener, 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, toStringpublic 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 IlvPersistentObjectwrite in class IlvTilableDataSourcestream - The stream to write to.IOExceptionprotected IlvMapRegionOfInterestIterator createTiledIterator(IlvMapLayer arg0)
createTiledIterator in class IlvTilableDataSourcearg0 - 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 IlvMapDataSourcelayer - The IlvMapLayer to initialize.protected void createTiledLayers()
createTiledLayers in class IlvTilableDataSourcepublic IlvCoordinateSystem getCoordinateSystem()
getCoordinateSystem in class IlvMapDataSourceprotected IlvDBConnectionInfo getDBConnectionInfo()
public IlvMapReusableFeatureIterator getFeatureIterator()
getFeatureIterator in class IlvHierarchicalDataSourceprotected ilog.views.maps.datasource.ibm.internal.DBGeometryColumn getGeometryColumn()
throws IOException,
SQLException
IOExceptionSQLExceptionprotected abstract ilog.views.maps.datasource.ibm.internal.DBLayerMetaData getLayerMetaData()
throws SQLException,
IOException
SQLExceptionIOExceptionprotected 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 Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.