|
||||||||||
| 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.objectmodel.IlvObjectSDOLayerMetaData
public class IlvObjectSDOLayerMetaData
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.
| 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 |
|---|
public IlvObjectSDOLayerMetaData(String ownerName,
String tableName,
String geometryColumnName,
Long srid,
IlvObjectSDODimElement[] dimElements)
IlvObjectSDOUtil.GetLayerMetaData(java.sql.Connection, java.lang.String, java.lang.String, java.lang.String, java.lang.String) method.
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.
public IlvObjectSDOLayerMetaData(IlvInputStream stream)
throws IlvReadFileException
IlvObjectSDOLayerMetaData from the specified input stream.
stream - The stream.
IlvReadFileException| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
IlvOutputStream.
write in interface IlvPersistentObjectstream - The stream.
IOException - thrown when an exception occurs during
the write operation for this object.public String getOwnerName()
public String getTableName()
public String getGeometryColumnName()
public Long getSRID()
SDO_SRID of this metadata.
public void setOwnerName(String ownerName)
ownerName - The name of the table owner of this metadata.public void setTableName(String tableName)
tableName - The table name of this metadata.public void setGeometryColumnName(String gName)
gName - The name of the geometry column of this metadata.public void setSRID(Long srid)
SDO_SRID of this metadata.
srid - The SDO_SRID of this metadata.public IlvObjectSDODimElement[] getDimElements()
public void setDimElements(IlvObjectSDODimElement[] elements)
elements - The dim elements.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||