Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- A better way - Search tag in class org.gjt.cuspy.JarX
- Section
- ALL - Static variable in class org.gjt.cuspy.JarX
- Alternative to ScriptEngine for a path resolver - Search tag in class org.gjt.cuspy.JarX
- Section
- appendClasspathIf(Connection, String, String) - Static method in class org.postgresql.pljava.packaging.Node
-
Appends a jar to a schema's class path if not already included.
- ARCHIVE_CHARSET - Variable in class org.gjt.cuspy.JarX
-
Attribute name for specifying the in-archive charset.
- archiveCharset - Variable in class org.gjt.cuspy.JarX
-
Charset (in archive) of the entry being processed.
- archiveCharsetFromType(JarX[]) - Method in class org.gjt.cuspy.JarX
-
Parse a Content-Type for any
charsetparameter. - as(Class<T>, Object) - Static method in class org.postgresql.pljava.packaging.Node
-
Casts o to class clazz, testing it also for null.
- asPgCtlInvocation(ProcessBuilder) - Static method in class org.postgresql.pljava.packaging.Node
-
Adjusts the command arguments of a
ProcessBuilderthat would directly invokepostgresto start a server, so that it will instead startpostgresviapg_ctl. - ATOM - Static variable in class org.gjt.cuspy.JarX
B
- build(String, String) - Method in class org.gjt.cuspy.JarX.Build
-
Method to be used by an application using this class to build a jar.
- Build() - Constructor for class org.gjt.cuspy.JarX.Build
- Building a Jar - Search tag in class org.gjt.cuspy.JarX
- Section
- BYTES - Static variable in class org.gjt.cuspy.JarX
C
- Call to action - Search tag in class org.gjt.cuspy.JarX
- Section
- CHARACTERS - Static variable in class org.gjt.cuspy.JarX
- classify(Throwable) - Static method in class org.postgresql.pljava.packaging.Node
-
Returns an array of three
Strings, element, sqlState, and message, as would be printed byNode.qp(Throwable). - classify(Attributes, boolean) - Method in class org.gjt.cuspy.JarX
-
Set instance variables for text/binary and permissions treatment according to the passed Attributes.
- clean_node() - Method in class org.postgresql.pljava.packaging.Node
-
Recursively removes the basedir and its descendants.
- clean_node(boolean) - Method in class org.postgresql.pljava.packaging.Node
-
Recursively removes the basedir (unless keepRoot) and its descendants.
- COMMENT - Static variable in class org.gjt.cuspy.JarX
- connect() - Method in class org.postgresql.pljava.packaging.Node
-
Returns a
Connectionto the server associated with this Node, using default properties appropriate for this setting. - connect(Map<String, String>) - Method in class org.postgresql.pljava.packaging.Node
-
Returns a
Connectionto the server associated with this Node, with suppliedProperties overriding or supplementing the ones that would be passed by default. - connect(Properties) - Method in class org.postgresql.pljava.packaging.Node
-
Returns a
Connectionto the server associated with this Node, with supplied properties p overriding or supplementing the ones that would be passed by default.
D
- data_dir() - Method in class org.postgresql.pljava.packaging.Node
-
Returns the directory name to be used as the PostgreSQL data directory for this node.
- defaultArchiveCharset - Variable in class org.gjt.cuspy.JarX
-
As for archiveCharset, but set from main attributes (default UTF-8).
- defaultExecutePermission - Variable in class org.gjt.cuspy.JarX
-
As for executePermission but set from main attributes, null if not present.
- defaultReadPermission - Variable in class org.gjt.cuspy.JarX
-
As for readPermission but set from main attributes, null if not present.
- defaultTreatment - Variable in class org.gjt.cuspy.JarX
-
As for treatment, but set from main attributes (or BYTES if not present).
- defaultUnpackedCharset - Variable in class org.gjt.cuspy.JarX
-
As for unpackedCharset, but set from main attributes or platform default.
- defaultWritePermission - Variable in class org.gjt.cuspy.JarX
-
As for writePermission but set from main attributes, null if not present.
- describeTranscoding(InputStreamReader, OutputStreamWriter) - Method in class org.gjt.cuspy.JarX
- DOMAINLITERAL - Static variable in class org.gjt.cuspy.JarX
E
- examplesNeedSaxon() - Static method in class org.postgresql.pljava.packaging.Node
-
Returns true if the examples jar includes the
org.postgresql.pljava.example.saxon.S9class (meaning the appropriate Saxon jar must be installed and on the classpath first before the examples jar can be deployed, unlesscheck_function_bodiesisoffto skip dependency checking). - executePermission - Variable in class org.gjt.cuspy.JarX
-
Execute permission to be set on the file.
- extract() - Method in class org.gjt.cuspy.JarX
-
Find the jar I was loaded from and extract all entries except my own class file.
- extract() - Method in class org.postgresql.pljava.packaging.Node
-
Extracts the jar contents, just as done in the normal case of running this class with
java -jar. - extract(JarEntry, InputStream) - Method in class org.gjt.cuspy.JarX
-
Extract a single entry, performing any appropriate conversion
- Extracting a jar - Search tag in class org.gjt.cuspy.JarX
- Section
F
- flattenDiagnostics(Object) - Static method in class org.postgresql.pljava.packaging.Node
-
A flat-mapping function to expand any
SQLExceptionorSQLWarninginstance in a result stream into the stream of possibly multiple linked diagnostics and causes in the encounter order of theSQLExceptioniterator. - forWindowsCRuntime(ProcessBuilder) - Static method in class org.postgresql.pljava.packaging.Node
-
Adjusts the command arguments of a
ProcessBuilderso that they will be recovered correctly on Windows by a target C/C++ program using the argument parsing algorithm of the usual C run-time code, when it is known that the command will not be handled first bycmd.
G
- get_free_port() - Static method in class org.postgresql.pljava.packaging.Node
-
Returns a TCP port on the loopback interface that is free at the moment this method is called.
- get_new_node(String) - Static method in class org.postgresql.pljava.packaging.Node
-
Returns a new
Nodethat can be used to initialize and start a PostgreSQL instance.
H
- header(BufferedReader) - Method in class org.gjt.cuspy.JarX.Build
-
Return one header line (complete after RFC822 continuation unfolding).
- holds(String, short...) - Method in class org.gjt.cuspy.JarX
-
True if this JarX object represents a token of one of the given types and its value equals the given string.
- holdsIgnoreCase(String, short...) - Method in class org.gjt.cuspy.JarX
-
True if this JarX object represents a token of one of the given types and its value equals the given string, case-insensitively.
I
- init() - Method in class org.postgresql.pljava.packaging.Node
-
Invokes
initdbfor the node, passing default options appropriate for this setting. - init(UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
-
Invokes
initdbfor the node, passing default options appropriate for this setting, and tweaks to be applied to theProcessBuilderbefore it is started. - init(Map<String, String>) - Method in class org.postgresql.pljava.packaging.Node
-
Invokes
initdbfor the node, with suppliedOptions overriding or supplementing the ones that would be passed by default. - init(Map<String, String>, UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
-
Invokes
initdbfor the node, with suppliedOptions overriding or supplementing the ones that would be passed by default, and tweaks to be applied to theProcessBuilderbefore it is started. - initialized_cluster() - Method in class org.postgresql.pljava.packaging.Node
-
Like
init()but returns anAutoCloseablethat will recursively remove the files and directories under the basedir (but not the basedir itself) on the exit of a calling try-with-resources scope. - initialized_cluster(UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
-
Like
init()but returns anAutoCloseablethat will recursively remove the files and directories under the basedir (but not the basedir itself) on the exit of a calling try-with-resources scope. - initialized_cluster(Map<String, String>) - Method in class org.postgresql.pljava.packaging.Node
-
Like
init()but returns anAutoCloseablethat will recursively remove the files and directories under the basedir (but not the basedir itself) on the exit of a calling try-with-resources scope. - initialized_cluster(Map<String, String>, UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
-
Like
init()but returns anAutoCloseablethat will recursively remove the files and directories under the basedir (but not the basedir itself) on the exit of a calling try-with-resources scope. - installExamples(Connection, boolean) - Static method in class org.postgresql.pljava.packaging.Node
-
Installs the examples jar, under the name
examples. - installExamplesAndPath(Connection, boolean) - Static method in class org.postgresql.pljava.packaging.Node
-
Installs the examples jar, under the name
examples, and appends it to the class path for schemapublic. - installJar(Connection, String, String, boolean) - Static method in class org.postgresql.pljava.packaging.Node
-
Installs a jar.
- installSaxon(Connection, String, String) - Static method in class org.postgresql.pljava.packaging.Node
-
Installs a Saxon jar under the name
saxon, given the path to a local Maven repo and the needed version of Saxon, assuming the jar has been downloaded there already. - installSaxonAndExamplesAndPath(Connection, String, String, boolean) - Static method in class org.postgresql.pljava.packaging.Node
-
A four-fer: installs Saxon, adds it to the class path, then installs the examples jar, and updates the classpath to include both.
- installSaxonAndPath(Connection, String, String) - Static method in class org.postgresql.pljava.packaging.Node
-
Installs a Saxon jar under the name
saxon, and appends it to the class path for schemapublic. - is(short...) - Method in class org.gjt.cuspy.JarX
-
True if this JarX object represents a token of one of the given types.
- isVoidResultSet(Object, int, int) - Static method in class org.postgresql.pljava.packaging.Node
-
A predicate testing that an object is a
ResultSetthat has only columns ofvoidtype, and the expected number of rows and columns.
J
- JarX - Class in org.gjt.cuspy
-
Distribute your work as a self-extracting jar file by including one file, JarX.class, that also safely converts text files to the receiver's encoding and newline conventions, and adds less than 7 kB to your jar.
- JarX() - Constructor for class org.gjt.cuspy.JarX
-
Public constructor for an application using JarX to unpack jars.
- JarX(short, String) - Constructor for class org.gjt.cuspy.JarX
-
Constructor for JarX objects used as tokens returned by the lexer.
- JarX.Build - Class in org.gjt.cuspy
-
Subclass of JarX containing the code needed to build jars.
L
- LINES - Static variable in class org.gjt.cuspy.JarX
- loadPLJava(Connection) - Static method in class org.postgresql.pljava.packaging.Node
-
Loads PL/Java (with a
LOADcommand, notCREATE EXTENSION).
M
- main(String[]) - Static method in class org.gjt.cuspy.JarX.Build
-
Entry point for building a jar.
- main(String[]) - Static method in class org.gjt.cuspy.JarX
-
The entry point for extracting.
- main(String[]) - Static method in class org.postgresql.pljava.packaging.Node
-
Performs an ordinary installation, using
pg_configor the corresponding system properties to learn where the files belong, and unpacking the files (not including this class or its ancestors) there. - mainAttributes - Variable in class org.gjt.cuspy.JarX
-
Main attributes saved from the manifest (which must be seen early).
- manifest(InputStream) - Method in class org.gjt.cuspy.JarX.Build
-
Read the manifest and build lists of file names and Attributes objects.
- manifestCode - Static variable in class org.gjt.cuspy.JarX
-
The (fixed) encoding used for manifest content
- manifestName - Static variable in class org.gjt.cuspy.JarX
-
Name of the manifest file as stored in the jar
- Miscellany - Search tag in class org.gjt.cuspy.JarX
- Section
N
- Node - Class in org.postgresql.pljava.packaging
-
Extends the JarX extraction tool to provide a
resolvemethod that replaces prefixespljava/foo/in path names stored in the archive with the result ofpg_config --foo. - NONE - Static variable in class org.gjt.cuspy.JarX
- NOTHING_OR_PGJDBC_ZERO_COUNT - Static variable in class org.postgresql.pljava.packaging.Node
-
A state (see
stateMachine) that expects nothing (if the driver is pgjdbc-ng) or a zero row count (if the driver is PGJDBC). - notMe(String) - Method in class org.gjt.cuspy.JarX
-
True if the passed name is not the in-jar name of this class or related classes that should not be extracted.
O
- org.gjt.cuspy - package org.gjt.cuspy
- org.postgresql.pljava.packaging - package org.postgresql.pljava.packaging
- OWNER - Static variable in class org.gjt.cuspy.JarX
P
- PATHRESOLVER - Variable in class org.gjt.cuspy.JarX
-
Main attribute to specify a JSR223 script to control extracted names.
- peek(Object) - Static method in class org.postgresql.pljava.packaging.Node
-
Prints an object in the manner of
qp, but in a way suitable for use inStream.peek. - PERMISSIONS - Variable in class org.gjt.cuspy.JarX
-
Permissions (only as supported in java.io.File for SE 6) spec *(, spec) where spec is action=whom, action is read, write, or execute, and whom is none, owner, or all.
- prepareResolver(String) - Method in class org.gjt.cuspy.JarX
-
Prepare a resolver of pathnames, given the value of the PATHRESOLVER main attribute.
- prepareResolver(String) - Method in class org.postgresql.pljava.packaging.Node
-
Prepares the resolver, ignoring the passed string (ordinarily a script or rules); this resolver's rules are hardcoded.
Q
- q(Connection, String) - Static method in class org.postgresql.pljava.packaging.Node
-
Executes some arbitrary SQL
- q(ParameterMetaData) - Static method in class org.postgresql.pljava.packaging.Node
-
Produces a
Streamwith an element for each parameter of aPreparedStatement. - q(ResultSet) - Static method in class org.postgresql.pljava.packaging.Node
-
Analogously to
q(Statement,...), produces aStreamwith an element for each row of aResultSet, interleaved with anySQLWarnings reported on the result set, or anSQLExceptionif one is thrown. - q(ResultSetMetaData) - Static method in class org.postgresql.pljava.packaging.Node
-
Produces a
Streamwith an element for each column of aResultSet. - q(Statement, Callable<Boolean>) - Static method in class org.postgresql.pljava.packaging.Node
-
Produces a
Streamof the (in JDBC, possibly multiple) results from someexecutemethod on aStatement. - qp(Object) - Static method in class org.postgresql.pljava.packaging.Node
-
Overload of
qpfor direct application to any oneObjectobtained from a result stream. - qp(Throwable) - Static method in class org.postgresql.pljava.packaging.Node
-
Prints a
Throwableretrieved from a result stream, with special handling forSQLExceptionandSQLWarning. - qp(Connection, String) - Static method in class org.postgresql.pljava.packaging.Node
-
Executes some arbitrary SQL and passes the result stream to
Node.qp(Stream)for printing to standard output. - qp(ParameterMetaData) - Static method in class org.postgresql.pljava.packaging.Node
-
Overload of
qpfor examiningParameterMetaData. - qp(ResultSet) - Static method in class org.postgresql.pljava.packaging.Node
-
Overload of
qpfor direct application to aResultSet. - qp(ResultSetMetaData) - Static method in class org.postgresql.pljava.packaging.Node
-
Overload of
qpfor examiningResultSetMetaData. - qp(Statement, Callable<Boolean>) - Static method in class org.postgresql.pljava.packaging.Node
-
Invokes some
executemethod on aStatementand passes the result stream toNode.qp(Stream)for printing to standard output. - qp(Stream<Object>) - Static method in class org.postgresql.pljava.packaging.Node
-
Prints streamed results of a
Statementin (somewhat) readable fashion. - qp(Stream<Object>, Function<Object, Stream<Object>>) - Static method in class org.postgresql.pljava.packaging.Node
-
Prints streamed results of a
Statementin (somewhat) readable fashion, with a choice of flattener for diagnostics. - QUOTEDSTRING - Static variable in class org.gjt.cuspy.JarX
R
- readPermission - Variable in class org.gjt.cuspy.JarX
-
Read permission to be set on the file.
- removeJar(Connection, String, boolean) - Static method in class org.postgresql.pljava.packaging.Node
-
Removes a jar.
- resolve(String, String) - Method in class org.gjt.cuspy.JarX
-
Called with every path to be extracted; returns a possibly-corrected path.
- resolve(String, String) - Method in class org.postgresql.pljava.packaging.Node
-
Replaces a prefix
pljava/key in a path to be extracted with the value of thepgconfig.key system property, or the result of invokingpg_config(or the exact executable named in thepgconfigsystem property, if present) with the option--key. - resolverEngine - Variable in class org.gjt.cuspy.JarX
-
Script engine to run the name resolver script, if any.
- resolverScript - Variable in class org.gjt.cuspy.JarX
-
The name resolver script, if any.
S
- s_isWindows - Static variable in class org.postgresql.pljava.packaging.Node
-
True if the platform is determined to be Windows.
- s_urlForm - Static variable in class org.postgresql.pljava.packaging.Node
-
The first form of PostgreSQL JDBC driver connection URL found to be recognized by an available driver, or
URL_FORM_NONE. - section(BufferedReader) - Method in class org.gjt.cuspy.JarX.Build
-
Process one manifest section, adding a dictionary entry if the section contains both a
Name:and aContent-Typeattribute. - semiFlattenDiagnostics(Object) - Static method in class org.postgresql.pljava.packaging.Node
-
A flat-mapping function to expand any
SQLExceptionorSQLWarninginstance in a result stream into the stream of possibly multiple linked diagnostics in the order produced bygetNextExceptionorgetNextWarning. - set_WARNING_localized(String) - Static method in class org.postgresql.pljava.packaging.Node
-
Changes the severity string used to recognize when the backend is sending a
WARNING. - setClasspath(Connection, String, String...) - Static method in class org.postgresql.pljava.packaging.Node
-
Sets the class path for a schema.
- setConfig(Connection, String, String, boolean) - Static method in class org.postgresql.pljava.packaging.Node
-
Sets a configuration variable on the server.
- setDefaults(Attributes) - Method in class org.gjt.cuspy.JarX
-
Examine the main attributes to set any defaults.
- shovel(InputStream, OutputStream) - Method in class org.gjt.cuspy.JarX
-
Copy content from an input to an output stream until end.
- shovelBytes(InputStream, OutputStream) - Static method in class org.gjt.cuspy.JarX
-
Copy bytes from an input to an output stream until end.
- shovelChars(InputStream, OutputStream) - Method in class org.gjt.cuspy.JarX.Build
-
Overridden to apply the archive encoding to the output stream (jar entry) and the unpacked encoding to the input stream (local file).
- shovelChars(InputStream, OutputStream) - Method in class org.gjt.cuspy.JarX
-
Copy characters of text from an input from an output stream, applying the specified character encoding but not translating newlines.
- shovelLines(InputStream, OutputStream) - Method in class org.gjt.cuspy.JarX.Build
-
Overridden to apply the archive encoding to the output stream (jar entry), the unpacked encoding to the input stream (local file), and use the RFC2046-required CRLF line separator on the output.
- shovelLines(InputStream, OutputStream) - Method in class org.gjt.cuspy.JarX
-
Copy lines of text from an input from an output stream, applying the specified character encoding and translating newlines.
- shovelText(InputStream, OutputStream) - Method in class org.gjt.cuspy.JarX
-
Copy text from an input to an output stream until end.
- Special manifest attributes - Search tag in class org.gjt.cuspy.JarX
- Section
- start() - Method in class org.postgresql.pljava.packaging.Node
-
Starts a PostgreSQL server for the node with default options appropriate for this setting.
- start(UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
-
Starts a PostgreSQL server for the node, passing default options appropriate for this setting, and tweaks to be applied to the
ProcessBuilderbefore it is started. - start(Map<String, String>) - Method in class org.postgresql.pljava.packaging.Node
-
Starts a PostgreSQL server for the node, with suppliedOptions overriding or supplementing the ones that would be passed by default.
- start(Map<String, String>, UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
-
Starts a PostgreSQL server for the node, with suppliedOptions overriding or supplementing the ones that would be passed by default, and tweaks to be applied to the
ProcessBuilderbefore it is started. - started_server() - Method in class org.postgresql.pljava.packaging.Node
-
Like
start()but returns anAutoCloseablethat will stop the server on the exit of a calling try-with-resources scope. - started_server(UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
-
Like
start()but returns anAutoCloseablethat will stop the server on the exit of a calling try-with-resources scope. - started_server(Map<String, String>) - Method in class org.postgresql.pljava.packaging.Node
-
Like
start()but returns anAutoCloseablethat will stop the server on the exit of a calling try-with-resources scope. - started_server(Map<String, String>, UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
-
Like
start()but returns anAutoCloseablethat will stop the server on the exit of a calling try-with-resources scope. - stateMachine(String, Consumer<String>, Stream<Object>, InvocationHandler...) - Static method in class org.postgresql.pljava.packaging.Node
-
Executes a state machine specified in the form of a list of lambdas representing its states, to verify that a result stream is as expected.
- stop() - Method in class org.postgresql.pljava.packaging.Node
-
Stops the server instance associated with this Node.
- stop(UnaryOperator<ProcessBuilder>) - Method in class org.postgresql.pljava.packaging.Node
-
Stops the server instance associated with this Node.
- structuredFieldBody(String, int) - Static method in class org.gjt.cuspy.JarX
T
- Text conversion background - Search tag in class org.gjt.cuspy.JarX
- Section
- The ZIP approach and why it loses - Search tag in class org.gjt.cuspy.JarX
- Section
- toString() - Method in class org.postgresql.pljava.packaging.Node
-
Identifying information for a "node" instance, or for the singleton extractor instance.
- treatment - Variable in class org.gjt.cuspy.JarX
-
How to treat the entry being processed: bytes, characters, lines.
- TSPECIAL - Static variable in class org.gjt.cuspy.JarX
- type - Variable in class org.gjt.cuspy.JarX
-
Token type, when JarX objects are used to return content type tokens
U
- UNPACKED_CHARSET - Variable in class org.gjt.cuspy.JarX
-
Attribute name for specifying the when-unpacked charset.
- unpackedCharset - Variable in class org.gjt.cuspy.JarX
-
Charset when unpacked of the entry being processed.
- URL_FORM_NONE - Static variable in class org.postgresql.pljava.packaging.Node
-
Value of
s_urlFormindicating no available JDBC driver was found to accept any of the supported connection URL forms. - URL_FORM_PGJDBC - Static variable in class org.postgresql.pljava.packaging.Node
-
Value of
s_urlFormindicating an available JDBC driver reported accepting a connection URL in the PGJDBC form starting with"jdbc:postgresql:". - URL_FORM_PGJDBCNG - Static variable in class org.postgresql.pljava.packaging.Node
-
Value of
s_urlFormindicating an available JDBC driver reported accepting a connection URL in the pgjdbc-ng form starting with"jdbc:pgsql:". - use_pg_ctl(boolean) - Method in class org.postgresql.pljava.packaging.Node
-
Sets whether to use
pg_ctlto start and stop the server (if true), or startpostgresand stop it directly (if false, the default).
V
- value - Variable in class org.gjt.cuspy.JarX
-
Token text when JarX objects are used to return content type tokens
- voidResultSetDims(Object) - Static method in class org.postgresql.pljava.packaging.Node
-
Equivalent to
voidResultSetDims(o,false); - voidResultSetDims(Object, boolean) - Static method in class org.postgresql.pljava.packaging.Node
-
Determines whether an object is a
ResultSetwith no columns of any type other thanvoid, to allow abbreviated output of result sets produced by the common case of queries that callvoidfunctions.
W
- What JarX Does - Search tag in class org.gjt.cuspy.JarX
- Section
- writePermission - Variable in class org.gjt.cuspy.JarX
-
Write permission to be set on the file.
All Classes and Interfaces|All Packages|Constant Field Values