|
|||||||||||
| 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.StringField
|
+--planetj.database.field.AbstractBooleanField
| 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 | |
AbstractBooleanField()
|
|
| Method Summary | |
abstract String |
getFalseValue()
Subclasses need to return the value which represents the Field's 'false' value. |
abstract String |
getTrueValue()
Subclasses need to return the value which represents the Field's 'true' value. |
boolean |
isBoolean()
Return true to denote this is a boolean. |
boolean |
isChecked()
Returns whether or not the Field is checked. |
static boolean |
isValueTrue(Object value)
Checks if the given value could be true. |
void |
setValue(boolean newVal)
Sets the value of the field based on a primitive boolean value. |
void |
setValue(Object newVal)
Overrides the setValue method so that if null is passed for the new value, we use the value of "N" since this is a YN (Y or N) boolean field. |
void |
switchValue()
Switches the boolean field's value. |
| Methods inherited from class planetj.database.field.StringField |
createObject, getCSVField, getExternalValidationKey, getValueAsBoolean, isNumber, isString, isValidLength |
| Methods inherited from class planetj.database.field.StringOrNumberField |
getCopiedValue, getDefaultDatabaseValue, getSQLValue, isValueEqual, isValueGreaterThan, isValueLessThan |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbstractBooleanField()
| Method Detail |
public abstract String getFalseValue()
getFalseValue in interface IBooleanFieldpublic abstract String getTrueValue()
getTrueValue in interface IBooleanFieldpublic boolean isBoolean()
isBoolean in class Fieldpublic boolean isChecked()
isChecked in interface IBooleanField
public static boolean isValueTrue(Object value)
throws CMException
CMException
public void setValue(Object newVal)
throws CMException
setValue in class StringFieldnewVal - Object
CMExceptionpublic void setValue(boolean newVal)
setValue in interface IBooleanFieldnewVal - booleanpublic void switchValue()
switchValue in interface IBooleanField
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||