ilog.views.maps.datasource
Class IlvSDODataSource.OracleIterator

java.lang.Object
  extended by ilog.views.maps.datasource.IlvMapDelegateFeatureIterator
      extended by ilog.views.maps.datasource.IlvSDODataSource.OracleIterator
All Implemented Interfaces:
IlvPersistentObject, IlvMapFeatureIterator, IlvMapReusableFeatureIterator, IlvMapRegionOfInterestIterator
Enclosing class:
IlvSDODataSource

public static class IlvSDODataSource.OracleIterator
extends IlvMapDelegateFeatureIterator
implements IlvMapRegionOfInterestIterator, IlvPersistentObject

An internal IlvMapRegionOfInterestIterator to go over an Oracle SDO connection.

Since:
JViews 7.5

Constructor Summary
IlvSDODataSource.OracleIterator(IlvInputStream stream)
          Reads an OracleIterator from the specified input stream.
IlvSDODataSource.OracleIterator(IlvSDOConnection connection, boolean isObjectModel, String layerName)
          Creates an OracleIterator from a specified Oracle SDO connection.
IlvSDODataSource.OracleIterator(IlvSDOConnection connection, boolean isObjectModel, String layerName, IlvThreadedActivityMonitor tmonitor)
          Creates an OracleIterator from a specified Oracle SDO connection.
 
Method Summary
 IlvCoordinateSystem getCoordinateSystem()
          Returns the spatial reference system that describes the coordinate system of geometric coordinates of the map features.
 Rectangle2D getLatLonBounds()
          Returns the bounds of all objects returned by this feature iterator.
 IlvMapFeature getNextFeature()
          Returns the next map feature of the iterator.
 IlvRect getSize()
          Returns the bounds of all objects returned by this feature iterator.
 void restart()
          Rewinds the iterator for new use.
 void setRegionOfInterest(double minX, double minY, double maxX, double maxY)
          Sets the region of interest to return features for.
 void write(IlvOutputStream stream)
          Writes an OracleIterator to the specified input stream.
 
Methods inherited from class ilog.views.maps.datasource.IlvMapDelegateFeatureIterator
dispose, getDefaultFeatureRenderer, getDelegate, getLowerRightCorner, getUpperLeftCorner, isGeoreferenced, setDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.views.maps.IlvMapFeatureIterator
dispose, getDefaultFeatureRenderer, getLowerRightCorner, getUpperLeftCorner, isGeoreferenced
 

Constructor Detail

IlvSDODataSource.OracleIterator

public IlvSDODataSource.OracleIterator(IlvSDOConnection connection,
                                       boolean isObjectModel,
                                       String layerName)
Creates an OracleIterator from a specified Oracle SDO connection.

Parameters:
connection - The SDO connection to read map features from.
isObjectModel - Set to true if the Oracle database follows the object model. Set to false for the relational model.
layerName - The name of the layer to fetch.

IlvSDODataSource.OracleIterator

public IlvSDODataSource.OracleIterator(IlvSDOConnection connection,
                                       boolean isObjectModel,
                                       String layerName,
                                       IlvThreadedActivityMonitor tmonitor)
Creates an OracleIterator from a specified Oracle SDO connection.

Parameters:
connection - The SDO connection to read map features from.
isObjectModel - Set to true if the Oracle database follows the object model. Set to false for the relational model.
layerName - The name of the layer to fetch.
tmonitor - Thread monitor or null.
Since:
JViews 8.1

IlvSDODataSource.OracleIterator

public IlvSDODataSource.OracleIterator(IlvInputStream stream)
                                throws IlvReadFileException
Reads an OracleIterator from the specified input stream.

Parameters:
stream - The IlvInputStream to read from.
Throws:
IlvReadFileException - if an exception occurs during the reading process.
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes an OracleIterator to the specified input stream.

Specified by:
write in interface IlvPersistentObject
Parameters:
stream - The IlvOutputStream to write to.
Throws:
IOException - if an exception occurs during the writing process.

getCoordinateSystem

public IlvCoordinateSystem getCoordinateSystem()
Returns the spatial reference system that describes the coordinate system of geometric coordinates of the map features.

Specified by:
getCoordinateSystem in interface IlvMapFeatureIterator
Overrides:
getCoordinateSystem in class IlvMapDelegateFeatureIterator
Returns:
The coordinate system. Returns null if the coordinate system is unknown.
See Also:
IlvMapFeatureIterator.getCoordinateSystem()

restart

public void restart()
Rewinds the iterator for new use.

Specified by:
restart in interface IlvMapReusableFeatureIterator
Specified by:
restart in class IlvMapDelegateFeatureIterator
See Also:
IlvMapReusableFeatureIterator.restart()

setRegionOfInterest

public void setRegionOfInterest(double minX,
                                double minY,
                                double maxX,
                                double maxY)
Sets the region of interest to return features for.

Specified by:
setRegionOfInterest in interface IlvMapRegionOfInterestIterator
Parameters:
minX - The left coordinate of the area of interest.
minY - The bottom coordinate of the area of interest.
maxX - The right coordinate of the area of interest.
maxY - The top coordinate of the area of interest.
See Also:
IlvMapRegionOfInterestIterator.setRegionOfInterest(double, double, double, double)

getNextFeature

public IlvMapFeature getNextFeature()
                             throws IOException
Returns the next map feature of the iterator.

Specified by:
getNextFeature in interface IlvMapFeatureIterator
Overrides:
getNextFeature in class IlvMapDelegateFeatureIterator
Returns:
The next map feature of the iterator or null if the iteration is finished.
Throws:
IOException
See Also:
IlvMapFeatureIterator.getNextFeature()

getSize

public IlvRect getSize()
                throws SQLException
Returns the bounds of all objects returned by this feature iterator.

Returns:
IlvRect A rectangle that bounds all oracle objects.
Throws:
SQLException

getLatLonBounds

public Rectangle2D getLatLonBounds()
Returns the bounds of all objects returned by this feature iterator.

Specified by:
getLatLonBounds in interface IlvMapRegionOfInterestIterator
Returns:
IlvRect The bounds of all oracle objects.
Since:
JViews 7.5


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