|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.format.oracle.IlvSDOTileLoader
public abstract class IlvSDOTileLoader
The base class to implement tile loaders for Oracle SDO.
IlvSDOLayer| Constructor Summary | |
|---|---|
protected |
IlvSDOTileLoader(IlvInputStream stream)
Reads the tile loader from an IlvInputStream |
protected |
IlvSDOTileLoader(IlvSDOConnection connection)
Initializes an instance of IlvSDOTileLoader |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected IlvSDOTileLoader(IlvSDOConnection connection)
IlvSDOTileLoader
connection - The connection to an Oracle database
protected IlvSDOTileLoader(IlvInputStream stream)
throws IlvReadFileException
IlvInputStream
stream - the input stream
IlvReadFileException - if an error occurs while reading.| Method Detail |
|---|
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 geometries
SQLExceptionload(ilog.views.tiling.IlvTile)
public abstract IlvRect getSize()
throws SQLException
null
value. The IlvSDOLayer using this object will have an
undefined size.
SQLExceptionIlvTiledLayer.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 IlvTileLoadertile - The tile to load
Exception - if an error occurs while loading the tile.getResultSet(ilog.views.tiling.IlvTile)public void release(IlvTile tile)
release in interface IlvTileLoadertile - The tile to release.
protected ResultSet executeQuery(String query)
throws SQLException
query - The SQL query
SQLException - if an SQL error occurs.IlvSDOUtil.EnableSQLTraces(boolean)public IlvSDOConnection getConnection()
public void write(IlvOutputStream stream)
throws IOException
write in interface IlvPersistentObjectwrite in interface IlvTileLoaderstream - The output stream
IOException - if a write exception occurs.public boolean isPersistent()
true.
isPersistent in interface IlvTileLoader
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||