|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.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 java.lang.String |
ISO_FORMAT
|
Fields inherited from class planetj.database.field.DateField |
LENIENT |
Fields inherited from class planetj.database.Field |
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_UNKNOWN |
Fields inherited from interface planetj.database.field.ICurrentValueField |
CURRENT_VALUE |
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 | |
java.lang.Object |
createObject(java.lang.String strValue)
Create an object for this Field type using the given String. |
static java.util.Date |
createTime(java.lang.String format,
java.lang.String value)
Create a java.util.Date from the given format and String. |
java.lang.String |
getCSVFormat()
Get the CVS format for this time field. |
java.lang.String |
getDefaultFormat()
Get the default format for this date field from its system. |
java.lang.String |
getDisplayFormat()
Get the display format for this time field. |
java.lang.String |
getISOFormat()
Get the ISO format for this time field. |
java.lang.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) |
java.lang.String |
getSQLValue(boolean useOriginalValue)
Returns the Field's name and value in SQL format. |
java.lang.Object |
getValue()
Get this time field's value. |
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(java.lang.Object value)
Returns a boolean indicating if this field is equal to the supplied object. |
void |
setValue(java.lang.Object value)
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, createDate, getCentury, getCopiedValue, getCSVField, getCurrentValue, getCurrentValueAsString, getDefaultDatabaseValue, getDisplayValue, getJulianFormat, getOldValueAsString, getSQLObject, getSQLValue, getValidValuesString, getValueAsBoolean, getValueAsString, getYear, isValidLength, isValidValue, isValueGreaterThan, isValueLessThan, setValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface planetj.database.field.ICurrentValueField |
getAutoUpdateValue, getDefaultValue |
Field Detail |
public static final java.lang.String ISO_FORMAT
Constructor Detail |
public TimeField()
Method Detail |
public java.lang.Object createObject(java.lang.String strValue) throws ValidationException
DateField
createObject
in class DateField
ValidationException
public static java.util.Date createTime(java.lang.String format, java.lang.String value) throws java.text.ParseException
java.text.ParseException
public java.lang.String getCSVFormat()
getCSVFormat
in class DateField
public java.lang.String getDefaultFormat()
DateField
getDefaultFormat
in interface IDateField
getDefaultFormat
in class DateField
public java.lang.String getDisplayFormat()
getDisplayFormat
in class DateField
public java.lang.String getISOFormat()
getISOFormat
in class DateField
public java.lang.String getPossibleFormats()
getPossibleFormats
in class DateField
public java.lang.String getSQLValue(boolean useOriginalValue) throws CMException
DateField
getSQLValue
in class DateField
CMException
public java.lang.Object getValue()
getValue
in interface INamed
getValue
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(java.lang.Object value)
DateField
isValueEqual
in class DateField
public void setValue(java.lang.Object value) throws CMException
DateField
setValue
in class DateField
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |