|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
org.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 | |
---|---|
double |
doubleValue()
|
boolean |
equals(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 . |
float |
floatValue()
|
static Oid |
forJavaClass(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. |
static Oid |
forTypeName(String typeString)
Finds the PostgreSQL well known Oid for a type name. |
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. |
int |
intValue()
|
long |
longValue()
|
static void |
registerType(Class clazz,
Oid typeId)
A Type well known to PostgreSQL but not known as a standard XOPEN SQL type can be registered here. |
String |
toString()
Returns a string representation of this OID. |
Methods inherited from class java.lang.Number |
---|
byteValue, shortValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Oid(int value)
Method Detail |
---|
public static Oid forJavaClass(Class clazz)
clazz
- The class.
public static Oid forTypeName(String typeString)
typeString
- The name of the type, optionally qualified with a namespace.
SQLException
- if the type could not be foundpublic static Oid forSqlType(int sqlType)
sqlType
- The XOPEN type code.
SQLException
- if the type could not be foundpublic static Oid getTypeId()
public static void registerType(Class clazz, Oid typeId)
clazz
- The Java class that corresponds to the type id.typeId
- The well known type id.public double doubleValue()
doubleValue
in class Number
public boolean equals(Object o)
Oid
, and if so,
if the native value of that Oid
equals the native value
of this Oid
.
equals
in class Object
public float floatValue()
floatValue
in class Number
public Class getJavaClass() throws SQLException
SQLException
public int hashCode()
hashCode
in class Object
Oid
.public int intValue()
intValue
in class Number
public long longValue()
longValue
in class Number
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |