public class RedshiftMoney extends RedshiftObject implements Serializable, Cloneable
| Modifier and Type | Field and Description |
|---|---|
double |
val |
type, value| Constructor and Description |
|---|
RedshiftMoney() |
RedshiftMoney(double value) |
RedshiftMoney(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
com.amazon.redshift.
|
int |
hashCode()
Compute hash.
|
void |
setValue(String s)
This method sets the value of this object.
|
getType, setType, toStringpublic RedshiftMoney(double value)
value - of fieldpublic RedshiftMoney(String value) throws SQLException
SQLExceptionpublic RedshiftMoney()
public void setValue(String s) throws SQLException
RedshiftObjectsetValue in class RedshiftObjects - a string representation of the value of the objectSQLException - thrown if value is invalid for this typepublic int hashCode()
RedshiftObjecthashCode in class RedshiftObjectObjects.hashCode(Object)public boolean equals(Object obj)
RedshiftObjectequals in class RedshiftObjectobj - Object to compare withpublic String getValue()
RedshiftObjectgetValue in class RedshiftObjectpublic Object clone() throws CloneNotSupportedException
RedshiftObjectclone in class RedshiftObjectCloneNotSupportedExceptionCopyright © 2024 Amazon.com Inc.. All rights reserved.