org.postgresql.pljava.internal
Class JavaWrapper

java.lang.Object
  extended by org.postgresql.pljava.internal.JavaWrapper
Direct Known Subclasses:
ErrorData, HeapTupleHeader, LargeObject, Relation, TriggerData, Tuple, TupleDesc

public abstract class JavaWrapper
extends java.lang.Object


Constructor Summary
protected JavaWrapper(long pointer)
          Creates an instance of this class that will be attached to a native structure represented by pointer.
 
Method Summary
protected  void _free(long pointer)
          Calls the C function pfree() with the given pointer as an argument.
 void finalize()
           
protected  long getNativePointer()
          Returns the native pointer
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaWrapper

protected JavaWrapper(long pointer)
Creates an instance of this class that will be attached to a native structure represented by pointer. This constructor must only be called from native code.

Parameters:
pointer - The wapped pointer.
Method Detail

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

getNativePointer

protected final long getNativePointer()
Returns the native pointer


_free

protected void _free(long pointer)
Calls the C function pfree() with the given pointer as an argument. Subclasses may override this method if special handling is needed when freeing up the object.

Parameters:
pointer - The pointer to free.


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