|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.database.Field
planetj.database.field.StringOrNumberField
planetj.database.field.NumberField
Nested Class Summary |
Nested classes inherited from class planetj.database.Field |
Field.FieldLocation |
Field Summary |
Fields inherited from class planetj.database.Field |
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_UNKNOWN |
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 | |
NumberField()
|
Method Summary | |
java.lang.String |
getDisplayValue()
Returns the display value of this Field as a String. |
java.lang.String |
getDisplayValue(java.lang.Object value)
Returns the display value of this Field as a String. |
java.lang.String |
getExternalValidationKey()
Get the key that may be used to uniquely identify Field subclasses for external validation. |
short |
getScale()
Convience method to get this Field's scale if it has one. |
java.math.BigDecimal |
getValueAsBigDecimal()
Returns a BigDecimal value. |
boolean |
getValueAsBoolean()
Subclasses must override this to detirmine what their boolean value is. |
boolean |
hasScale()
Convience method to check to see if the number field has a scale (i.e. |
abstract boolean |
isIntegersOnly()
Test if this field can only contain integer values |
boolean |
isNumeric()
This is a Number field. |
boolean |
isString()
This is not a String field. |
boolean |
isValidLength(ExecutingContext ec)
Tests if the field's value is too long |
boolean |
isValidValue(ExecutingContext ec)
Validate this Field value. |
boolean |
isValueEqual(java.lang.Object obj)
Returns a boolean indicating if this field is equal to the supplied object. |
boolean |
isValueGreaterThan(java.lang.Object obj)
Returns a boolean indicating if this field is greater than the supplied object. |
boolean |
isValueLessThan(java.lang.Object obj)
Returns a boolean indicating if this field is less then the supplied object. |
java.math.BigDecimal |
scaleValue(java.math.BigDecimal value)
Scaled the given BigDecimal value with this Field's scale defined in its FD. |
void |
setValue(java.lang.Object pValue)
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.StringOrNumberField |
correctValue, createObject, getCopiedValue, getDefaultDatabaseValue, getSQLValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NumberField()
Method Detail |
public final java.lang.String getDisplayValue()
getDisplayValue
in class Field
public java.lang.String getDisplayValue(java.lang.Object value)
public java.lang.String getExternalValidationKey()
getExternalValidationKey
in class Field
public short getScale()
public java.math.BigDecimal getValueAsBigDecimal()
public boolean getValueAsBoolean()
getValueAsBoolean
in class Field
public boolean hasScale()
public abstract boolean isIntegersOnly()
public boolean isNumeric()
isNumeric
in class Field
public boolean isString()
isString
in class Field
public boolean isValidLength(ExecutingContext ec)
isValidLength
in class Field
ec
- The current executing context, which may be null
public boolean isValidValue(ExecutingContext ec)
isValidValue
in class Field
ec
- The executing context, which may be null
public boolean isValueEqual(java.lang.Object obj)
isValueEqual
in class StringOrNumberField
public boolean isValueGreaterThan(java.lang.Object obj)
isValueGreaterThan
in class StringOrNumberField
public boolean isValueLessThan(java.lang.Object obj)
isValueLessThan
in class StringOrNumberField
public java.math.BigDecimal scaleValue(java.math.BigDecimal value)
public void setValue(java.lang.Object pValue) throws CMException
setValue
in class StringOrNumberField
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |