public class PGmoney extends PGobject implements Serializable, Cloneable
| Modifier and Type | Field and Description |
|---|---|
boolean |
isNull
If the object represents
null::money |
double |
val |
| Constructor and Description |
|---|
PGmoney() |
PGmoney(double value) |
PGmoney(String value) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
This must be overidden to allow the object to be cloned.
|
boolean |
equals(@Nullable Object obj)
This must be overidden to allow comparisons of objects.
|
@Nullable 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(@Nullable String s)
This method sets the value of this object.
|
public double val
public boolean isNull
null::moneypublic PGmoney(double value)
value - of fieldpublic PGmoney(String value) throws SQLException
SQLExceptionpublic PGmoney()
public void setValue(@Nullable String s) throws SQLException
PGobjectsetValue in class PGobjects - a string representation of the value of the objectSQLException - thrown if value is invalid for this typepublic int hashCode()
PGobjecthashCode in class PGobjectObjects.hashCode(Object)public boolean equals(@Nullable Object obj)
PGobjectpublic @Nullable String getValue()
PGobjectpublic Object clone() throws CloneNotSupportedException
PGobjectclone in class PGobjectCloneNotSupportedExceptionCopyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.