|
|||||||||||
| 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.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 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 | |
SocialSecurityNumberField()
|
|
| Method Summary | |
java.lang.Object |
createObject(java.lang.String pStringValue)
Create an object for this Field type using the given String. |
java.lang.String |
getExternalValidationKey()
Get the key that may be used to uniquely identify Field subclasses for external validation. |
java.lang.Object |
getSQLObject()
Gets this field's value as an Object in SQL format. |
java.lang.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(java.lang.Object pValue)
Returns a boolean indicating if this field is equal to the supplied object. |
void |
setValue(java.lang.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 |
correctValue, getCopiedValue, getDefaultDatabaseValue, getSQLValue, isValueGreaterThan, isValueLessThan |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SocialSecurityNumberField()
| Method Detail |
public java.lang.Object createObject(java.lang.String pStringValue)
throws java.lang.NumberFormatException
createObject in class StringOrNumberFieldpStringValue - String
java.lang.NumberFormatExceptionpublic java.lang.String getExternalValidationKey()
getExternalValidationKey in class Field
public java.lang.Object getSQLObject()
throws CMException
Field
getSQLObject in class FieldCMExceptionpublic java.lang.String getValidValuesString()
getValidValuesString in class Fieldpublic boolean getValueAsBoolean()
getValueAsBoolean in class Field
public static short guessFieldClassProbability(FieldDescriptorRow pFDRow,
RowCollection pSampleData)
public boolean isValidLength(ExecutingContext ec)
isValidLength in class Fieldec - The current executing context, which may be null
public boolean isValidRequired(ExecutingContext ec)
isValidRequired in class Fieldec - The current executing context, which may be null
public boolean isValidValue(ExecutingContext ec)
isValidValue in class Fieldec - The executing context, which may be null
public boolean isValueEqual(java.lang.Object pValue)
isValueEqual in class StringOrNumberField
public void setValue(java.lang.Object pValue)
throws CMException
setValue in class StringOrNumberFieldCMException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||