Package org.dbunit.ext.oracle
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 Summary
FieldsModifier and TypeFieldDescriptionprotected static oracle.sql.ORADataFactory[]TheORADataFactoryfor each struct-typed attribute, indexed by attribute position.protected static final OracleSdoGeometryThe sharedORADataFactoryinstance for this class.static final StringThe Oracle SQL type name backing this struct,MDSYS.SDO_GEOMETRY.static final intThe Oracle JDBC type code backing this struct,OracleTypes.STRUCT.protected static int[]The JDBC type codes of this struct's attributes, in declaration order.protected oracle.jpub.runtime.MutableStructThe underlying mutable struct holding this geometry's attribute values. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.OracleSdoGeometry(BigDecimal sdoGtype, BigDecimal sdoSrid, OracleSdoPointType sdoPoint, OracleSdoElemInfoArray sdoElemInfo, OracleSdoOrdinateArray sdoOrdinates) Constructs a geometry with the given attribute values. -
Method Summary
Modifier and TypeMethodDescriptionprotected void_init_struct(boolean init) Initializes_structwhen requested.oracle.sql.ORADatacreate(oracle.sql.Datum d, int sqlType) protected oracle.sql.ORADatacreate(OracleSdoGeometry o, oracle.sql.Datum d, int sqlType) Populates (or creates) anOracleSdoGeometryfrom the given datum.booleanstatic oracle.sql.ORADataFactoryReturns the sharedORADataFactoryfor this class.Returns the SDO_ELEM_INFO attribute.Returns the SDO_GTYPE attribute.Returns the SDO_ORDINATES attribute.Returns the SDO_POINT attribute.Returns the SDO_SRID attribute.inthashCode()voidsetSdoElemInfo(OracleSdoElemInfoArray sdoElemInfo) Sets the SDO_ELEM_INFO attribute.voidsetSdoGtype(BigDecimal sdoGtype) Sets the SDO_GTYPE attribute.voidsetSdoOrdinates(OracleSdoOrdinateArray sdoOrdinates) Sets the SDO_ORDINATES attribute.voidsetSdoPoint(OracleSdoPointType sdoPoint) Sets the SDO_POINT attribute.voidsetSdoSrid(BigDecimal sdoSrid) Sets the SDO_SRID attribute.oracle.sql.DatumtoString()
-
Field Details
-
_SQL_NAME
The Oracle SQL type name backing this struct,MDSYS.SDO_GEOMETRY.- See Also:
-
_SQL_TYPECODE
public static final int _SQL_TYPECODEThe Oracle JDBC type code backing this struct,OracleTypes.STRUCT.- See Also:
-
_struct
protected oracle.jpub.runtime.MutableStruct _structThe underlying mutable struct holding this geometry's attribute values. -
_sqlType
protected static int[] _sqlTypeThe JDBC type codes of this struct's attributes, in declaration order. -
_factory
protected static oracle.sql.ORADataFactory[] _factoryTheORADataFactoryfor each struct-typed attribute, indexed by attribute position. -
_OracleSdoGeometryFactory
The sharedORADataFactoryinstance 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 sharedORADataFactoryfor this class.- Returns:
- the shared
ORADataFactoryfor this class.
-
_init_struct
protected void _init_struct(boolean init) Initializes_structwhen requested.- Parameters:
init-trueto (re)create_struct.
-
toDatum
- Specified by:
toDatumin interfaceoracle.sql.ORAData- Throws:
SQLException
-
create
- Specified by:
createin interfaceoracle.sql.ORADataFactory- Throws:
SQLException
-
create
protected oracle.sql.ORAData create(OracleSdoGeometry o, oracle.sql.Datum d, int sqlType) throws SQLException Populates (or creates) anOracleSdoGeometryfrom the given datum.- Parameters:
o- the instance to populate, ornullto create a new one.d- the source datum, ornullto returnnull.sqlType- the JDBC type code of the source datum.- Returns:
- the populated instance, or
nullifdisnull. - Throws:
SQLException- if reading the datum fails.
-
getSdoGtype
Returns the SDO_GTYPE attribute.- Returns:
- the SDO_GTYPE attribute.
- Throws:
SQLException- if the underlying struct cannot be read.
-
setSdoGtype
Sets the SDO_GTYPE attribute.- Parameters:
sdoGtype- the new SDO_GTYPE attribute value.- Throws:
SQLException- if the underlying struct cannot be written.
-
getSdoSrid
Returns the SDO_SRID attribute.- Returns:
- the SDO_SRID attribute.
- Throws:
SQLException- if the underlying struct cannot be read.
-
setSdoSrid
Sets the SDO_SRID attribute.- Parameters:
sdoSrid- the new SDO_SRID attribute value.- Throws:
SQLException- if the underlying struct cannot be written.
-
getSdoPoint
Returns the SDO_POINT attribute.- Returns:
- the SDO_POINT attribute.
- Throws:
SQLException- if the underlying struct cannot be read.
-
setSdoPoint
Sets the SDO_POINT attribute.- Parameters:
sdoPoint- the new SDO_POINT attribute value.- Throws:
SQLException- if the underlying struct cannot be written.
-
getSdoElemInfo
Returns the SDO_ELEM_INFO attribute.- Returns:
- the SDO_ELEM_INFO attribute.
- Throws:
SQLException- if the underlying struct cannot be read.
-
setSdoElemInfo
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
Returns the SDO_ORDINATES attribute.- Returns:
- the SDO_ORDINATES attribute.
- Throws:
SQLException- if the underlying struct cannot be read.
-
setSdoOrdinates
Sets the SDO_ORDINATES attribute.- Parameters:
sdoOrdinates- the new SDO_ORDINATES attribute value.- Throws:
SQLException- if the underlying struct cannot be written.
-
toString
-
equals
-
hashCode
public int hashCode()
-