ilog.views.maps.format.oracle
Class IlvSDOLayer

java.lang.Object
  extended by ilog.views.IlvIndexedSet
      extended by ilog.views.IlvManagerLayer
          extended by ilog.views.tiling.IlvTiledLayer
              extended by ilog.views.maps.format.oracle.IlvSDOLayer
All Implemented Interfaces:
IlvPersistentObject, Serializable
Direct Known Subclasses:
IlvObjectSDOLayer

public class IlvSDOLayer
extends IlvTiledLayer

Implements load-on-demand for an Oracle SDO data source.

See Also:
Serialized Form

Constructor Summary
IlvSDOLayer(IlvInputStream stream)
          Reads the layer from an IlvInputStream.
IlvSDOLayer(IlvSDOConnection connection, IlvSDOTileLoader sdoTileLoader, IlvTileCache cache)
          Initializes an instance of IlvSDOLayer that loads the data with the specified tile loader.
IlvSDOLayer(IlvSDOConnection connection, IlvSDOTileLoader sdoTileLoader, IlvTileCache cache, int mode)
          Initializes an instance of IlvSDOLayer that loads the data with the specified tile loader.
IlvSDOLayer(IlvSDOConnection connection, String layerName)
          Initializes an instance of IlvSDOLayer that will load the data from the specified layer name.
IlvSDOLayer(IlvSDOConnection connection, String layerName, IlvTileCache cache)
          Initializes an instance of IlvSDOLayer that will load the data from the specified layer name.
 
Method Summary
 IlvSDOConnection getConnection()
          Returns the IlvSDOConnection of this layer.
 IlvFeatureRenderer getFeatureRenderer()
          Returns the feature renderer used to create graphic objects representing the SDO geometries.
 void setFeatureRenderer(IlvFeatureRenderer renderer)
          Sets the feature renderer used to create graphic objects representing the SDO geometries.
 void write(IlvOutputStream stream)
          Writes the object to an IlvOutputStream.
 
Methods inherited from class ilog.views.tiling.IlvTiledLayer
computeBBox, disconnect, draw, fitTransformerToTile, fitTransformerToTile, getDebugView, getSize, getTileController, getTileLoader, ignoreView, initTileOrigin, isIgnoringView, isVisible, setDebugView, setDebugView, setManager, setSize, setTileLoader
 
Methods inherited from class ilog.views.IlvManagerLayer
addVisibilityFilter, drawImpl, getAlpha, getIndex, getManager, getName, getNamedProperty, getProperty, getVisibilityFilters, isSelectable, isTemporarilyHidden, isVisible, print, removeNamedProperty, removeVisibilityFilter, setAlpha, setName, setNamedProperty, setProperty, writeIt
 
Methods inherited from class ilog.views.IlvIndexedSet
addObject, afterUpdate, beforeUpdate, collectObjects, deleteAll, getCardinal, getElements, getIndex, getManagers, getManagersCount, getObject, getObject, getSubsequentRemoveThreshold, isQuadtreeEnabled, map, mapInside, mapInside, mapIntersects, mapIntersects, removeObject, setIndex, setQuadtreeEnabled, setSubsequentRemoveThreshold
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvSDOLayer

public IlvSDOLayer(IlvSDOConnection connection,
                   String layerName)
            throws SQLException
Initializes an instance of IlvSDOLayer that will load the data from the specified layer name. The tiles are equivalent to the SDO tiles.

Parameters:
connection - An open connection to the SDO database
layerName - The name of the SDO layer, in the following form: layerName or user.layerName
Throws:
SQLException - if an error occurs during the layer initialization.

IlvSDOLayer

public IlvSDOLayer(IlvSDOConnection connection,
                   String layerName,
                   IlvTileCache cache)
            throws SQLException
Initializes an instance of IlvSDOLayer that will load the data from the specified layer name. The tiles are equivalent to the SDO tiles.

Parameters:
connection - An open connection to the SDO database
layerName - The name of the SDO layer, in the following form: layerName or user.layerName.
cache - The object that manages the release of invisible tiles.
Throws:
SQLException - if an error occurs during the layer initialization.

IlvSDOLayer

public IlvSDOLayer(IlvSDOConnection connection,
                   IlvSDOTileLoader sdoTileLoader,
                   IlvTileCache cache)
            throws SQLException
Initializes an instance of IlvSDOLayer that loads the data with the specified tile loader.

Parameters:
connection - An open connection to the SDO database
sdoTileLoader - The tile loader that generates the SQL queries and defines the size of the tiling grid
cache - The object that manages the release of invisible tiles
Throws:
SQLException - if an error occurs during the layer initialization.

IlvSDOLayer

public IlvSDOLayer(IlvSDOConnection connection,
                   IlvSDOTileLoader sdoTileLoader,
                   IlvTileCache cache,
                   int mode)
            throws SQLException
Initializes an instance of IlvSDOLayer that loads the data with the specified tile loader.

Parameters:
connection - An open connection to the SDO database
sdoTileLoader - The tile loader that generates the SQL queries
cache - The object that manages the release of invisible tiles
mode - to specify whether to use an indexed tile grid (INDEXED_MODE, the behavior of previous versions) to a list of user-specified IlvFreeTile instances (FREE_MODE).
Throws:
SQLException
Since:
JViews 7.5

IlvSDOLayer

public IlvSDOLayer(IlvInputStream stream)
            throws IlvReadFileException
Reads the layer from an IlvInputStream.

Parameters:
stream - The input stream.
Throws:
IlvReadFileException - if an error occurs while reading.
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes the object to an IlvOutputStream. This method also writes its IlvSDOTileLoader, which must be persistent.

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvTiledLayer
Parameters:
stream - the output stream
Throws:
IOException - if an errors occurs while writing.

setFeatureRenderer

public void setFeatureRenderer(IlvFeatureRenderer renderer)
Sets the feature renderer used to create graphic objects representing the SDO geometries.


getFeatureRenderer

public IlvFeatureRenderer getFeatureRenderer()
Returns the feature renderer used to create graphic objects representing the SDO geometries. By default, it is an IlvDefaultFeatureRenderer.


getConnection

public IlvSDOConnection getConnection()
Returns the IlvSDOConnection of this layer.



Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.