|
|||||||||||
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.TimestampField
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 | |
TimestampField()
|
Method Summary | |
Field |
cloneField()
Returns a clone of the Field. |
Object |
createObject(String pStringValue)
Create an object for this Field type using the given String. |
Object |
getAutoUpdateValue(ExecutingContext executingContext)
Get the field's auto update value as a Timestamp. |
Object |
getCopiedValue()
Gets an independent copy of this field's value. |
Object |
getCurrentValue(ExecutingContext ec)
Gets the default current value for this field as a String. |
String |
getCurrentValueAsString(ExecutingContext ec)
Gets the default current value for this field as a String. |
String |
getDefaultDatabaseValue()
Subclass must override this method and return a default value to be placed in the database when this field is Not-nullable and not required. |
Object |
getDefaultValue(ExecutingContext executingContext)
Get the field's default value as a Timestamp. |
String |
getSQLValue(boolean pUseOriginalValue)
Returns the Field's name and value in SQL format. |
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 |
isValueEqual(Object obj)
Returns a boolean indicating if this field is equal to the supplied object. |
boolean |
isValueGreaterThan(Object obj)
Returns a boolean indicating if this field is greater than the supplied object. |
boolean |
isValueLessThan(Object obj)
Returns a boolean indicating if this field is less then the supplied object. |
void |
setValue(long millis)
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 java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TimestampField()
Method Detail |
public Field cloneField() throws CMException
cloneField
in class Field
CMException
public Object createObject(String pStringValue)
createObject
in class Field
pStringValue
- Stringpublic Object getAutoUpdateValue(ExecutingContext executingContext) throws CMException
getAutoUpdateValue
in class Field
CMException
public Object getCopiedValue()
getCopiedValue
in class Field
public Object getCurrentValue(ExecutingContext ec)
getCurrentValue
in class Field
public String getCurrentValueAsString(ExecutingContext ec)
getCurrentValueAsString
in class Field
public String getDefaultDatabaseValue() throws CMException
Example: A SS# is not required to be filled in by users, but the database does not allow nulls in that field. SocialSecurityField must override this method and return a default value like -1; Creation date: (4/9/2002 4:33:45 PM)
getDefaultDatabaseValue
in class Field
CMException
public Object getDefaultValue(ExecutingContext executingContext) throws CMException
getDefaultValue
in class Field
CMException
public String getSQLValue(boolean pUseOriginalValue)
getSQLValue
in class Field
pUseOriginalValue
-
public boolean getValueAsBoolean()
getValueAsBoolean
in class Field
public static short guessFieldClassProbability(FieldDescriptorRow pFDRow, RowCollection pSampleData)
public boolean isValueEqual(Object obj)
isValueEqual
in class Field
public boolean isValueGreaterThan(Object obj)
isValueGreaterThan
in class Field
public boolean isValueLessThan(Object obj)
isValueLessThan
in class Field
public void setValue(long millis) throws CMException
Field
setValue
in class Field
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |