Statement class can equally be used.)
-PreparedStatement ps = con.prepareStatement("SELECT oid FROM images WHERE name=?");
+PreparedStatement ps = con.prepareStatement("SELECT imgoid FROM images WHERE imgname=?");
ps.setString(1, "myimage.gif");
ResultSet rs = ps.executeQuery();
if (rs != null) {
while(rs.next()) {
- InputStream is = rs.getBinaryInputStream(1);
+ InputStream is = rs.getBinaryStream(1);
// use the stream in some way here
is.close();
}
This is the center point
-public double radius
+ double radius
This is the radius
-public void read(byte buf[],
+public int read(byte buf[],
int off,
int len) throws SQLException
Constructors
- public Serialize(Connection c,
+ public Serialize(org.postgresql.Connection c,
String type) throws SQLException
This creates an instance that can be used to serialize
Throws: SQLException
on error
- public static void create(Connection con,
+ public static void create(org.postgresql.Connection con,
Object o) throws SQLException
This method is not used by the driver, but it creates a
Throws: SQLException
on error
- public static void create(Connection con,
+ public static void create(org.postgresql.Connection con,
Object o) throws SQLException
This method is not used by the driver, but it creates a
Contains static methods to encrypt and compare passwords with Unix
encrypted passwords.
- See John Dumas's Java Crypt page for the original source.
+ See John Dumas's Java Crypt page for the original source.
- http://www.zeh.com/local/jfd/crypt.html
+ (Invalid URL) http://www.zeh.com/local/jfd/crypt.html
Methods