|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.postgresql.pljava.internal.Oid
public class Oid
The Oid
correspons to the internal PostgreSQL Oid
.
Should the size of that change from 32 bit, this class must change too.
In Java, the InvalidOid is represented as null
.
Constructor Summary | |
---|---|
Oid(int value)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Checks to see if the other object is an Oid , and if so,
if the native value of that Oid equals the native value
of this Oid . |
static Oid |
forJavaClass(java.lang.Class clazz)
Finds the PostgreSQL well known Oid for the given class. |
static Oid |
forSqlType(int sqlType)
Finds the PostgreSQL well known Oid for the XOPEN Sql type. |
java.lang.Class |
getJavaClass()
|
static Oid |
getTypeId()
Returns the PostgreSQL type id for the Oid type. |
int |
hashCode()
The native value is used as the hash code. |
static void |
registerType(java.lang.Class clazz,
Oid typeId)
A Type well known to PostgreSQL but not known as a standard XOPEN SQL type can be registered here. |
java.lang.String |
toString()
Returns a string representation of this OID. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Oid(int value)
Method Detail |
---|
public boolean equals(java.lang.Object o)
Oid
, and if so,
if the native value of that Oid
equals the native value
of this Oid
.
equals
in class java.lang.Object
public java.lang.Class getJavaClass() throws java.sql.SQLException
java.sql.SQLException
public int hashCode()
hashCode
in class java.lang.Object
Oid
.public static void registerType(java.lang.Class clazz, Oid typeId)
clazz
- The Java class that corresponds to the type id.typeId
- The well known type id.public static Oid forJavaClass(java.lang.Class clazz)
clazz
- The class.
public static Oid forSqlType(int sqlType)
sqlType
- The XOPEN type code.
public static Oid getTypeId()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |