|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.postgresql.util.PGobject
org.postgresql.util.PGmoney
public class PGmoney
This implements a class that handles the PostgreSQL money and cash types
Field Summary | |
---|---|
double |
val
|
Fields inherited from class org.postgresql.util.PGobject |
---|
type, value |
Constructor Summary | |
---|---|
PGmoney()
|
|
PGmoney(double value)
|
|
PGmoney(String value)
|
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 |
getValue()
This must be overidden, to return the value of the object, in the form required by org.postgresql. |
int |
hashCode()
Compute hash. |
void |
setValue(String s)
This method sets the value of this object. |
Methods inherited from class org.postgresql.util.PGobject |
---|
getType, setType, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double val
Constructor Detail |
---|
public PGmoney(double value)
value
- of fieldpublic PGmoney(String value) throws SQLException
SQLException
public PGmoney()
Method Detail |
---|
public void setValue(String s) throws SQLException
PGobject
setValue
in class PGobject
s
- a string representation of the value of the object
SQLException
- thrown if value is invalid for this typepublic int hashCode()
PGobject
hashCode
in class PGobject
Objects
public boolean equals(Object obj)
PGobject
equals
in class PGobject
obj
- Object to compare with
public String getValue()
PGobject
getValue
in class PGobject
public Object clone() throws CloneNotSupportedException
PGobject
clone
in class PGobject
CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |