org.postgresql.pljava.internal

Class JavaWrapper

Known Direct Subclasses:
ErrorData, HeapTupleHeader, LargeObject, Relation, SQLInputFromTuple, TriggerData, Tuple, TupleDesc

public abstract class JavaWrapper
extends java.lang.Object

Constructor Summary

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

Constructor Details

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 Details

_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.

finalize

public void finalize()

getNativePointer

public final long getNativePointer()
Returns the native pointer

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