public class IlvObjectSDOLayer extends IlvSDOLayer
IlvSDOLayer
which uses an IlvDefaultObjectSDOTileLoader
.
The geometry metadata table that is used through this class is SDO_GEOM_METADATA
for Oracle 8.1.5- and USER_SDO_GEOM_METADATA for Oracle 8.1.6+. This layer relies
on the same database information from IlvDefaultObjectSDOTileLoader
to read graphic objects from your Oracle Spatial database.
IlvDefaultObjectSDOTileLoader
,
Serialized FormConstructor and Description |
---|
IlvObjectSDOLayer(IlvInputStream stream)
Reads an
IlvObjectSDOLayer from specified input stream. |
IlvObjectSDOLayer(IlvSDOConnection connection,
IlvObjectSDOLayerMetaData metadata,
double tileWidth,
double tileHeight,
String xColumnName,
String yColumnName,
IlvObjectSDOKeyExtractor keyExtractor,
IlvRect size)
The main constructor of
IlvObjectSDOLayer to load data
from an Object SDO layer. |
IlvObjectSDOLayer(IlvSDOConnection connection,
String tableName,
double tileWidth,
double tileHeight,
String keyColumnName)
Initializes an instance of
IlvObjectSDOLayer to load data
from an SDO layer. |
IlvObjectSDOLayer(IlvSDOTileLoader loader,
IlvTileCache cache)
Initializes an instance of
IlvObjectSDOLayer to load data
from an Object SDO layer. |
Modifier and Type | Method and Description |
---|---|
boolean |
isAttachingAttributes()
Returns
true if the attributes read from the SDO layer are attached
to the graphic objects. |
void |
setAttachingAttributes(boolean attachAttributes)
Specifies whether the attributes read from the SDO layer are attached
to the graphic objects as
IlvFeatureAttributeProperty . |
void |
write(IlvOutputStream stream)
Writes this layer to the specified stream.
|
getConnection, getFeatureRenderer, setFeatureRenderer
computeBBox, disconnect, draw, fitTransformerToTile, fitTransformerToTile, getDebugView, getSize, getTileController, getTileLoader, ignoreView, initTileOrigin, isIgnoringView, isVisible, setDebugView, setDebugView, setManager, setSize, setTileLoader
addVisibilityFilter, drawImpl, getAlpha, getIndex, getManager, getName, getNamedProperty, getProperty, getVisibilityFilters, isSelectable, isTemporarilyHidden, isVisible, print, removeNamedProperty, removeVisibilityFilter, setAlpha, setName, setNamedProperty, setProperty, writeIt
addObject, afterUpdate, beforeUpdate, collectObjects, collectSelectableObjects, deleteAll, getCardinal, getElements, getIndex, getManagers, getManagersCount, getObject, getObject, getSelectableObject, getSubsequentRemoveThreshold, isQuadtreeEnabled, isZOrdering, map, mapInside, mapInside, mapIntersects, mapIntersects, removeObject, setIndex, SetInitialNumberOfNonZoomablesCapacity, SetInitialNumberOfObjectsCapacity, setQuadtreeEnabled, setSubsequentRemoveThreshold, setZOrdering
public IlvObjectSDOLayer(IlvSDOConnection connection, String tableName, double tileWidth, double tileHeight, String keyColumnName) throws SQLException
IlvObjectSDOLayer
to load data
from an SDO layer.
This constructor will use an IlvDefaultObjectSDOTileLoader
created with the same parameters.connection
- The connection to an Oracle Database with the Spatial extensions.tableName
- The name of the table containing the layer.tileWidth
- The width of one load-on-demand tile,
in the manager coordinate system.tileHeight
- The height of one load-on-demand tile,
in the manager coordinate system.keyColumnName
- The name of the column containing object ID or
null
if no ID is associated to features.SQLException
IlvDefaultObjectSDOTileLoader
public IlvObjectSDOLayer(IlvSDOTileLoader loader, IlvTileCache cache) throws SQLException
IlvObjectSDOLayer
to load data
from an Object SDO layer.
loader
- The tile loader used by this layer in order to retrieve data.cache
- The tile cache used by this layer.SQLException
IlvDefaultObjectSDOTileLoader
,
IlvObjectSDOUtil.GetLayerExtent(java.sql.Connection, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)
,
IlvTileCache
public IlvObjectSDOLayer(IlvSDOConnection connection, IlvObjectSDOLayerMetaData metadata, double tileWidth, double tileHeight, String xColumnName, String yColumnName, IlvObjectSDOKeyExtractor keyExtractor, IlvRect size) throws SQLException
IlvObjectSDOLayer
to load data
from an Object SDO layer.
The geometries are read from the layer specified by its name. Geometries
are extracted from the column whose name is specified.
Feature IDs are extracted using the specified
IlvObjectSDOKeyExtractor
.
The size of the whole layer (that is, the rectangle containing all
geometries of the layer) is generally kept up-to-date (by the user) in the
geometry metadata table of the Oracle Spatial Database.
However, in some cases, providing a more accurate extent (like the extent
returned using SDO_TUNE.EXTENT_OF
) can lead to much better
performances.
connection
- The IlvSDOConnection
to an Oracle Database with
the Spatial extensions.metadata
- The metadata of the layer to be loaded on demand.tileWidth
- The width of one tile, in database units.tileHeight
- The height of one tile, in database units.xColumnName
- The name of the x-dimension.yColumnName
- The name of the y-dimension.keyExtractor
- The key extractor to extract feature IDs.size
- The size of the layer. If set to null
,
the size is defaulted to the one available in the
geometry metadata table.SQLException
IlvObjectSDOUtil.GetLayerExtent(java.sql.Connection, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)
,
IlvObjectSDOLayerMetaData
,
IlvDefaultObjectSDOKeyExtractor
public IlvObjectSDOLayer(IlvInputStream stream) throws IlvReadFileException
IlvObjectSDOLayer
from specified input stream.IlvReadFileException
public void setAttachingAttributes(boolean attachAttributes)
IlvFeatureAttributeProperty
.
By default, the attributes are not attached to the graphic objects.attachAttributes
- If true
, the attributes are attached
to the graphic objects.IlvFeatureAttributeProperty
,
IlvMapFeature.getAttributes()
public boolean isAttachingAttributes()
true
if the attributes read from the SDO layer are attached
to the graphic objects.public void write(IlvOutputStream stream) throws IOException
write
in interface IlvPersistentObject
write
in class IlvSDOLayer
stream
- the output streamIOException
- if an errors occurs while writing.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.