public class IlvSDODataSource extends IlvTilableDataSource
IlvSDODataSource
represents a data source used to read from an
Oracle SDO database.Modifier and Type | Class and Description |
---|---|
static class |
IlvSDODataSource.OracleIterator
An internal
IlvMapRegionOfInterestIterator to go over an
Oracle SDO connection. |
static class |
IlvSDODataSource.SDOLayerFilter
SDOLayerFilter represents an SDO layer filter. |
IlvHierarchicalDataSource.CriterionFilter, IlvHierarchicalDataSource.SingleAttributeFilter
featureIterator, filename, nameMap, styleMap
renderer, usingGeodeticComputation
Constructor and Description |
---|
IlvSDODataSource(IlvInputStream stream)
Constructs an
IlvSDODataSource from a specified
IlvInputStream instance. |
IlvSDODataSource(IlvSDOConnection connection,
boolean isObjectModel,
String layerName)
Constructs a new Oracle
IlvSDODataSource using the specified parameters |
Modifier and Type | Method and Description |
---|---|
protected IlvMapRegionOfInterestIterator |
createTiledIterator(IlvMapLayer layer)
Creates an iterator that will iterate through the map features, for a
specific area of interest.
|
protected void |
createTiledLayers()
Creates all possible map layers in the data source insertion layer that
may be needed when load on demand occurs.
|
IlvMapReusableFeatureIterator |
getFeatureIterator()
Retrieves the feature iterator used by this data source.
|
boolean |
isMultiThreaded()
Tests if the tiled layer created by this data source uses multithreading
to load tiles.
|
protected boolean |
isSourceDataAvailable()
Checks whether the source data this
IlvMapDataSource is
based on is available (file, database connection, url...). |
void |
write(IlvOutputStream stream)
Writes this
IlvSDODataSource to an
IlvOutputStream ; |
createGenericTiles, getColumnCount, getLatMax, getLatMin, getLonMax, getLonMin, getRowCount, 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, getCoordinateSystem, getDescription, getInsertionLayer, getManager, getName, getNode, getValidExtentions, hasInsertionLayer, initBackupDataSource, initInsertionLayer, isAttachingAttributes, isGrapherMode, isSaveBackupDataSources, isUsingBackupDataSource, isUsingGeodeticComputation, mapIntersects, removeDataSourceListener, setAttachingAttributes, setCoordinateSystem, setDescription, setFeatureRenderer, setForceUsingBackupDataSource, setGrapherMode, setInsertionLayer, setManager, setName, setSaveBackupDataSources, setValidExtentions, toString
public IlvSDODataSource(IlvInputStream stream) throws IlvReadFileException
IlvSDODataSource
from a specified
IlvInputStream
instance.stream
- The input stream to read from.IlvReadFileException
- If there is an error when reading from
stream
.public IlvSDODataSource(IlvSDOConnection connection, boolean isObjectModel, String layerName) throws MalformedURLException
IlvSDODataSource
using the specified parametersconnection
- The connection to the Oracle database.isObjectModel
- Set to true
to use the object model.
Set to false
to use the relational model.layerName
- The name of the layer to fetch from the database.MalformedURLException
- if the JDBC URL in connection
is incorrect.public IlvMapReusableFeatureIterator getFeatureIterator()
getFeatureIterator
in class IlvHierarchicalDataSource
public void write(IlvOutputStream stream) throws IOException
IlvSDODataSource
to an
IlvOutputStream
;write
in interface IlvPersistentObject
write
in class IlvTilableDataSource
stream
- The stream to write to.IOException
protected IlvMapRegionOfInterestIterator createTiledIterator(IlvMapLayer layer)
createTiledIterator
in class IlvTilableDataSource
layer
- The layer to create objects for.IlvTilableDataSource.createTiledIterator(ilog.views.maps.beans.IlvMapLayer)
protected void createTiledLayers()
createTiledLayers
in class IlvTilableDataSource
IlvTilableDataSource.createTiledLayers()
public boolean isMultiThreaded()
isMultiThreaded
in class IlvTilableDataSource
true
is returned.IlvTilableDataSource.setMultiThreaded(boolean)
protected boolean isSourceDataAvailable()
IlvMapDataSource
is
based on is available (file, database connection, url...). A
.ivl,
JViews Maps file keeps references to the original
sources the map was built from. It can happen that these sources are not available when
opening the map, for example, when the map is transferred to another machine. This method
checks that availability. In the case where these sources are not available, all operations
that need them are performed from the data embedded in the map, but there is a risk of loosing
information (when reprojecting for example).
This method should be overridden by subclasses.isSourceDataAvailable
in class IlvMapDataSource
true
, if the original source data is available.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.