<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/Attic/jdbc.sgml,v 1.23 2001/09/12 15:49:10 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/Attic/jdbc.sgml,v 1.24 2001/09/12 15:55:00 momjian Exp $
-->
<chapter id="jdbc">
obj - Object to compare with
Returns:
- true if the two boxes are identical
+ true if the two circles are identical
Overrides:
equals in class PGobject
public PGline(String s) throws SQLException
Parameters:
- s - definition of the circle in PostgreSQL's syntax.
+ s - definition of the line in PostgreSQL's syntax.
Throws: SQLException
on conversion failure
obj - Object to compare with
Returns:
- true if the two boxes are identical
+ true if the two lines are identical
Overrides:
equals in class PGobject
public PGlseg(String s) throws SQLException
Parameters:
- s - definition of the circle in PostgreSQL's syntax.
+ s - Definition of the line segment in PostgreSQL's syntax.
Throws: SQLException
on conversion failure
obj - Object to compare with
Returns:
- true if the two boxes are identical
+ true if the two line segments are identical
Overrides:
equals in class PGobject
public PGpath(String s) throws SQLException
Parameters:
- s - definition of the circle in PostgreSQL's syntax.
+ s - definition of the path in PostgreSQL's syntax.
Throws: SQLException
on conversion failure
obj - Object to compare with
Returns:
- true if the two boxes are identical
+ true if the two pathes are identical
Overrides:
equals in class PGobject
public String getValue()
- This returns the polygon in the syntax expected by
+ This returns the path in the syntax expected by
<productname>PostgreSQL</productname>
Overrides:
obj - Object to compare with
Returns:
- true if the two boxes are identical
+ true if the two points are identical
Overrides:
equals in class PGobject
public PGpolygon(String s) throws SQLException
Parameters:
- s - definition of the circle in PostgreSQL's syntax.
+ s - definition of the polygon in PostgreSQL's syntax.
Throws: SQLException
on conversion failure
obj - Object to compare with
Returns:
- true if the two boxes are identical
+ true if the two polygons are identical
Overrides:
equals in class PGobject
Throws: SQLException
on error
- Returns:
- Object relating to oid
-
- Throws: SQLException
- on error
-
- public int store(Object o) throws SQLException
-
- This stores an object into a table, returning it's OID.
-
- If the object has an int called OID, and it is > 0, then
-that value is used for the OID, and the table will be updated. If the
-value of OID is 0, then a new row will be created, and the value of
-OID will be set in the object. This enables an object's value in the
-database to be updateable. If the object has no int called OID, then
-the object is stored. However if the object is later retrieved,
-amended and stored again, it's new state will be appended to the
-table, and will not overwrite the old entries.
-
- Parameters:
- o - Object to store (must implement Serializable)
-
- Returns:
- oid of stored object
-
- Throws: SQLException
- on error
-
public static void create(org.postgresql.Connection con,
- Object o) throws SQLException
-
- This method is not used by the driver, but it creates a
-table, given a Serializable Java Object. It should be used before
-serializing any objects.
-
- Parameters:
- c - Connection to database
- o - Object to base table on
-
- Throws: SQLException
- on error
-
- public static void create(Connection con,
Class c) throws SQLException
This method is not used by the driver, but it creates a
public PGmoney(String value) throws SQLException
- This is called mainly from the other geometric types, when a
-point is imbeded within their definition.
+ Create a money.
Parameters:
- value - Definition of this point in PostgreSQL's
+ value - Definition of this money in PostgreSQL's
syntax
public PGmoney()
public void setValue(String s) throws SQLException
Parameters:
- s - Definition of this point in PostgreSQL's syntax
+ s - Definition of this money in PostgreSQL's syntax
Throws: SQLException
on conversion failure
obj - Object to compare with
Returns:
- true if the two boxes are identical
+ true if the two moneys are identical
Overrides:
equals in class PGobject
public String getValue()
Returns:
- the PGpoint in the syntax expected by <productname>PostgreSQL</productname>
+ the PGmoney in the syntax expected by <productname>PostgreSQL</productname>
Overrides:
getValue in class PGobject
obj - Object to compare with
Returns:
- true if the two boxes are identical
+ true if the two objects are identical
Overrides:
equals in class Object
Removes ( and ) from the beginning and end of all tokens
- Returns:
- String without the ( or )
-
public static String removeBox(String s)
Removes [ and ] from the beginning and end of a string
Removes [ and ] from the beginning and end of all tokens
- Returns:
- String without the [ or ]
-
public static String removeAngle(String s)
Removes < and > from the beginning and end of a string
Removes < and > from the beginning and end of all tokens
- Returns:
- String without the < or >
-
<!-- **************************************************************** -->
Class org.postgresql.util.Serialize