public class IlvObjectSDOLayerMetaData extends Object implements IlvPersistentObject
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
.IlvObjectSDOUtil.GetLayerMetaData(java.sql.Connection, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
method.Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 . |
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
public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
.write
in interface IlvPersistentObject
stream
- 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.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.