Class OracleSdoGeometry

java.lang.Object
org.dbunit.ext.oracle.OracleSdoGeometry
All Implemented Interfaces:
oracle.jdbc.internal.ObjectData, oracle.jdbc.internal.ObjectDataFactory, oracle.sql.ORAData, oracle.sql.ORADataFactory

public class OracleSdoGeometry extends Object implements oracle.sql.ORAData, oracle.sql.ORADataFactory
This class was generated by oracle jpub.
Since:
?
Version:
$Revision$ $Date$
Author:
clucas@e-miles.com, Last changed by: $Author$
See Also:
  • Field Details

    • _SQL_NAME

      public static final String _SQL_NAME
      The Oracle SQL type name backing this struct, MDSYS.SDO_GEOMETRY.
      See Also:
    • _SQL_TYPECODE

      public static final int _SQL_TYPECODE
      The Oracle JDBC type code backing this struct, OracleTypes.STRUCT.
      See Also:
    • _struct

      protected oracle.jpub.runtime.MutableStruct _struct
      The underlying mutable struct holding this geometry's attribute values.
    • _sqlType

      protected static int[] _sqlType
      The JDBC type codes of this struct's attributes, in declaration order.
    • _factory

      protected static oracle.sql.ORADataFactory[] _factory
      The ORADataFactory for each struct-typed attribute, indexed by attribute position.
    • _OracleSdoGeometryFactory

      protected static final OracleSdoGeometry _OracleSdoGeometryFactory
      The shared ORADataFactory instance for this class.
  • Constructor Details

    • OracleSdoGeometry

      public OracleSdoGeometry()
      Default constructor.
    • OracleSdoGeometry

      public OracleSdoGeometry(BigDecimal sdoGtype, BigDecimal sdoSrid, OracleSdoPointType sdoPoint, OracleSdoElemInfoArray sdoElemInfo, OracleSdoOrdinateArray sdoOrdinates) throws SQLException
      Constructs a geometry with the given attribute values.
      Parameters:
      sdoGtype - the SDO_GTYPE attribute.
      sdoSrid - the SDO_SRID attribute.
      sdoPoint - the SDO_POINT attribute.
      sdoElemInfo - the SDO_ELEM_INFO attribute.
      sdoOrdinates - the SDO_ORDINATES attribute.
      Throws:
      SQLException - if setting an attribute fails.
  • Method Details

    • getORADataFactory

      public static oracle.sql.ORADataFactory getORADataFactory()
      Returns the shared ORADataFactory for this class.
      Returns:
      the shared ORADataFactory for this class.
    • _init_struct

      protected void _init_struct(boolean init)
      Initializes _struct when requested.
      Parameters:
      init - true to (re)create _struct.
    • toDatum

      public oracle.sql.Datum toDatum(Connection c) throws SQLException
      Specified by:
      toDatum in interface oracle.sql.ORAData
      Throws:
      SQLException
    • create

      public oracle.sql.ORAData create(oracle.sql.Datum d, int sqlType) throws SQLException
      Specified by:
      create in interface oracle.sql.ORADataFactory
      Throws:
      SQLException
    • create

      protected oracle.sql.ORAData create(OracleSdoGeometry o, oracle.sql.Datum d, int sqlType) throws SQLException
      Populates (or creates) an OracleSdoGeometry from the given datum.
      Parameters:
      o - the instance to populate, or null to create a new one.
      d - the source datum, or null to return null.
      sqlType - the JDBC type code of the source datum.
      Returns:
      the populated instance, or null if d is null.
      Throws:
      SQLException - if reading the datum fails.
    • getSdoGtype

      public BigDecimal getSdoGtype() throws SQLException
      Returns the SDO_GTYPE attribute.
      Returns:
      the SDO_GTYPE attribute.
      Throws:
      SQLException - if the underlying struct cannot be read.
    • setSdoGtype

      public void setSdoGtype(BigDecimal sdoGtype) throws SQLException
      Sets the SDO_GTYPE attribute.
      Parameters:
      sdoGtype - the new SDO_GTYPE attribute value.
      Throws:
      SQLException - if the underlying struct cannot be written.
    • getSdoSrid

      public BigDecimal getSdoSrid() throws SQLException
      Returns the SDO_SRID attribute.
      Returns:
      the SDO_SRID attribute.
      Throws:
      SQLException - if the underlying struct cannot be read.
    • setSdoSrid

      public void setSdoSrid(BigDecimal sdoSrid) throws SQLException
      Sets the SDO_SRID attribute.
      Parameters:
      sdoSrid - the new SDO_SRID attribute value.
      Throws:
      SQLException - if the underlying struct cannot be written.
    • getSdoPoint

      public OracleSdoPointType getSdoPoint() throws SQLException
      Returns the SDO_POINT attribute.
      Returns:
      the SDO_POINT attribute.
      Throws:
      SQLException - if the underlying struct cannot be read.
    • setSdoPoint

      public void setSdoPoint(OracleSdoPointType sdoPoint) throws SQLException
      Sets the SDO_POINT attribute.
      Parameters:
      sdoPoint - the new SDO_POINT attribute value.
      Throws:
      SQLException - if the underlying struct cannot be written.
    • getSdoElemInfo

      public OracleSdoElemInfoArray getSdoElemInfo() throws SQLException
      Returns the SDO_ELEM_INFO attribute.
      Returns:
      the SDO_ELEM_INFO attribute.
      Throws:
      SQLException - if the underlying struct cannot be read.
    • setSdoElemInfo

      public void setSdoElemInfo(OracleSdoElemInfoArray sdoElemInfo) throws SQLException
      Sets the SDO_ELEM_INFO attribute.
      Parameters:
      sdoElemInfo - the new SDO_ELEM_INFO attribute value.
      Throws:
      SQLException - if the underlying struct cannot be written.
    • getSdoOrdinates

      public OracleSdoOrdinateArray getSdoOrdinates() throws SQLException
      Returns the SDO_ORDINATES attribute.
      Returns:
      the SDO_ORDINATES attribute.
      Throws:
      SQLException - if the underlying struct cannot be read.
    • setSdoOrdinates

      public void setSdoOrdinates(OracleSdoOrdinateArray sdoOrdinates) throws SQLException
      Sets the SDO_ORDINATES attribute.
      Parameters:
      sdoOrdinates - the new SDO_ORDINATES attribute value.
      Throws:
      SQLException - if the underlying struct cannot be written.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object