Module org.postgresql.pljava
Package org.postgresql.pljava
The PL/Java API for use in writing database procedures, functions, and types
using PL/Java.
Along with the API in this package, PL/Java code will mosty interact with
the database using the specialized, direct version of the
JDBC API, obtained (as decreed in the SQL/JRT specs)
from
DriverManager.getConnection(String)
by passing it
the magic URL jdbc:default:connection
.- Author:
- Thomas Hallgren
-
Interface Summary Interface Description Adjusting.XML.DOMSource Adjusting version of aDOMSource
.Adjusting.XML.Parsing<T extends Adjusting.XML.Parsing<T>> Interface with methods to adjust the restrictions on XML parsing that are commonly considered when XML content might be from untrusted sources.Adjusting.XML.Result<T extends Result> Adjusting version ofjavax.xml.transform.Result
, offering the adjustment methods ofAdjusting.XML.Parsing
, chiefly so that there is a way to apply those adjustments to any implicitly-created parser used to verify the content that will be written to theResult
.Adjusting.XML.SAXResult Adjusting version of aSAXResult
.Adjusting.XML.SAXSource Adjusting version of aSAXSource
.Adjusting.XML.SetMethod<T> A functional interface fitting varioussetFeature
orsetProperty
methods in Java XML APIs.Adjusting.XML.Source<T extends Source> Adjusting version ofjavax.xml.transform.Source
, allowing various parser features to be configured before callingget()
to obtain the usableSource
object.Adjusting.XML.SourceResult SpecializedResult
type for setting a new PL/JavaSQLXML
instance's content from an arbitrarySource
object of any of the types JDBC requires theSQLXML
type to support.Adjusting.XML.StAXSource Adjusting version of aStAXSource
.Adjusting.XML.StreamResult Adjusting version of aStreamResult
.ObjectPool<T extends PooledObject> A pool of objects of a single class.PooledObject Interface for objects that are pooled and reused.ResultSetHandle An implementation of this interface is returned from functions and procedures that are declared to returnSET OF
a complex type in the form of aResultSet
.ResultSetProvider An implementation of this interface is returned from functions and procedures that are declared to returnSET OF
a complex type.ResultSetProvider.Large Version ofResultSetProvider
where theassignRowValues
method accepting along
row count must be implemented, and theint
version defaults to using it.SavepointListener Interface for a listener to be notified of the start and pre-commit, commit, or abort of savepoints.Session A Session brings together some useful methods and data for the current database session.TransactionListener Interface for a listener to be notified of prepare, and commit, abort, or other phase transitions, of distributed transactions.TriggerData The data passed to an ordinary (insert/update/delete/truncate) trigger function. -
Class Summary Class Description Adjusting Convenience class whose member classes will provide APIs that in some way adjust aspects of PL/Java's behavior.Adjusting.XML Class that collects adjustment APIs for affecting the behavior of PL/Java's XML support.PLPrincipal JavaPrincipal
representing a PostgreSQLPROCEDURAL LANGUAGE
, which has a name (a simple identifier, not schema-qualified) and is eitherSandboxed
(declared with SQLCREATE TRUSTED LANGUAGE
orUnsandboxed
.PLPrincipal.Sandboxed JavaPrincipal
representing a PostgreSQLPROCEDURAL LANGUAGE
that was declared with theTRUSTED
keyword and can be used to declare new functions by any role that has been grantedUSAGE
permission on it.PLPrincipal.Unsandboxed JavaPrincipal
representing a PostgreSQLPROCEDURAL LANGUAGE
that was declared without theTRUSTED
keyword, and can be used to declare new functions only by a PostgreSQL superuser.SessionManager The SessionManager makes the currentSession
available to the caller. -
Exception Summary Exception Description TriggerException An exception specially suited to be thrown from within a method designated to be a trigger function.