|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.model.datatype.DataType
javax.rad.model.datatype.BigDecimalDataType
public class BigDecimalDataType
A BigDecimalDataType is the data type class for a
BigDecimal column.
It stores type specific informations like precision and scale.
| Field Summary | |
|---|---|
static int |
TYPE_IDENTIFIER
the type identifier. |
| Constructor Summary | |
|---|---|
BigDecimalDataType()
|
|
| Method Summary | |
|---|---|
BigDecimalDataType |
clone()
Clone an IDataType. |
BigDecimal |
convertAndCheckToTypeClass(Object pObject)
Converts the oObject to an Object which is an instance of the class
which is handled by IDataType. |
String |
convertToString(Object pObject)
Converts the oObject into a String which represents the
Object. |
Object |
convertToTypeClass(Object pObject)
Converts the oObject to an Object which is an instance of
the class which is handled by IDataType. |
String |
getNumberFormat()
Returns the current NumberFormat. |
int |
getPrecision()
Returns the precision of the BigDecimalDataType. |
int |
getScale()
Returns the scale of the BigDecimalDataType. |
int |
getSize()
Returns the size of the DataType. |
Class |
getTypeClass()
Returns the class of the Object's handled by IDataType. |
int |
getTypeIdentifier()
Gets the data type identifier. |
boolean |
isSigned()
Returns if the BigDecimalDataType is signed. |
void |
setNumberFormat(String pNumberFormat)
Sets the current NumberFormat. |
void |
setPrecision(int pPrecision)
Sets the precision of the BigDecimalDataType. |
void |
setScale(int pScale)
Sets the scale of the BigDecimalDataType. |
void |
setSigned(boolean pSigned)
Sets if the BigDecimalDataType is signed. |
| Methods inherited from class javax.rad.model.datatype.DataType |
|---|
compareTo, getCellEditor, getCellRenderer, hashCode, setCellEditor, setCellRenderer, setSize |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_IDENTIFIER
| Constructor Detail |
|---|
public BigDecimalDataType()
| Method Detail |
|---|
public int getTypeIdentifier()
public Class getTypeClass()
Object's handled by IDataType.
Object's handled by IDataType.public String convertToString(Object pObject)
String which represents the
Object.
pObject - the source Object to convert
String representation of the source Object
public Object convertToTypeClass(Object pObject)
throws ModelException
Object which is an instance of
the class which is handled by IDataType.
pObject - the source Object to convert
Object that is instance of the class which is
handled by IDataType.
ModelException - if the class/type of oObject is not supported
public BigDecimal convertAndCheckToTypeClass(Object pObject)
throws ModelException
Object which is an instance of the class
which is handled by IDataType. The resulting Object is
also checked against the type attributes like size, precision,...
pObject - the source Object to convert
Object that is instance of the class which is
handled by IDataType.
ModelException - if the Object is outside the limits of the
DataType attributespublic int getSize()
getSize in class DataTypepublic BigDecimalDataType clone()
IDataType.
clone in interface IDataTypeclone in class DataTypeIDataTypeObject.clone()public int getPrecision()
BigDecimalDataType.
BigDecimalDataType.public void setPrecision(int pPrecision)
BigDecimalDataType.
pPrecision - the precision of the BigDecimalDataType.public int getScale()
BigDecimalDataType.
BigDecimalDataType.public void setScale(int pScale)
BigDecimalDataType.
pScale - the scale of the BigDecimalDataType.public boolean isSigned()
BigDecimalDataType is signed.
BigDecimalDataType is signed.public void setSigned(boolean pSigned)
BigDecimalDataType is signed.
pSigned - the signed value of the BigDecimalDataType.public String getNumberFormat()
NumberFormat.
NumberFormat.public void setNumberFormat(String pNumberFormat)
NumberFormat.
pNumberFormat - the new NumberFormat.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||