|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.database.Field | +--planetj.database.field.StringOrNumberField | +--planetj.database.field.NumberField | +--planetj.database.field.BigDecimalField
Nested Class Summary |
Nested classes inherited from class planetj.database.Field |
Field.FieldLocation |
Field Summary |
Fields inherited from interface planetj.dataengine.security.IGuarded |
TYPE_ID_UNKNOWN, TYPE_NAME_FIELD, TYPE_NAME_SQLOPERATION, TYPE_SECURED_BY_LEVEL, TYPE_SECURED_BY_OPERATION, TYPE_UNSECURED |
Constructor Summary | |
BigDecimalField()
|
Method Summary | |
Object |
createObject(String pStringValue)
Create an object for this Field type using the given String. |
String |
getCSVField()
Returns the String value of the Object, that will be written to the CSV file. |
String |
getExternalValidationKey()
Get the key that may be used to uniquely identify Field subclasses for external validation. |
int |
getMaxLength()
Returns the max length of this field. |
String |
getSQLValue(boolean pUseOriginalValue)
Returns the Field's name and value in SQL format. |
String |
getValidationInvalidValueString()
Gets the long description of why this field's value is invalid and possible actions or examples we could put in this field. |
boolean |
isIntegersOnly()
Test if this field can only contain integer values |
boolean |
isValidValue(ExecutingContext ec)
Validate this Field value. |
void |
setValue(Object value)
Sets the current value of the Field to the specified value, and also sets the old value to the previous value. |
Methods inherited from class planetj.database.field.NumberField |
getDisplayValue, getValueAsBigDecimal, getValueAsBoolean, isNumeric, isString, isValidLength, isValueEqual, isValueGreaterThan, isValueLessThan |
Methods inherited from class planetj.database.field.StringOrNumberField |
getCopiedValue, getDefaultDatabaseValue |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BigDecimalField()
Method Detail |
public Object createObject(String pStringValue) throws NumberFormatException
createObject
in class StringOrNumberField
pStringValue
- String
NumberFormatException
public String getCSVField()
Character string in the format >>>>>>>>>>>9.99 where > means to suppress leading zeros and 9 means to always display a value, even if it is zero. The string is not enclosed by double quotation marks.
In a CMException was thrown, or there were problems, then [Invalid Field] will be returned Creation date: (4/22/2002 2:28:37 PM)
getCSVField
in interface ICSVField
getCSVField
in class Field
public String getExternalValidationKey()
getExternalValidationKey
in class NumberField
public int getMaxLength() throws CMException
getMaxLength
in class Field
CMException
public String getSQLValue(boolean pUseOriginalValue) throws CMException
This must check to see if we are using a BigDecimal for the value and ensure the number of digits after the decimal plase is valid
getSQLValue
in class StringOrNumberField
pUseOriginalValue
-
CMException
public String getValidationInvalidValueString() throws CMException
getValidationInvalidValueString
in class Field
CMException
public boolean isIntegersOnly()
isIntegersOnly
in class NumberField
public boolean isValidValue(ExecutingContext ec)
isValidValue
in class NumberField
public void setValue(Object value) throws CMException
NumberField
setValue
in class NumberField
value
-
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |