All Packages  Class Hierarchy

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Index of all Fields and Methods

A

acceptsURL(String). Method in class postgresql.Driver
Returns true if the driver thinks it can open a connection to the given URL.
addDataType(String, String). Method in class postgresql.Connection
This allows client code to add a handler for one of postgresql's more unique data types.
addFunction(String, int). Method in class postgresql.fastpath.Fastpath
This adds a function to our lookup table.
addFunctions(ResultSet). Method in class postgresql.fastpath.Fastpath
This takes a ResultSet containing two columns.
addWarning(String). Method in class postgresql.Connection
This adds a warning to the warning chain.
append(ResultSet). Method in class postgresql.ResultSet
This following method allows us to add a ResultSet object to the end of the current chain.
autoCommit. Variable in class postgresql.Connection

B

bytes. Variable in class postgresql.fastpath.FastpathArg
Byte value if type=false;

C

close(). Method in class postgresql.largeobject.LargeObject
This method closes the object.
close(). Method in class postgresql.PG_Stream
Closes the connection
close(). Method in class postgresql.ResultSet
This is part of the JDBC API, but is required by postgresql.Field
connect(String, Properties). Method in class postgresql.Driver
Try to make a database connection to the given URL.
Connection(). Constructor for class postgresql.Connection
This is called by Class.forName() from within postgresql.Driver
CONNECTION_BAD. Variable in class postgresql.Connection
CONNECTION_OK. Variable in class postgresql.Connection
create(). Method in class postgresql.largeobject.LargeObjectManager
This creates a large object, returning its OID.
create(int). Method in class postgresql.largeobject.LargeObjectManager
This creates a large object, returning its OID
createStatement(). Method in class postgresql.Connection

D

database(). Method in class postgresql.Driver
delete(int). Method in class postgresql.largeobject.LargeObjectManager
This deletes a large object.
Driver(). Constructor for class postgresql.Driver
Construct a new driver and register it with DriverManager

E

ExecSQL(String). Method in class postgresql.Connection
Send a query to the backend.

F

Fastpath(Connection, PG_Stream). Constructor for class postgresql.fastpath.Fastpath
Initialises the fastpath system

Important Notice
This is called from postgresql.Connection, and should not be called from client code.

fastpath(int, boolean, FastpathArg[]). Method in class postgresql.fastpath.Fastpath
Send a function call to the PostgreSQL backend
fastpath(String, boolean, FastpathArg[]). Method in class postgresql.fastpath.Fastpath
Send a function call to the PostgreSQL backend by name.
FastpathArg(byte[]). Constructor for class postgresql.fastpath.FastpathArg
Constructs an argument that consists of an array of bytes
FastpathArg(byte[], int, int). Constructor for class postgresql.fastpath.FastpathArg
Constructs an argument that consists of part of a byte array
FastpathArg(int). Constructor for class postgresql.fastpath.FastpathArg
Constructs an argument that consists of an integer value
FastpathArg(String). Constructor for class postgresql.fastpath.FastpathArg
Constructs an argument that consists of a String.
Field(Connection, String, int, int). Constructor for class postgresql.Field
Construct a field based on the information fed to it.
fieldCache. Variable in class postgresql.Connection
firstWarning. Variable in class postgresql.Connection
flush(). Method in class postgresql.PG_Stream
This flushes any pending output to the backend.

G

getColumnCount(). Method in class postgresql.ResultSet
getColumnCount returns the number of columns
getColumnOID(int). Method in class postgresql.ResultSet
returns the OID of a field.

It is used internally by the driver.

getCursorName(). Method in class postgresql.Connection
getCursorName gets the cursor name.
getData(String, FastpathArg[]). Method in class postgresql.fastpath.Fastpath
This convenience method assumes that the return value is an Integer
getFastpathAPI(). Method in class postgresql.Connection
This returns the Fastpath API for the current connection.
getID(String). Method in class postgresql.fastpath.Fastpath
This returns the function id associated by its name

If addFunction() or addFunctions() have not been called for this name, then an SQLException is thrown.

getInputStream(). Method in class postgresql.largeobject.LargeObject
Returns an InputStream from this object.
getInteger(String, FastpathArg[]). Method in class postgresql.fastpath.Fastpath
This convenience method assumes that the return value is an Integer
getLargeObjectAPI(). Method in class postgresql.Connection
This returns the LargeObject API for the current connection.
getMajorVersion(). Method in class postgresql.Driver
Gets the drivers major version number
getMinorVersion(). Method in class postgresql.Driver
Get the drivers minor version number
getNext(). Method in class postgresql.ResultSet
Since ResultSets can be chained, we need some method of finding the next one in the chain.
getObject(String, String). Method in class postgresql.Connection
This method is used internally to return an object based around postgresql's more unique data types.
getOID(). Method in class postgresql.Field
getOID(). Method in class postgresql.largeobject.LargeObject
getOutputStream(). Method in class postgresql.largeobject.LargeObject
Returns an OutputStream to this object

This OutputStream can then be used in any method that requires an OutputStream.

getPropertyInfo(String, Properties). Method in class postgresql.Driver
The getPropertyInfo method is intended to allow a generic GUI tool to discover what properties it should prompt a human for in order to get enough information to connect to a database.
getResultCount(). Method in class postgresql.ResultSet
If we are just a place holder for results, we still need to get an updateCount.
getSQLType(). Method in class postgresql.Field
the ResultSet and ResultMetaData both need to handle the SQL type, which is gained from another query.
getSQLType(String). Static method in class postgresql.Field
This returns the SQL type.
getStatusString(). Method in class postgresql.ResultSet
Returns the status message from the backend.

It is used internally by the driver.

getString(int). Method in class postgresql.ResultSet
getTupleCount(). Method in class postgresql.ResultSet
We also need to provide a couple of auxiliary functions for the implementation of the ResultMetaData functions.
getTypeName(). Method in class postgresql.Field
We also need to get the type name as returned by the back end.
getURL(). Method in class postgresql.Connection
We are required to bring back certain information by the DatabaseMetaData class.
getUserName(). Method in class postgresql.Connection
Method getUserName() brings back the User Name (again, we saved it)

H

host(). Method in class postgresql.Driver

J

jdbcCompliant(). Method in class postgresql.Driver
Report whether the driver is a genuine JDBC compliant driver.

L

LargeObjectManager(Connection). Constructor for class postgresql.largeobject.LargeObjectManager
Constructs the LargeObject API.
length. Variable in class postgresql.Field

M

maxrows. Variable in class postgresql.Connection

N

name. Variable in class postgresql.Field
next(). Method in class postgresql.ResultSet
notImplemented(). Static method in class postgresql.Driver
This method was added in v6.5, and simply throws an SQLException for an unimplemented method.

O

oid. Variable in class postgresql.Field
open(int). Method in class postgresql.largeobject.LargeObjectManager
This opens an existing large object, based on its OID.
open(int, int). Method in class postgresql.largeobject.LargeObjectManager
This opens an existing large object, based on its OID

P

pg_stream. Variable in class postgresql.Connection
PG_Stream(String, int). Constructor for class postgresql.PG_Stream
Constructor: Connect to the PostgreSQL back end and return a stream connection.
port(). Method in class postgresql.Driver
property(String). Method in class postgresql.Driver
putObject(Object). Method in class postgresql.Connection
This stores an object into the database.

R

READ. Static variable in class postgresql.largeobject.LargeObjectManager
This mode indicates we want to read an object
read(byte[], int, int). Method in class postgresql.largeobject.LargeObject
Reads some data from the object into an existing array
read(int). Method in class postgresql.largeobject.LargeObject
Reads some data from the object, and return as a byte[] array
readOnly. Variable in class postgresql.Connection
READWRITE. Static variable in class postgresql.largeobject.LargeObjectManager
This mode is the default.
reallyResultSet(). Method in class postgresql.ResultSet
We at times need to know if the resultSet we are working with is the result of an UPDATE, DELETE or INSERT (in which case, we only have a row count), or of a SELECT operation (in which case, we have multiple fields) - this routine tells us.
Receive(byte[], int, int). Method in class postgresql.PG_Stream
Reads in a given number of bytes from the backend
ReceiveChar(). Method in class postgresql.PG_Stream
Receives a single character from the backend
ReceiveInteger(int). Method in class postgresql.PG_Stream
Receives an integer from the backend
ReceiveIntegerR(int). Method in class postgresql.PG_Stream
Receives an integer from the backend
ReceiveString(int). Method in class postgresql.PG_Stream
Receives a null-terminated string from the backend.
ReceiveTuple(int, boolean). Method in class postgresql.PG_Stream
Read a tuple from the back end.
ResultSet(Connection, Field[], Vector, String, int). Constructor for class postgresql.ResultSet
Create a new ResultSet - Note that we create ResultSets to represent the results of everything.

S

seek(int). Method in class postgresql.largeobject.LargeObject
Sets the current position within the object.
seek(int, int). Method in class postgresql.largeobject.LargeObject
Sets the current position within the object.
SEEK_CUR. Static variable in class postgresql.largeobject.LargeObject
Indicates a seek from the current position
SEEK_END. Static variable in class postgresql.largeobject.LargeObject
Indicates a seek from the end of a file
SEEK_SET. Static variable in class postgresql.largeobject.LargeObject
Indicates a seek from the begining of a file
Send(byte[]). Method in class postgresql.PG_Stream
Send an array of bytes to the backend
Send(byte[], int). Method in class postgresql.PG_Stream
Send an exact array of bytes to the backend - if the length has not been reached, send nulls until it has.
Send(byte[], int, int). Method in class postgresql.PG_Stream
Send an exact array of bytes to the backend - if the length has not been reached, send nulls until it has.
SendChar(int). Method in class postgresql.PG_Stream
Sends a single character to the back end
SendInteger(int, int). Method in class postgresql.PG_Stream
Sends an integer to the back end
SendIntegerReverse(int, int). Method in class postgresql.PG_Stream
Sends an integer to the back end in reverse order.
SendPacket(byte[]). Method in class postgresql.PG_Stream
Sends a packet, prefixed with the packet's length
setCursorName(String). Method in class postgresql.Connection
In SQL, a result table can be retrieved through a cursor that is named.
size(). Method in class postgresql.largeobject.LargeObject
This method is inefficient, as the only way to find out the size of the object is to seek to the end, record the current position, then return to the original position.
sql_type. Variable in class postgresql.Field

T

tell(). Method in class postgresql.largeobject.LargeObject
this_driver. Variable in class postgresql.Connection
type. Variable in class postgresql.fastpath.FastpathArg
Type of argument, true=integer, false=byte[]
type_name. Variable in class postgresql.Field

U

unlink(int). Method in class postgresql.largeobject.LargeObjectManager
This deletes a large object.

V

value. Variable in class postgresql.fastpath.FastpathArg
Integer value if type=true

W

WRITE. Static variable in class postgresql.largeobject.LargeObjectManager
This mode indicates we want to write to an object
write(byte[]). Method in class postgresql.largeobject.LargeObject
Writes an array to the object
write(byte[], int, int). Method in class postgresql.largeobject.LargeObject
Writes some data from an array to the object