|
|||||||||
| Home >> All >> postgresql >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
postgresql.util
Class PGobject

java.lang.Objectpostgresql.util.PGobject
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- Direct Known Subclasses:
- PGmoney
- public class PGobject
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Cloneable
- extends java.lang.Object
postgresql.PG_Object is a class used to describe unknown types An unknown type is any type that is unknown by JDBC Standards
As of PostgreSQL 6.3, this allows user code to add their own handlers via a call to postgresql.Connection. These handlers must extend this class.
| Field Summary | |
protected java.lang.String |
type
|
protected java.lang.String |
value
|
| Constructor Summary | |
PGobject()
This is called by postgresql.Connection.getObject() to create the object. |
|
| Method Summary | |
java.lang.Object |
clone()
This must be overidden to allow the object to be cloned |
boolean |
equals(java.lang.Object obj)
This must be overidden to allow comparisons of objects |
java.lang.String |
getType()
As this cannot change during the life of the object, it's final. |
java.lang.String |
getValue()
This must be overidden, to return the value of the object, in the form required by postgresql. |
void |
setType(java.lang.String type)
This method sets the type of this object. |
void |
setValue(java.lang.String value)
This method sets the value of this object. |
java.lang.String |
toString()
This is defined here, so user code need not overide it. |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
type
protected java.lang.String type
value
protected java.lang.String value
| Constructor Detail |
PGobject
public PGobject()
- This is called by postgresql.Connection.getObject() to create the
object.
| Method Detail |
setType
public final void setType(java.lang.String type)
- This method sets the type of this object.
It should not be extended by subclasses, hence its final
setValue
public void setValue(java.lang.String value) throws java.sql.SQLException
- This method sets the value of this object. It must be overidden.
getType
public final java.lang.String getType()
- As this cannot change during the life of the object, it's final.
getValue
public java.lang.String getValue()
- This must be overidden, to return the value of the object, in the
form required by postgresql.
equals
public boolean equals(java.lang.Object obj)
- This must be overidden to allow comparisons of objects
clone
public java.lang.Object clone()
- This must be overidden to allow the object to be cloned
toString
public java.lang.String toString()
- This is defined here, so user code need not overide it.
|
|||||||||
| Home >> All >> postgresql >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
postgresql.util.PGobject