|
|||||||||||
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.SocialSecurityNumberField
Represents a Social Security Number. Creation date: (5/7/2002 2:48:13 PM)
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 | |
SocialSecurityNumberField()
|
Method Summary | |
Object |
createObject(String pStringValue)
Create an object for this Field type using the given String. |
String |
getExternalValidationKey()
Get the key that may be used to uniquely identify Field subclasses for external validation. |
String |
getValidValuesString()
This method should be overriden by subclasses that want to display possible or valid values to a user Example PhoneNumber would return "Example: (123) 456-7890, 1234567890, 123-456-7890" Creation date: (4/5/2002 2:52:46 PM) |
boolean |
getValueAsBoolean()
Subclasses must override this to detirmine what their boolean value is. |
static short |
guessFieldClassProbability(FieldDescriptorRow pFDRow,
RowCollection pSampleData)
Subclasses will override to take an educated guess at what the Field Class will be for this FD Row. |
boolean |
isValidLength(ExecutingContext ec)
Validate this Field based on its max length attribute. |
boolean |
isValidRequired(ExecutingContext ec)
Validate this Field based on its required attribute. |
boolean |
isValidValue(ExecutingContext ec)
Validate this Field value. |
boolean |
isValueEqual(Object pValue)
Returns a boolean indicating if this field is equal to the supplied object. |
void |
setValue(Object pValue)
SocialSecurityNumber Fields must be stored internally as a String becasue they can start with a 0 Creation date: (5/15/2002 6:57:28 PM) |
Methods inherited from class planetj.database.field.StringOrNumberField |
getCopiedValue, getDefaultDatabaseValue, getSQLValue, isValueGreaterThan, isValueLessThan |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SocialSecurityNumberField()
Method Detail |
public Object createObject(String pStringValue) throws NumberFormatException
createObject
in class StringOrNumberField
pStringValue
- String
NumberFormatException
public String getExternalValidationKey()
getExternalValidationKey
in class Field
public String getValidValuesString()
getValidValuesString
in class Field
public boolean getValueAsBoolean()
getValueAsBoolean
in class Field
public static short guessFieldClassProbability(FieldDescriptorRow pFDRow, RowCollection pSampleData)
public boolean isValidLength(ExecutingContext ec)
isValidLength
in class Field
ec
- The current executing context, which may be null
public boolean isValidRequired(ExecutingContext ec)
isValidRequired
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(Object pValue)
isValueEqual
in class StringOrNumberField
public void setValue(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 |