Package org.postgresql.pljava.internal
Java classes implementing core PL/Java behavior. Many of these are the
concrete implementations of classes in the
pljava-api module,
and many have corresponding native code in
pljava-so.
- Author:
- Thomas Hallgren
-
Interface Summary Interface Description Checked<WT,EX extends Throwable> Functional interfaces handling checked exceptions.Checked.AutoCloseable<E extends Exception> Version ofAutoCloseable
with an exception-type parameter.Checked.BiConsumer<T,U,E extends Throwable> LikeBiConsumer
but with a body that can throw checked exceptions.Checked.BooleanConsumer<E extends Throwable> Represents an operation that accepts a single boolean-valued argument and can throw checked exceptions.Checked.BooleanSupplier<E extends Throwable> LikeBooleanSupplier
but with a body that can throw checked exceptions.Checked.ByteConsumer<E extends Throwable> Represents an operation that accepts a single byte-valued argument and can throw checked exceptions.Checked.ByteSupplier<E extends Throwable> A supplier of byte-valued results, with a body that can throw checked exceptions.Checked.CharConsumer<E extends Throwable> Represents an operation that accepts a single char-valued argument and can throw checked exceptions.Checked.CharSupplier<E extends Throwable> A supplier of char-valued results, with a body that can throw checked exceptions.Checked.Consumer<T,E extends Throwable> LikeConsumer
but with a body that can throw checked exceptions.Checked.DoubleConsumer<E extends Throwable> LikeDoubleConsumer
but with a body that can throw checked exceptions.Checked.DoubleSupplier<E extends Throwable> LikeDoubleSupplier
but with a body that can throw checked exceptions.Checked.FloatConsumer<E extends Throwable> Represents an operation that accepts a single float-valued argument and can throw checked exceptions.Checked.FloatSupplier<E extends Throwable> A supplier of float-valued results, with a body that can throw checked exceptions.Checked.Function<T,R,E extends Throwable> LikeFunction
but with a body that can throw checked exceptions.Checked.IntConsumer<E extends Throwable> LikeIntConsumer
but with a body that can throw checked exceptions.Checked.IntSupplier<E extends Throwable> LikeIntSupplier
but with a body that can throw checked exceptions.Checked.LongConsumer<E extends Throwable> LikeLongConsumer
but with a body that can throw checked exceptions.Checked.LongSupplier<E extends Throwable> LikeLongSupplier
but with a body that can throw checked exceptions.Checked.Predicate<T,E extends Throwable> LikePredicate
but with a body that can throw checked exceptions.Checked.Runnable<E extends Throwable> LikeRunnable
but with a body that can throw checked exceptions.Checked.ShortConsumer<E extends Throwable> Represents an operation that accepts a single short-valued argument and can throw checked exceptions.Checked.ShortSupplier<E extends Throwable> A supplier of short-valued results, with a body that can throw checked exceptions.Checked.Supplier<T,E extends Throwable> LikeSupplier
but with a body that can throw checked exceptions.Checked.ToByteFunction<T,E extends Throwable> Represents a function that produces a byte-valued result and can throw checked exceptions.Checked.ToCharFunction<T,E extends Throwable> Represents a function that produces a char-valued result and can throw checked exceptions.Checked.ToDoubleFunction<T,E extends Throwable> LikeToDoubleFunction
but with a body that can throw checked exceptions.Checked.ToFloatFunction<T,E extends Throwable> Represents a function that produces a float-valued result and can throw checked exceptions.Checked.ToIntFunction<T,E extends Throwable> LikeToIntFunction
but with a body that can throw checked exceptions.Checked.ToLongFunction<T,E extends Throwable> LikeToLongFunction
but with a body that can throw checked exceptions.Checked.ToShortFunction<T,E extends Throwable> Represents a function that produces a short-valued result and can throw checked exceptions.Privilege Clean interface to thedoPrivileged...
methods onAccessController
.VarlenaWrapper Interface that wraps a PostgreSQL native variable-length ("varlena") datum; implementing classes present an existing one to Java as a readableInputStream
, or allow a new one to be constructed by presenting a writableOutputStream
. -
Class Summary Class Description AclId TheAclId
correspons to the internal PostgreSQLAclId
.Backend Provides access to some useful routines in the PostgreSQL server.ByteBufferInputStream Wrap a readableByteBuffer
as anInputStream
.ByteBufferXMLReader Wrap a readableByteBuffer
as aSyntheticXMLReader
.Checked.Closing<T,E extends Exception> A class that can supply aT
while also implementingAutoCloseable<E>
; suitable for use in atry
-with-resources to wrap some value that does not itself implementAutoCloseable
.Checked.OptionalBase Head of a family ofOptional
-like types covering the Java primitives that thejava.util.Optional...
classes do not cover, and whose methods that expect functional interfaces will accept the checked-exception versions declared here.Checked.OptionalBoolean A container object which may or may not contain aboolean
value.Checked.OptionalByte A container object which may or may not contain abyte
value.Checked.OptionalChar A container object which may or may not contain achar
value.Checked.OptionalFloat A container object which may or may not contain afloat
value.Checked.OptionalShort A container object which may or may not contain ashort
value.DualState<T> Base class for object state with corresponding Java and native components.DualState.Key Magic cookie needed as a constructor parameter to confirm thatDualState
subclass instances are being constructed from native code.DualState.SingleFreeErrorData<T> ADualState
subclass whose only native resource releasing action needed isFreeErrorData
of a single pointer.DualState.SingleFreeTupleDesc<T> ADualState
subclass whose only native resource releasing action needed isFreeTupleDesc
of a single pointer.DualState.SingleGuardedLong<T> ADualState
subclass serving only to guard access to a single nonzerolong
value (typically a native pointer).DualState.SingleHeapFreeTuple<T> ADualState
subclass whose only native resource releasing action needed isheap_freetuple
of a single pointer.DualState.SingleMemContextDelete<T> ADualState
subclass whose only native resource releasing action needed isMemoryContextDelete
of a single context.DualState.SinglePfree<T> ADualState
subclass whose only native resource releasing action needed ispfree
of a single pointer.DualState.SingleSPIcursorClose<T> ADualState
subclass whose only native resource releasing action needed isSPI_cursor_close
of a single pointer.DualState.SingleSPIfreeplan<T> ADualState
subclass whose only native resource releasing action needed isSPI_freeplan
of a single pointer.ErrorData TheErrorData
correspons to the ErrorData obtained using an internal PostgreSQLCopyErrorData
call.ExecutionPlan TheExecutionPlan
corresponds to the execution plan obtained using an internal PostgreSQLSPI_prepare
call.Function Methods to look up a PL/Java function and prepare it for invocation.InstallHelper Group of methods intended to streamline the PL/Java installation/startup experience.MarkableSequenceInputStream Version ofSequenceInputStream
that supportsmark
andreset
, to the extent its constituent input streams do.MarkableSequenceInputStream.FetchingListIterator<E> AListIterator
that will fetch an element from aBlockingQueue
wheneverhasNext
would (otherwise) returnfalse
, adding it to the end of the list where the nextnext()
will retrieve it.MarkableSequenceReader Like aMarkableSequenceInputStream
but for characters.Oid TheOid
correspons to the internal PostgreSQLOid
.PgSavepoint Implementation ofSavepoint
for the SPI connection.Portal ThePortal
correspons to the internal PostgreSQLPortal
type.Relation TheRelation
correspons to the internal PostgreSQLRelation
.ResultSetPicker An adapter class used internally when a set-returning user function returns aResultSetHandle
, presenting it as aResultSetProvider
instead.Session An instance of this interface reflects the current session.SPI TheSPI
class provides access to some global variables used by SPI.SyntheticXMLReader Base class implementing the tedious parts of a SAXXMLReader
whose XML content is synthesized on the fly.SyntheticXMLReader.EmptyAttributes2 An immutable and empty collection of attributes.SyntheticXMLReader.FluentAttributes2 Subclass ofAttributes2Impl
that also provides chainable methods so attribute information can be supplied in a fluent style.TransactionalMap Deprecated, for removal: This API element is subject to removal in a future version. This class (a) isn't exposed inpljava-api
, (b) is only used to implement the once-transactional attribute map inSession
, and (c) hasn't had transactional behavior even there, since 3ab90e5 (November 2005).TriggerData TheTriggerData
correspons to the internal PostgreSQLTriggerData
.Tuple TheTuple
correspons to the internal PostgreSQLHeapTuple
.TupleDesc TheTupleDesc
correspons to the internal PostgreSQLTupleDesc
.TupleTable TheSPITupleTable
correspons to the internal PostgreSQLSPITupleTable
type.VarlenaWrapper.Input A class by which Java reads the content of a varlena.VarlenaWrapper.Output A class by which Java writes the content of a varlena as an OutputStream.VarlenaWrapper.Verifier AVerifier
verifies the proper form of content written to aVarlenaWrapper.Output
.VarlenaWrapper.Verifier.Base Verifier to be extended to verify byte streams for specific types.VarlenaWrapper.Verifier.NoOp A Verifier that accepts any content, cheaply.VarlenaXMLRenderer Class adapting aByteBufferXMLReader
to aVarlenaWrapper.Input
. -
Enum Summary Enum Description SyntheticXMLReader.ApacheFeature SyntheticXMLReader.SAX2FEATURE SyntheticXMLReader.SAX2PROPERTY -
Exception Summary Exception Description ServerException A Java exception constructed over a PostgreSQL error report.SPIException A Java exception constructed from a PostgreSQL SPI result code.UncheckedException An unchecked exception to efficiently wrap checked Throwables.