org.postgresql.pljava.internal
Class JavaWrapper
java.lang.Object
org.postgresql.pljava.internal.JavaWrapper
- Direct Known Subclasses:
- ErrorData, HeapTupleHeader, LargeObject, Relation, SQLInputFromTuple, TriggerData, Tuple, TupleDesc
public abstract class JavaWrapper
- extends 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()
|
long |
getNativePointer()
Returns the native pointer |
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.
finalize
public void finalize()
- Overrides:
finalize
in class Object
getNativePointer
public 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.