|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.ds.fw.types.FwSimpleObject
|
+--com.ds.fw.types.FwValue
| Field Summary | |
int |
type
|
java.lang.Object |
value
|
| Constructor Summary | |
FwValue()
|
|
FwValue(java.lang.Object o,
int t)
|
|
| Method Summary | |
java.lang.Object |
clone()
|
java.lang.Object |
get()
Gets the value of the field value of this FwDBField |
java.lang.Number |
getBigDecimal()
Gets the value of the field value as BigDecimal |
java.util.Date |
getDate()
Gets the value of the field value as java.util.Date |
java.lang.Double |
getDouble()
Gets the value of the field value as Double |
java.lang.Float |
getFloat()
Gets the value of the field value as Float |
int |
getInt()
Gets the value of the field value as int |
long |
getLong()
Gets the value of the field value as long |
java.lang.Number |
getNumber()
Gets the value of the field value as Number |
java.lang.String |
getString()
Gets the value of the field value as String |
int |
getType()
|
void |
set(java.lang.Object o)
Sets the value of the field value with new one |
void |
setBigDecimal(java.math.BigDecimal bd)
Sets the value of the field value with new one |
void |
setDate(java.util.Date date)
Sets the value of the field value with new one |
void |
setDouble(double i)
Sets the value of the field value with new one (as double) |
void |
setFloat(float i)
Sets the value of the field value with new one (which is a float) |
void |
setInt(int i)
Sets the value of the field value with new one (which is an int) |
void |
setLong(long i)
Sets the value of the field value with new one |
void |
setNumber(java.lang.Number n)
Sets the value of the field value with new one |
void |
setObject(java.lang.Object o)
|
void |
setObject1(java.lang.Object o)
|
void |
setString(java.lang.String s)
Sets the value of the field value with new one |
void |
setType(int n)
|
java.lang.String |
toString()
Gets the value of the field value as String |
| Methods inherited from class com.ds.fw.types.FwSimpleObject |
getClassName, getClone, getCopy, getCopy, getDeepCopy, getDisplayString, getDisplayStringFor, postCopy, printStackTrace, toStringValue |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int type
public java.lang.Object value
| Constructor Detail |
public FwValue()
public FwValue(java.lang.Object o,
int t)
| Method Detail |
public java.lang.Object clone()
clone in class java.lang.Objectpublic void setType(int n)
public int getType()
public java.lang.Object get()
public void set(java.lang.Object o)
o - - the new valuepublic void setObject(java.lang.Object o)
public void setObject1(java.lang.Object o)
public java.lang.String getString()
public java.lang.String toString()
toString in interface FwSimpleObjectIFtoString in class FwSimpleObjectpublic void setString(java.lang.String s)
s - - the new value
public int getInt()
throws java.lang.ClassCastException,
java.lang.NullPointerException
java.lang.ClassCastException - - if the value of the field value does not represent an Integer object
java.lang.NullPointerExceptionpublic void setInt(int i)
i - - the new value
public java.lang.Float getFloat()
throws java.lang.ClassCastException
java.lang.ClassCastException - if the value of the field value does not represent a Float objectpublic void setFloat(float i)
i - - the new value
public java.lang.Double getDouble()
throws java.lang.ClassCastException
java.lang.ClassCastException - if the value of the field value does not represent a Double object.public void setDouble(double i)
i - the new value
public java.util.Date getDate()
throws java.lang.ClassCastException
java.lang.ClassCastException - - if the value of the field value does not represent a java.util.Date object
(cannot be cast to java.util.Date object)public void setDate(java.util.Date date)
date - - the new value
public long getLong()
throws java.lang.ClassCastException
java.lang.ClassCastException - if the field value cannot be cast to Long objectpublic void setLong(long i)
i - - the new value
public java.lang.Number getNumber()
throws java.lang.ClassCastException
java.lang.ClassCastException - if the field value cannot be cast to Number objectpublic void setNumber(java.lang.Number n)
n - - the new value
public java.lang.Number getBigDecimal()
throws java.lang.ClassCastException
java.lang.ClassCastException - if the field value cannot be cast to BigDecimal objectpublic void setBigDecimal(java.math.BigDecimal bd)
bd - - the new value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||