This feature is not supported on a ReadOnlyResultSet
.
This feature is not supported on a ReadOnlyResultSet
.
Cancel all changes made to the Tuple.
Checks if the column index is valid.
Checks if the column index is valid.
Checks if the column index is valid.
Clear this map (an anti-object is inserted for each entry
present in the backed map).
Removes all cached schema loaders, functions, and type maps.
This is a noop since warnings are not supported.
Warnings are not yet supported.
Invalidates this structure and frees up memory using the
internal function SPI_cursor_close
Called after the last row has returned or when the query evaluator decides
that it does not need any more rows.
Called after the last row has returned or when the query evaluator decides
that it does not need any more rows.
Cancels all changes but doesn't really close the set.
Cancels all changes but doesn't really close the set.
This methods of this class are implementations of SQLJ commands.
It's not legal to do a commit within a call from SQL.
Commit all changes made since the map was created or since
last commit or abort.
Creates a LargeObject handle and returns the
Oid
of
that handle.
Creates a new instance of SPIStatement
.
Creates a new instance of SPIStatement
.
Creates a new instance of SPIStatement
.
Returns the current session.
Set up a cursor that will execute the plan using the internal
SPI_cursor_open
function
Returns the arguments for this trigger (as declared in the CREATE TRIGGER
statement.
Returns the arguments for this trigger (as declared in the CREATE TRIGGER
statement.
Obtain an attribute from the current session.
Retrieves a description of the given attribute of the given type for a
user-defined type (UDT) that is available in the given schema and
catalog.
It is assumed that an SPI call is under transaction control.
Gets the designated column's table's catalog name.
Return a 2 element array describing the changes that has been made to
the contained Tuple.
Return the classpath that has been defined for the schema named
schemaName
This method is exposed in SQL as
sqlj.get_classpath(VARCHAR)
.
Returns the Java class of the column at index
Returns the fully-qualified name of the Java class whose instances
are manufactured if the method ResultSet.getObject
is called to retrieve a value
from the column.
Returns the fully-qualified name of the Java class whose instances
are manufactured if the method ResultSet.getObject
is called to retrieve a value
from the column.
Returns the fully-qualified name of the Java class whose instances
are manufactured if the method ResultSet.getObject
is called to retrieve a value
from the column.
Returns the number of columns in this ResultSet
object.
Returns the number of columns in this ResultSet
object.
Returns the number of columns in this ResultSet
object.
Indicates the designated column's normal maximum width in characters.
Returns the index of the column named colName
.
Gets the designated column's suggested title for use in printouts and
displays.
Gets the designated column's suggested title for use in printouts and
displays.
Gets the designated column's suggested title for use in printouts and
displays.
Get the designated column's name.
Returns the name of the column at index
.
Retrieves the designated column's SQL type.
Retrieves the designated column's database-specific type name.
Returns ResultSet.CONCUR_READ_ONLY
.
Returns ResultSet.CONCUR_READ_ONLY
.
Returns the concurrency for this ResultSet.
Returns the configuration option as read from the Global
Unified Config package (GUC).
Returns the Connection from that created this statement.
Returns the context message
Returns the number of Tuple
instances contained in this table.
Obtains the loader that is in effect for the current schema (i.e. the
schema that is first in the search path).
Returns the cursor index into the query string
Retrieves the major version number of the underlying database.
Retrieves the minor version number of the underlying database.
Returns a default connection instance.
Returns the detailed error message
Returns The file where the error occured
Returns the name of the function where the error occured
Returns ResultSet.CLOSE_CURSORS_AT_COMMIT
.
Returns the cursor index into internal query
Returns the internally-generated query
Retrieves the major JDBC version number for this driver.
Retrieves the minor JDBC version number for this driver.
Returns The line where the error occured
Returns the primary error message
ResultSetMetaData is not yet supported.
Returns the metadata for this result set.
DatabaseMetaData is not yet supported.
ResultSetMetaData is not yet supported.
ResultSetMetaData is not yet supported.
Return the name that corresponds to this id.
Returns the name of this Portal.
Returns the name of this Relation
.
Returns the name of the trigger (as declared in the CREATE TRIGGER
statement).
Returns the name of the trigger (as declared in the CREATE TRIGGER
statement).
Returns the native pointer
Returns the ResultSet that represents the new row.
Returns the ResultSet that represents the new row.
Returns a Tuple
reflecting the new version of the row, if
the trigger was fired for an UPDATE
, and null
if it is for an INSERT
or a DELETE
.
get supported escaped numeric functions
Obtains a value from the underlying native HeapTupleHeader
structure.
Obtains a value from the underlying native HeapTuple
structure.
Return an object pool for the given class.
Returns OID of the column type.
Returns the ResultSet that represents the old row.
Returns the ResultSet that represents the old row.
This feature is not yet supported.
Due to the design of the SPI_prepare
, it is currently impossible to
obtain the correct parameter meta data before all the parameters have been
set, hence a ParameterMetaData obtained prior to setting the paramteres
will have all parameters set to the default type Types.VARCHAR
.
Returns ParameterMetaData.parameterModeIn
always since this
is the only supported type at this time.
This feature is not yet supported.
Obtains the "log_min_messages" configuration variable and
translates it into a Level
object.
Returns the value of the portalPos
attribute.
Get the designated column's number of decimal digits.
Returns the value of the global variable SPI_processed
.
Returns a descriptor for the Tuples exposed by this trigger.
getResult() - static method in class org.postgresql.pljava.internal.
SPI Returns the value of the global variable SPI_result
.
An implementation of this method will probably execute a query
and return the result of that query.
Retrieves the default holdability of this ResultSet
object.
Returns a textual representatio of a result code
Returns the errno at entry
Gets the designated column's number of digits to right of the decimal point.
Returns the schema name of this Relation
.
Obtain a loader that has been configured for the class path of the
schema named schemaName
.
Returns the name of the schema of the table for which this trigger was created (as
declared in the CREATE TRIGGER
Get the designated column's table's schema.
Return the id of the session user.
Return the name of the user that owns the current session.
Returns the Tuple
at the given index.
Returns the unencoded ERRSTATE
Indicates whether the SQLSTATEs returned by
SQLException.getSQLState
is X/Open (now known as Open
Group) SQL CLI or SQL99.
Returns the size of the statement cache.
Retrieves a description of the table hierarchies defined in a particular
schema in this database.
Retrieves a description of the user-defined type (UDT) hierarchies
defined in a particular schema in this database.
Returns the name of the table for which this trigger was created (as
declared in the CREATE TRIGGER
Gets the designated column's table name.
Returns Connection.TRANSACTION_READ_COMMITTED
.
Commits the changes made on the ResultSet
representing
new
and returns the native pointer of new tuple.
Returns a Tuple
reflecting the row for which the trigger
was fired.
Creates a tuple from the written values and returns its native pointer.
Creates a tuple from the current row values and then cancel all row
updates to prepare for a new row.
Obtains the TupleDesc that describes the tuple and returns it.
Returns the TupleDesc that describes the row Tuples for this
Portal.
Returns a descriptor that describes tuples in this Relation
.
Returns the value of the global variable SPI_tuptable
.
getTypeId() - static method in class org.postgresql.pljava.internal.
Oid Returns the PostgreSQL type id for the Oid type.
Returns the SQL type
Oid
to Java
Class
map that contains the
Java UDT mappings for the given
schema
.
getUser() - static method in class org.postgresql.pljava.internal.
AclId Return the id of the current database user.
Return the name of the effective user.
Warnings are not yet supported.
This feature is not supported on a ReadOnlyResultSet
.
This feature is not supported on a ReadOnlyResultSet
.
This feature is not supported.
Executes the INSTALL
actions.
Installs a new Jar in the database jar repository under name
jarName
.
Installs a new Jar in the database jar repository under name
jarName
.
INT2 - static field in class org.postgresql.pljava.jdbc.
TypeOid INT4 - static field in class org.postgresql.pljava.jdbc.
TypeOid INT8 - static field in class org.postgresql.pljava.jdbc.
TypeOid Returns the integer value of this id.
Returns the value of the atEnd
attribute.
Returns the value of the atStart
attribute.
Indicates whether the designated column is automatically numbered, thus read-only.
Indicates whether the designated column is automatically numbered, thus read-only.
Indicates whether the designated column is automatically numbered, thus read-only.
Will always return false
since a SingleRowWriter
starts on the one and only row.
Returns true
if the backend is awaiting a return from a
call into the JVM.
Indicates whether a column's case matters.
Will always return false.
Indicates whether the designated column is a cash value.
Indicates whether a write on the designated column will definitely succeed.
Returns true
if the trigger was fired after the statement
or row action that it is associated with.
Returns true
if the trigger was fired after the statement
or row action that it is associated with.
Returns true
if the trigger was fired before the
statement or row action that it is associated with.
Returns true
if the trigger was fired before the
statement or row action that it is associated with.
Returns true
if this trigger was fired by a DELETE
.
Returns true
if this trigger was fired by a DELETE
.
Returns true
if this trigger was fired by an INSERT
.
Returns true
if this trigger was fired by an INSERT
.
Returns true
if this trigger was fired by an UPDATE
.
Returns true
if this trigger was fired by an UPDATE
.
Returns true
if this trigger is fired once for each row
(as opposed to once for the entire statement).
Returns true
if this trigger is fired once for each row
(as opposed to once for the entire statement).
Returns true
if this trigger is fired once for the entire
statement (as opposed to once for each row).
Returns true
if this trigger is fired once for the entire
statement (as opposed to once for each row).
Indicates the nullability of values in the designated column.
Returns true if the error will be reported to the client
Returns true if the error will be reported to the server log
Returns the value of the posOverflow
attribute.
Indicates whether the designated column is definitely not writable.
Returns the value of the GUC custom variable
pljava.release_lingering_savepoints
.
Indicates whether the designated column can be used in a where clause.
Returns true if funcname inclusion is set
Indicates whether values in the designated column are signed numbers.
Returns true if this AclId represents a super user.
Checks if the portal is still active.
Indicates whether it is possible for a write on the designated column to succeed.
The ReadOnlyResultSet implements all methods that changes the ResultSet
in any way as methods that yield an
UnsupportedFeatureException
.
Refresh row is not yet implemented.
A Type well known to PostgreSQL but not known as a standard XOPEN
SQL type can be registered here.
The Relation
correspons to the internal PostgreSQL
Relation
.
Cursor positioning is not supported.
PLJava invokes this method before it ends the life of the
pooled object.
Executes the REMOVE
actions.
Remove an attribute previously stored in the session.
Removes the jar named jarName
from the database jar
repository.
Removes the specified listener
from the list of listeners that will
receive savepoint events.
Removes the specified listener from the list of listeners that will
receive savepoint events.
Removes the specified listener
from the list of listeners that will
receive transactional events.
Removes the specified listener from the list of listeners that will
receive transactional events.
Replaces the image of jar named jarName
in the database
jar repository.
Replaces the image of jar named jarName
in the database
jar repository.
An implementation of this interface is returned from functions and procedures
that are declared to return SET OF
a complex type in the form
of a java.sql.ResultSet
.
An implementation of this interface is returned from functions and procedures
that are declared to return SET OF
a complex type.
It's not legal to do a rollback within a call from SQL.
Will always return false.
Will always return false.
Returns true
if the row contains any non null
values since all values of the row are null
initially.
Returns true
if this row has been updated.
Flag to be passed to
seek(long,int)
denoting that the
offset parameter should be treated relative to the current
address.
Flag to be passed to
seek(long,int)
denoting that the
offset parameter should be treated relative to the end
of the data.
Flag to be passed to
seek(long,int)
denoting that the
offset parameter should be treated as an absolute address.
A Session maintains transaction coordinated in-memory data.
An instance of this interface reflects the current session.
The SessionManager makes the current
Session
available to the
caller.
In this method is not supported by ClobValue
Set an attribute to a value in the current session.
It is assumed that an SPI call is under transaction control.
In this method is not supported by BlobValue
In this method is not supported by BlobValue
In this method is not supported by BlobValue
The catalog name cannot be set.
In this method is not supported by ClobValue
Define the class path to use for Java functions, triggers, and procedures
that are created in the schema named schemaName
This
method is exposed in SQL as
sqlj.set_classpath(VARCHAR, VARCHAR)
.
Only java.sql.ResultSet.FETCH_FORWARD
is supported.
Only ResultSet.FETCH_FORWARD
is supported.
Only permitted value for fetchSize
is 1.
Change of holdability is not supported.
It is assumed that an inserts and updates can be performed using and
SPIConnection.
In this method is not supported by ClobValue
In this method is not supported by ClobValue
Change of transaction isolation level is not supported.
Type map is not yet implemented.
A single row, read-only ResultSet, specially made for functions and
procedures that takes complex types as arguments (PostgreSQL 7.5
and later).
A single row, updateable ResultSet, specially made for functions and
procedures that returns complex types or sets.
Returns the number of columns in this tuple descriptor.
SPI - class org.postgresql.pljava.internal.
SPI The SPI
class provides access to some global
variables used by SPI.
A Read-only ResultSet that provides direct access to a
Portal
.
Implementation of ResultSetMetaData for SPIResultSet
This class deals with parsing and executing the deployment descriptor as
defined in ISO/IEC 9075-13:2003.
Parses the deployment descriptor descImage
using
implementorName
as discriminator for implementor specific
blocks.
The SQLInputToChunk uses JNI to read from memory that has been allocated by
the PostgreSQL backend.
A single row, updateable ResultSet specially made for triggers.
The SQLOutputToChunk uses JNI to build a PostgreSQL StringInfo buffer in
memory.
Helpful utility commands when dealing with JDBC
Retrieves whether auto-generated keys can be retrieved after a statement
has been executed.
Retrieves whether it is possible to have multiple ResultSet
objects returned from a CallableStatement
object
simultaneously.
Retrieves whether this database supports named parameters to callable
statements.
Retrieves whether this database supports the given result set
holdability.
Retrieves whether this database supports savepoints.
Retrieves weather this database supports statement pooling.
A Synthetic ResultSet that provides direct access to data stored
in a java.util.ArrayList
.
Implementation of ResultSetMetaData for SyntheticResultSet
TEXT - static field in class org.postgresql.pljava.jdbc.
TypeOid All native calls synchronize on this object.
TIME - static field in class org.postgresql.pljava.jdbc.
TypeOid Returns the result of calling #getName().
Returns a string representation of this OID.
Returns the original image.
A TransactionalMap acts as a modifiable front for a backing map.
The SQL 2003 spec. does not stipulate a standard way of mapping
triggers to functions.
The TriggerData
correspons to the internal PostgreSQL TriggerData
.
An exception specially suited to be thrown from within a method
designated to be a trigger function.
Create an exception based on the TriggerData
that was
passed to the trigger method.
Create an exception based on the TriggerData
that was
passed to the trigger method and an additional message.
A single row, updateable ResultSet specially made for triggers.
In this method is not supported by BlobValue
In this method is not supported by ClobValue
Tuple - class org.postgresql.pljava.internal.
Tuple The Tuple
correspons to the internal PostgreSQL
HeapTuple
.
The TupleDesc
correspons to the internal PostgreSQL
TupleDesc
.
The SPITupleTable
correspons to the internal PostgreSQL
SPITupleTable
type.
Provides constants for well-known backend OIDs for the types we commonly
use.