Class GeometryMetadata

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class GeometryMetadata
    extends java.lang.Object
    implements java.lang.Cloneable, java.io.Serializable
    This 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.String getColumnName()
      Returns the geometry column name.
      int getNoOfDims()
      Returns the number of dimensions.
      int getSrid()
      Returns the SRID.
      java.lang.String getTableName()
      Deprecated. 
      java.lang.String getTableName​(boolean addSchemaName)
      Returns the geometry table name.
      void setColumnName​(java.lang.String columnName)
      Sets the geometry column name.
      void setNoOfDims​(int noOfDims)
      Sets the number of dimensions
      void setSrid​(int srid)
      Sets the SRID
      void setTableName​(java.lang.String tableName)
      Sets the table name
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 name
        columnName - the geometry column name
        srid - the SRID
        noOfDims - 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 connection
        tableName - the geometry table name
        columnName - 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:
        toString in class java.lang.Object