org.postgresql.pljava.internal
Class TypeMap

java.lang.Object
  extended by org.postgresql.pljava.internal.NativeStruct
      extended by org.postgresql.pljava.internal.TypeMap

public class TypeMap
extends NativeStruct

The TypeMap maps PostgreSQL oid to java classes.


Constructor Summary
TypeMap()
           
 
Method Summary
static java.lang.String getClassNameFromPgOid(int oid)
          Retrieves java class name frm PostgreSQL OID.
 
Methods inherited from class org.postgresql.pljava.internal.NativeStruct
getNative, invalidate, isValid, releasePointer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeMap

public TypeMap()
Method Detail

getClassNameFromPgOid

public static java.lang.String getClassNameFromPgOid(int oid)
                                              throws java.sql.SQLException
Retrieves java class name frm PostgreSQL OID. If no corresponding type is found, java.lang.String is returned.

Parameters:
oid - Type OID
Returns:
Java class name.
Throws:
java.sql.SQLException - If any error occurs.


Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. Distributed under the terms shown in COPYRIGHT