|
|||||||||||
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.DateField | +--planetj.database.field.TimeField
Nested Class Summary |
Nested classes inherited from class planetj.database.Field |
Field.FieldLocation |
Field Summary | |
static String |
DEFAULT_FORMAT
|
Fields inherited from class planetj.database.field.DateField |
INVALID_DATE, ISO_FORMAT, LENIENT, NULL_DATE |
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 | |
TimeField()
|
Method Summary | |
Object |
createObject(String pStringValue)
Create an object for this Field type using the given String. |
String |
getCSVFormat()
Returns the CSV Format Creation date: (5/11/2002 7:56:58 PM) |
String |
getDefaultFormat()
Returns the Default Format Creation date: (5/11/2002 7:56:58 PM) |
String |
getDisplayFormat()
Returns the Default Format Creation date: (5/11/2002 7:56:58 PM) |
String |
getISOFormat()
Returns the CSV Format Creation date: (5/11/2002 7:56:58 PM) |
static String |
getNullString()
Returns the CSV Format Creation date: (5/11/2002 7:56:58 PM) |
String |
getOldValueAsString()
Returns the Field's old value as a String (or the field's current value as a String if it doesn't have an old value). |
String |
getPossibleFormats()
This method should be overriden by subclasses that want to display possible or valid values to a user Example PhoneNumber would return "Examples: (123) 456-7890, 1234567890, 123-456-78890" Creation date: (4/5/2002 2:52:46 PM) |
String |
getValidValuesString()
This method should be overriden by subclasses that want to display possible or valid values to a user Example PhoneNumber would return "Examples: (123) 456-7890, 1234567890, 123-456-78890" Creation date: (4/5/2002 2:52:46 PM) |
Object |
getValue()
Returns the value of this field as a Date Object The display value is detirmined by the FieldClass parameter Creation date: (4/8/2002 9:42:38 AM) |
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 |
isDate()
Subclasses should override to change the value |
boolean |
isTime()
Subclasses should override to change the value |
boolean |
isValueEqual(Object obj)
Returns a boolean indicating if this field is equal to the supplied object. |
void |
setValue(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.DateField |
cloneField, getCopiedValue, getCSVField, getCurrentValue, getCurrentValueAsString, getDefaultDatabaseValue, getDisplayValue, getDisplayValue, getJulianFormat, getSQLObject, getSQLValue, getValueAsString, getValueAsString, isValidLength, isValidValue, isValueGreaterThan, isValueLessThan, setValue |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String DEFAULT_FORMAT
Constructor Detail |
public TimeField()
Method Detail |
public Object createObject(String pStringValue)
createObject
in class DateField
pStringValue
- Stringpublic String getCSVFormat()
getCSVFormat
in class DateField
public String getDefaultFormat()
getDefaultFormat
in class DateField
public String getDisplayFormat()
getDisplayFormat
in class DateField
public String getISOFormat()
getISOFormat
in class DateField
public static String getNullString()
public String getOldValueAsString()
getOldValueAsString
in class Field
public String getPossibleFormats() throws CMException
getPossibleFormats
in class DateField
CMException
public String getValidValuesString() throws CMException
getValidValuesString
in class DateField
CMException
public Object getValue()
getValue
in interface INamed
getValue
in class DateField
public boolean getValueAsBoolean()
getValueAsBoolean
in class DateField
public static short guessFieldClassProbability(FieldDescriptorRow pFDRow, RowCollection pSampleData)
public boolean isDate()
isDate
in class DateField
public boolean isTime()
isTime
in class Field
public boolean isValueEqual(Object obj)
isValueEqual
in class DateField
public void setValue(Object pValue) throws CMException
setValue
in class DateField
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |