|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.postgresql.util.PGobject
public class PGobject
PGobject is a class used to describe unknown types An unknown type is any type that is unknown by JDBC Standards
Field Summary | |
---|---|
protected String |
type
|
protected String |
value
|
Constructor Summary | |
---|---|
PGobject()
This is called by org.postgresql.Connection.getObject() to create the object. |
Method Summary | |
---|---|
Object |
clone()
This must be overidden to allow the object to be cloned |
boolean |
equals(Object obj)
This must be overidden to allow comparisons of objects |
String |
getType()
As this cannot change during the life of the object, it's final. |
String |
getValue()
This must be overidden, to return the value of the object, in the form required by org.postgresql. |
int |
hashCode()
Compute hash. |
void |
setType(String type)
This method sets the type of this object. |
void |
setValue(String value)
This method sets the value of this object. |
String |
toString()
This is defined here, so user code need not overide it. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String type
protected String value
Constructor Detail |
---|
public PGobject()
Method Detail |
---|
public final void setType(String type)
It should not be extended by subclasses, hence its final
type
- a string describing the type of the objectpublic void setValue(String value) throws SQLException
value
- a string representation of the value of the object
SQLException
- thrown if value is invalid for this typepublic final String getType()
public String getValue()
public boolean equals(Object obj)
equals
in class Object
obj
- Object to compare with
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
Objects
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |