planetj.database.field
Class LastUpdateTimestampField

java.lang.Object
  |
  +--planetj.database.Field
        |
        +--planetj.database.field.TimestampField
              |
              +--planetj.database.field.LastUpdateTimestampField
All Implemented Interfaces:
Cloneable, ICSVField, ICurrentValueField, IExternallyNamed, IFDFObject, IGuarded, INamed, IXMLObject, Serializable

public class LastUpdateTimestampField
extends TimestampField
implements ICurrentValueField

TimestampField that sets a new timestamp value when being inserted & updated. Creation date: (2/4/2003 3:29:39 PM) Not necessary since fields now check their FD for *CURRENT insert & update values. A TimestampField with *CURRENT default value & *CURRENT auto update value will do the same thing.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class planetj.database.Field
Field.FieldLocation
 
Field Summary
 
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
LastUpdateTimestampField()
           
 
Method Summary
 Object getAutoUpdateValue(ExecutingContext executingContext)
          Get the field's auto update value as a Timestamp.
 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 isChanged()
          Returns whether or not this Field's value has changed.
 boolean isCurrentValueField()
          Returns whether or not this field's value is provided by the database and therefore must have special consideration for updates.
 
Methods inherited from class planetj.database.field.TimestampField
cloneField, createObject, getCopiedValue, getCurrentValue, getCurrentValueAsString, getDefaultDatabaseValue, getValueAsBoolean, guessFieldClassProbability, isValueEqual, isValueGreaterThan, isValueLessThan, setValue
 
Methods inherited from class planetj.database.Field
addFieldClassForDataClass, addPropertyChangeListener, appendSQLColumnDefinition, appendSQLNameAndValue, appendSQLNameAndValue, clearValidationExceptions, commitValue, concat, create, create, createFromDataType, divide, equals, executeGetterMethod, executeSetterMethod, getAssociationOperation, getAttribute, getColumnSpan, getConfigProperty, getCSVField, getDataSQLOperation, getDate, getDefaultExternalName, getDefaultUsageId, getDisplayHeight, getDisplayLength, getDisplayOrder, getDisplayValue, getDisplayWidth, getExternalName, getExternalValidationKey, getFDFData, getFieldClassForDataClass, getFieldDescriptor, getFieldDescriptorSource, getFieldIncrementor, getIndex, getLibrary, getLibraryName, getMaxLength, getMaxLength, getMetaDataSystemAlias, getName, getOldValue, getOldValueAsString, getPossibleValues, getPossibleValues, getPreferredDisplayLength, getPreferredJavaDataType, getRow, getSecuredTypeId, getSecuredTypeName, getSecurityType, getSQLColumnDefinition, getSQLColumnDefinition, getSQLNameAndDefaultValue, getSQLNameAndValue, getSQLNameAndValue, getSQLObject, getSQLType, getSQLType, getSQLTypeName, getSQLTypeName, getSQLValue, getSQLValue, getStaticAttribute, getStyleClass, getStyleClass, getSystem, getSystemAlias, getSystemURL, getTable, getTableName, getValidationExceptions, getValidationInvalidLengthString, getValidationInvalidMinLengthString, getValidationInvalidValueString, getValidationInvalidValueString, getValidationRequiredString, getValidValuesString, getValue, getValueAsByte, getValueAsDate, getValueAsDouble, getValueAsFloat, getValueAsFullLengthString, getValueAsInt, getValueAsLong, getValueAsNumber, getValueAsShort, getValueAsString, getXMLData, getXMLTag, handlePossibleValueOperation, hasMultipleStyleClasses, hasOldValue, hasPossibleValuesKeyClassOrOp, hasPossibleValuesSQLOperation, hasPossibleValuesSQLOperation, hasValue, isApplicable, isAuthorizedForEdit, isAuthorizedForRead, isAutoUpdateValue, isBoolean, isContainsValue, isCurrentValueString, isDate, isDecimalSQLType, isDecimalSQLType, isDefaultValue, isDerived, isDisplayable, isFieldContentDisplayable, isFieldValueDatabaseDefault, isFieldValueNotBlank, isFieldValueNull, isFileUpload, isGuarded, isHelpTextPresent, isInitialized, isNumeric, isNumericSQLType, isNumericSQLType, isPassword, isPhysical, isPossibleValuesSearch, isReadOnly, isReadOnly, isRequired, isRequired, isRequiredOnSearch, isSkeleton, isString, isStringSQLType, isStringSQLType, isTime, isUpdateable, isValidationRequiredForAutoPopulate, isValidLength, isValidLength, isValidMinLength, isValidRequired, isValidRequired, isValidValue, isValidValue, isValueEqualToString, lessThan, removePropertyChangeListener, rollbackChanges, setAttribute, setChanged, setClonedValues, setDate, setFieldContentDisplayable, setFieldDescriptor, setInitialValue, setInitialValueAsString, setMaxLength, setName, setRow, setSavepoint, setSQLType, setSQLTypeName, setStaticAttribute, setTable, setValue, setValue, setValueAsString, setValueToDefault, toString, toUpperCase, validate, validate, validate
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface planetj.database.field.ICurrentValueField
getCurrentValue, getCurrentValueAsString
 

Constructor Detail

LastUpdateTimestampField

public LastUpdateTimestampField()
Method Detail

getAutoUpdateValue

public Object getAutoUpdateValue(ExecutingContext executingContext)
                          throws CMException
Get the field's auto update value as a Timestamp.

Specified by:
getAutoUpdateValue in interface ICurrentValueField
Overrides:
getAutoUpdateValue in class TimestampField
CMException

getDefaultValue

public Object getDefaultValue(ExecutingContext executingContext)
                       throws CMException
Get the field's default value as a Timestamp.

Specified by:
getDefaultValue in interface ICurrentValueField
Overrides:
getDefaultValue in class TimestampField
CMException

getSQLValue

public String getSQLValue(boolean pUseOriginalValue)
Returns the Field's name and value in SQL format.

Overrides:
getSQLValue in class TimestampField
Parameters:
pUseOriginalValue -
Returns:
String

isChanged

public boolean isChanged()
Returns whether or not this Field's value has changed.

Overrides:
isChanged in class Field
Returns:
boolean

isCurrentValueField

public boolean isCurrentValueField()
Returns whether or not this field's value is provided by the database and therefore must have special consideration for updates. For instance, a field that always has the CURRENT TIMESTAMP for its value would get this value from the database. When we go to update, this field will be updated every time that the row is updated, however it will not cause an update in and of itself. Creation date: (2/4/2003 4:40:42 PM)

Overrides:
isCurrentValueField in class Field
Returns:
boolean