public class PGmoney extends PGobject implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
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(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.
|
public PGmoney(double value)
value
- of fieldpublic PGmoney(String value) throws SQLException
SQLException
public PGmoney()
public void setValue(String s) throws SQLException
PGobject
setValue
in class PGobject
s
- a string representation of the value of the objectSQLException
- thrown if value is invalid for this typepublic int hashCode()
PGobject
hashCode
in class PGobject
Objects.hashCode(Object)
public boolean equals(Object obj)
PGobject
public String getValue()
PGobject
public Object clone() throws CloneNotSupportedException
PGobject
clone
in class PGobject
CloneNotSupportedException
Copyright © 2019 PostgreSQL Global Development Group. All rights reserved.