Package oracle.spatial.network
Class GeometryMetadata
- java.lang.Object
-
- oracle.spatial.network.GeometryMetadata
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class GeometryMetadata extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableThis class defines geometry metadata for Oracle SDO_GEOMETRY.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GeometryMetadata(java.lang.String owner, java.lang.String tableName)Constructs the geometry metadata without a geometry column.GeometryMetadata(java.lang.String owner, java.lang.String tableName, java.lang.String columnName, int srid, int noOfDims)Constructs the geometry metadata.GeometryMetadata(java.sql.Connection conn, java.lang.String owner, java.lang.String tableName, java.lang.String columnName)Constructs the geometry metadata from the database.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetColumnName()Returns the geometry column name.intgetNoOfDims()Returns the number of dimensions.intgetSrid()Returns the SRID.java.lang.StringgetTableName()Deprecated.java.lang.StringgetTableName(boolean addSchemaName)Returns the geometry table name.voidsetColumnName(java.lang.String columnName)Sets the geometry column name.voidsetNoOfDims(int noOfDims)Sets the number of dimensionsvoidsetSrid(int srid)Sets the SRIDvoidsetTableName(java.lang.String tableName)Sets the table namejava.lang.StringtoString()
-
-
-
Constructor Detail
-
GeometryMetadata
public GeometryMetadata(java.lang.String owner, java.lang.String tableName)Constructs the geometry metadata without a geometry column.
-
GeometryMetadata
public GeometryMetadata(java.lang.String owner, java.lang.String tableName, java.lang.String columnName, int srid, int noOfDims)Constructs the geometry metadata.- Parameters:
tableName- the geometry table namecolumnName- the geometry column namesrid- the SRIDnoOfDims- the number of dimensions for the specified geometry table
-
GeometryMetadata
public GeometryMetadata(java.sql.Connection conn, java.lang.String owner, java.lang.String tableName, java.lang.String columnName)Constructs the geometry metadata from the database.- Parameters:
conn- the database connectiontableName- the geometry table namecolumnName- the geometry column name
-
-
Method Detail
-
getTableName
public java.lang.String getTableName()
Deprecated.Returns the geometry table name.
-
getTableName
public java.lang.String getTableName(boolean addSchemaName)
Returns the geometry table name. If addSchemaName is set to false, the table name stored in network metadata will be returned; otherwise, the table name prefixed with the owner schema name will be returned.- Parameters:
addSchemaName- prefix schema name or not
-
setTableName
public void setTableName(java.lang.String tableName)
Sets the table name
-
getColumnName
public java.lang.String getColumnName()
Returns the geometry column name.
-
setColumnName
public void setColumnName(java.lang.String columnName)
Sets the geometry column name.
-
getSrid
public int getSrid()
Returns the SRID.
-
setSrid
public void setSrid(int srid)
Sets the SRID
-
getNoOfDims
public int getNoOfDims()
Returns the number of dimensions.
-
setNoOfDims
public void setNoOfDims(int noOfDims)
Sets the number of dimensions
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-