ilog.views.maps.format.oracle.objectmodel
Class IlvObjectSDOLayerMetaData

java.lang.Object
  extended by ilog.views.maps.format.oracle.objectmodel.IlvObjectSDOLayerMetaData
All Implemented Interfaces:
IlvPersistentObject

public class IlvObjectSDOLayerMetaData
extends Object
implements IlvPersistentObject

This class represents the metadata information for an Oracle Spatial layer. This metadata is composed of the table name, or the name of the layer, the column name, or the name of the column containing the geometries, the diminfo represented by IlvObjectSDODimElement, and an optional SRID number. This information is contained in the (XXX_)SDO_GEOM_METADATA view, XXX being ALL, DBA or USER.
The role of the metadata is to store general information (such as the extent) related to the SDO layer and its geometries.
To get a metadata from the database, you can use the IlvObjectSDOUtil.GetLayerMetaData(java.sql.Connection, java.lang.String, java.lang.String, java.lang.String, java.lang.String) method.
For more information about the metadata structure, please refer to the Oracle Spatial documentation.

Since:
JViews 5.5

Constructor Summary
IlvObjectSDOLayerMetaData(IlvInputStream stream)
          Reads an IlvObjectSDOLayerMetaData from the specified input stream.
IlvObjectSDOLayerMetaData(String ownerName, String tableName, String geometryColumnName, Long srid, IlvObjectSDODimElement[] dimElements)
          Constructs a new metadata.
 
Method Summary
 IlvObjectSDODimElement[] getDimElements()
          Returns the dim elements of this metadata.
 String getGeometryColumnName()
          Returns the name of the geometry column name of this metadata.
 String getOwnerName()
          Returns the name of the owner of the layer of this metadata.
 Long getSRID()
          Returns the SDO_SRID of this metadata.
 String getTableName()
          Returns the name of the table of this metadata.
 void setDimElements(IlvObjectSDODimElement[] elements)
          Sets the dim elements of this metadata.
 void setGeometryColumnName(String gName)
          Returns the name of the geometry column name of this metadata.
 void setOwnerName(String ownerName)
          Sets the name of the owner of the layer of this metadata.
 void setSRID(Long srid)
          Sets the SDO_SRID of this metadata.
 void setTableName(String tableName)
          Sets the name of the table of this metadata.
 String toString()
          Returns a string representation of this metadata.
 void write(IlvOutputStream stream)
          Writes this metadata to an IlvOutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvObjectSDOLayerMetaData

public IlvObjectSDOLayerMetaData(String ownerName,
                                 String tableName,
                                 String geometryColumnName,
                                 Long srid,
                                 IlvObjectSDODimElement[] dimElements)
Constructs a new metadata. You can build a metadata by using directly this constructor, or by using the IlvObjectSDOUtil.GetLayerMetaData(java.sql.Connection, java.lang.String, java.lang.String, java.lang.String, java.lang.String) method.

Parameters:
ownerName - The name of the owner of the metadata. For instance, if the metadata has been built by means of the IlvObjectSDOUtil.GetLayerMetaData(java.sql.Connection, java.lang.String, java.lang.String, java.lang.String, java.lang.String) method by querying the ALL_SDO_GEOM_METADATA view, then this name corresponds to the OWNER column of the view.
tableName - The name of the SDO layer table.
geometryColumnName - The name of the column containing the geometries objects.
srid - The SDO_SRID corresponding to the Oracle Spatial Reference System. If you are using a database whose version is 8.1.5-, then pass this argument as null.
dimElements - The dim elements.

IlvObjectSDOLayerMetaData

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

Parameters:
stream - The stream.
Throws:
IlvReadFileException
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes this metadata to an IlvOutputStream.

Specified by:
write in interface IlvPersistentObject
Parameters:
stream - The stream.
Throws:
IOException - thrown when an exception occurs during the write operation for this object.

getOwnerName

public String getOwnerName()
Returns the name of the owner of the layer of this metadata.


getTableName

public String getTableName()
Returns the name of the table of this metadata.


getGeometryColumnName

public String getGeometryColumnName()
Returns the name of the geometry column name of this metadata.


getSRID

public Long getSRID()
Returns the SDO_SRID of this metadata.


setOwnerName

public void setOwnerName(String ownerName)
Sets the name of the owner of the layer of this metadata.

Parameters:
ownerName - The name of the table owner of this metadata.

setTableName

public void setTableName(String tableName)
Sets the name of the table of this metadata.

Parameters:
tableName - The table name of this metadata.

setGeometryColumnName

public void setGeometryColumnName(String gName)
Returns the name of the geometry column name of this metadata.

Parameters:
gName - The name of the geometry column of this metadata.

setSRID

public void setSRID(Long srid)
Sets the SDO_SRID of this metadata.

Parameters:
srid - The SDO_SRID of this metadata.

getDimElements

public IlvObjectSDODimElement[] getDimElements()
Returns the dim elements of this metadata.


setDimElements

public void setDimElements(IlvObjectSDODimElement[] elements)
Sets the dim elements of this metadata.

Parameters:
elements - The dim elements.

toString

public String toString()
Returns a string representation of this metadata.

Overrides:
toString in class Object


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