| Oracle Repository API and Model Reference Guide |
java.lang.Object
|
+--java.lang.Number
|
+--oracle.repos.services.GID
An immutable wrapper for a numeric repository object IRID and IVID identifiers (Generic IDentifier). Currently this extends the java.math.BigDecimal type, since the Java long definition only corresponds to Oracle numbers with a precision of NUMBER(19), this class uses BigDecimal values for repository element identifiers (IRID or IVID), which have a precision of NUMBER(38).
oracle.repos.services.RID, Serialized Form| Field Summary | |
(package private)
boolean |
m_bhashcodeCached |
(package private)
int |
m_nhashcode |
| Constructor Summary |
GID(java.math.BigDecimal bdIDType)
Translates a java.math.BigDecimal value to an GID. |
GID(java.math.BigInteger nIDType)
|
GID(double dIDType) Deprecated. using primitive integral types reduces code reliability. |
GID(GID gIDType) |
GID(int nIDType) |
GID(java.lang.Number nIDType)
|
GID(java.lang.String strValue)
Creates a new GID instance by parsing an initial string representation of the numberic value. |
| Method Summary | |
byte |
byteValue() |
int |
compareTo(GID gid) Compare two GIDs |
double |
doubleValue() |
boolean |
equals(java.lang.Object obj)
Numeric equality operator for GID values. |
float |
floatValue() |
static GID |
fromCallableStatement(java.sql.CallableStatement callableStatement,
int nColumn) Creates a GID value from an indexed parameter value in a java.sql.PreparedStatement |
static GID |
fromResultSet(java.sql.ResultSet resultSet,
int nColumn) |
static GID |
fromResultSet(java.sql.ResultSet resultSet,
int nColumn, int nColumnType) Creates a GID value from an indexed column value in a java.sql.ResultSet |
static GID |
fromResultSet(java.sql.ResultSet resultSet,
java.lang.String strColumn) |
static GID |
fromResultSet(java.sql.ResultSet resultSet,
java.lang.String strColumn, int nColumnType) Creates a GID value from an named column value in a java.sql.ResultSet |
boolean |
greaterThan(GID gid) greaterThan two GIDs |
int |
hashCode() |
int |
intValue() |
boolean |
isNull() |
long |
longValue() |
static GID |
referenceGIDNull() |
static GID |
referenceGIDOne() |
static GID |
referenceGIDZero() |
void |
setNull() |
void |
setParameter(java.sql.PreparedStatement callableStatement,
int nColumn) Sets an indexed parameter in a java.sql.PreparedStatement with the numeric value of this GID instance |
short |
shortValue() |
java.math.BigDecimal |
toBigDecimal() Obtains a BigDecimal value from the contents of this GID instance. |
java.math.BigInteger |
toBigInteger() |
java.lang.String |
toString() Produces a string value from the contents of this GID instance. |
static GID |
valueOf(long val) |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
boolean m_bhashcodeCached
int m_nhashcode
| Constructor Detail |
public GID(double dIDType)
public GID(int nIDType)
public GID(java.lang.Number nIDType)
public GID(java.math.BigInteger nIDType)
public GID(java.math.BigDecimal bdIDType)
public GID(GID gIDType)
public GID(java.lang.String strValue)
throws java.lang.NumberFormatException
| Method Detail |
public java.math.BigDecimal toBigDecimal()
public java.lang.String toString()
public static GID fromResultSet(java.sql.ResultSet resultSet,
int nColumn,
int nColumnType)
throws java.sql.SQLException
resultSet - the java.sql.ResultSetnColumn - the column indexnColumnType - JDBC type of column
public static GID fromResultSet(java.sql.ResultSet resultSet,
int nColumn)
throws java.sql.SQLException
public static GID fromResultSet(java.sql.ResultSet resultSet,
java.lang.String strColumn,
int nColumnType)
throws java.sql.SQLException
resultSet - the java.sql.ResultSetstrColumn - the column name
public static GID fromResultSet(java.sql.ResultSet resultSet,
java.lang.String strColumn)
throws java.sql.SQLException
public static GID fromCallableStatement(java.sql.CallableStatement callableStatement,
int nColumn)
throws java.sql.SQLException
callableStatement - the java.sql.CallableStatementnColumn - the column index
public void setParameter(java.sql.PreparedStatement callableStatement,
int nColumn)
throws java.sql.SQLException
callableStatement - the java.sql.PreparedStatementnColumn - the column indexpublic boolean equals(java.lang.Object obj)
obj - the reference object with which to compare.public void setNull()
public boolean isNull()
public int compareTo(GID gid)
public boolean greaterThan(GID gid)
public static GID referenceGIDZero()
public static GID referenceGIDNull()
public static GID referenceGIDOne()
public int hashCode()
public java.math.BigInteger toBigInteger()
public int intValue()
public long longValue()
public float floatValue()
public double doubleValue()
public static GID valueOf(long val)
public byte byteValue()
public short shortValue()
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |