public abstract class IlvSDOTileLoader extends Object implements IlvTileLoader
IlvSDOLayer
,
Serialized FormModifier | Constructor and Description |
---|---|
protected |
IlvSDOTileLoader(IlvInputStream stream)
Reads the tile loader from an
IlvInputStream |
protected |
IlvSDOTileLoader(IlvSDOConnection connection)
Initializes an instance of
IlvSDOTileLoader |
Modifier and Type | Method and Description |
---|---|
void |
connectionRestored()
This method is called by the
IlvSDOLayer when it is read from
an .ivl
file, after the connection to an SDO database has been restored. |
protected ResultSet |
executeQuery(String query)
Executes the specified query and prints a trace if the SQL
traces are enabled.
|
IlvSDOConnection |
getConnection()
Returns the connection to the Oracle database.
|
abstract ResultSet |
getResultSet(IlvTile tile)
Returns the
ResultSet containing the SDO geometries that
intersect the specified tile. |
abstract IlvRect |
getSize()
Returns the bounding box of the data set managed by the tile loader.
|
abstract IlvRect |
getTileOrigin()
Returns the coordinates of the origin tile used by the load-on
demand mechanism.
|
boolean |
isPersistent()
Returns
true . |
void |
load(IlvTile tile)
Loads a tile from the Oracle database and adds the graphic objects
to the layer of the tile.
|
void |
release(IlvTile tile)
Releases the content of a tile when required by the cache of the layer.
|
void |
write(IlvOutputStream stream)
Writes the tile loader to a JViews file.
|
protected IlvSDOTileLoader(IlvSDOConnection connection)
IlvSDOTileLoader
connection
- The connection to an Oracle databaseprotected IlvSDOTileLoader(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
stream
- the input streamIlvReadFileException
- if an error occurs while reading.public abstract IlvRect getTileOrigin() throws SQLException
SQLException
public abstract ResultSet getResultSet(IlvTile tile) throws SQLException
ResultSet
containing the SDO geometries that
intersect the specified tile. This method is called by
load(IlvTile tile)
when a tile needs to be loaded.tile
- The tile to be filled with the SDO geometriesSQLException
load(ilog.views.tiling.IlvTile)
public abstract IlvRect getSize() throws SQLException
null
value. The IlvSDOLayer
using this object will have an
undefined size.SQLException
IlvTiledLayer.getSize()
public void connectionRestored() throws SQLException
IlvSDOLayer
when it is read from
an .ivl
file, after the connection to an SDO database has been restored.SQLException
public void load(IlvTile tile) throws Exception
getResultSet
to get the SDO geometries, transforms them into graphic objects
using the renderer of the layer, and then adds the objects to the layer.load
in interface IlvTileLoader
tile
- The tile to loadException
- if an error occurs while loading the tile.getResultSet(ilog.views.tiling.IlvTile)
public void release(IlvTile tile)
release
in interface IlvTileLoader
tile
- The tile to release.protected ResultSet executeQuery(String query) throws SQLException
query
- The SQL querySQLException
- if an SQL error occurs.IlvSDOUtil.EnableSQLTraces(boolean)
public IlvSDOConnection getConnection()
public void write(IlvOutputStream stream) throws IOException
write
in interface IlvPersistentObject
write
in interface IlvTileLoader
stream
- The output streamIOException
- if a write exception occurs.public boolean isPersistent()
true
.isPersistent
in interface IlvTileLoader
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.