er.corebusinesslogic
Class ERCStampedEnterpriseObject
java.lang.Object
com.webobjects.eocontrol.EOCustomObject
com.webobjects.eocontrol.EOGenericRecord
er.extensions.eof.ERXGenericRecord
er.corebusinesslogic.ERCStampedEnterpriseObject
- All Implemented Interfaces:
- _EOPrivateMemento, EODeferredFaulting, EOEnterpriseObject, EOFaulting, EOKeyValueCoding, EOKeyValueCoding._BestBindingCreation._ForwardingBindingCheck, EOKeyValueCoding._KeyBindingCreation, EOKeyValueCodingAdditions, EORelationshipManipulation, EOValidation, NSKeyValueCoding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._ReflectionKeyBindingCreation.Callback, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, ERXDatabaseContextDelegate.AutoBatchFaultingEnterpriseObject, ERXEnterpriseObject, ERXGeneratesPrimaryKeyInterface, ERXGuardedObjectInterface, ERXKey.ValueCoding, ERXNonNullObjectInterface, Serializable
public abstract class ERCStampedEnterpriseObject
- extends ERXGenericRecord
EO subclass that has a timestamp with its creation date, the most recent modification,
and a log entry describing the change.
- See Also:
- Serialized Form
| Properties |
er.corebusinesslogic.ERCStampedEnterpriseObject.touchReadOnlyEntities | er.corebusinesslogic.ERCStampedEnterpriseObject.touchReadOnlyEntities |
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding |
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor |
| Fields inherited from interface er.extensions.eof.ERXEnterpriseObject |
applyRestrictingQualifierOnInsert, DidDeleteProcessor, DidInsertProcessor, DidRevertProcessor, DidUpdateProcessor, FlushCachesProcessor, insertionTrackingLog, KEY_MARKER, logMod, tranLogDidDelete, tranLogDidInsert, tranLogDidRevert, tranLogDidUpdate, tranLogMightDelete, tranLogWillDelete, tranLogWillInsert, tranLogWillRevert, tranLogWillUpdate, validation, validationException, WillDeleteProcessor, WillInsertProcessor, WillRevertProcessor, WillUpdateProcessor |
| Methods inherited from class er.extensions.eof.ERXGenericRecord |
_otherStorageBinding, _setPrimaryKeyDictionary, _setUpdateInverseRelationships, _setValueForPrimaryKey, _updateInverseRelationships, _validateValueForKey, addObjectsToBothSidesOfRelationshipWithKey, addObjectToBothSidesOfRelationshipWithKey, applyRestrictingQualifierOnInsert, awakeFromClientUpdate, awakeFromFetch, awakeFromInsertion, batchCheckConsistency, batchFaultingRelationshipName, batchFaultingSourceGlobalID, batchFaultingTimeStamp, canDelete, canUpdate, changesFromCommittedSnapshot, checkConsistency, checkMatchingEditingContexts, clearProperties, committedSnapshot, committedSnapshotValueForKey, delete, description, didCopyFromChildInEditingContext, didDelete, didInsert, didRevert, didUpdate, encryptedPrimaryKey, entity, excludeObjectFromPropertyWithKey, flushCaches, foreignKeyForRelationshipWithKey, getClassLog, hasKeyChangedFromCommittedSnapshot, hasKeyChangedFromCommittedSnapshotFromValue, hasKeyChangedFromCommittedSnapshotFromValueToNewValue, hasKeyChangedFromCommittedSnapshotToValue, includeObjectIntoPropertyWithKey, isDeletedEO, isNewEO, isNewObject, isNonNull, isUpdatedObject, isValidatedWhenNested, localesForKey, localInstanceIn, localInstanceOf, localInstancesOf, localizationShouldFallbackToDefaultLanguage, mightDelete, parentObjectStoreIsObjectStoreCoordinator, permanentGlobalID, permanentGlobalID, primaryKey, primaryKeyAttributeNames, primaryKeyDictionary, primaryKeyInTransaction, rawPrimaryKey, rawPrimaryKeyInTransaction, refetchObjectFromDB, refetchObjectFromDBinEditingContext, removeObjectsFromBothSidesOfRelationshipWithKey, removeObjectsFromPropertyWithKey, self, setBatchFaultingTimestamp, setValidatedWhenNested, shouldSkipValidateForSave, shouldTrimSpaces, takeStoredValueForKey, takeValueForKey, takeValueForKey, toLongString, toString, touchFromBatchFaultingSource, trimSpaces, updateFromSnapshot, validateForInsert, validateForSave, validateForUpdate, validateValueForKey, valueForKey, willReadRelationship, willRevert |
| Methods inherited from class com.webobjects.eocontrol.EOCustomObject |
__classDescription, __clearPendingChanges, __editingContext, __globalID, __hasAuxillaryObservers, __hasPendingChanges, __hasPendingUpdate, __isInitialized, __isPendingDeletion, __isPendingInsertion, __isShared, __lastSnapshot, __originalSnapshot, __retainCount, __setAuxillaryObservers, __setEditingContext, __setGlobalID, __setInitialized, __setLastSnapshot, __setOriginalSnapshot, __setPendingDeletion, __setPendingInsertion, __setPendingUpdate, __setRetainCount, __setShared, _createKeyGetBindingForKey, _createKeySetBindingForKey, _createStoredKeyGetBindingForKey, _createStoredKeySetBindingForKey, _fieldKeyBinding, _forwardingBindingNeededForClass, _methodKeyGetBinding, _methodKeySetBinding, addObjectToPropertyWithKey, allPropertyKeys, attributeKeys, canAccessFieldsDirectly, changesFromSnapshot, classDescriptionForDestinationKey, clearFault, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, equals, faultHandler, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hashCode, inverseForRelationshipKey, invokeRemoteMethod, isFault, isReadOnly, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, readResolve, reapplyChangesFromDictionary, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey, shouldUseStoredAccessors, snapshot, storedValueForKey, takeValueForKeyPath, takeValuesFromDictionary, takeValuesFromDictionaryWithMapping, toManyRelationshipKeys, toOneRelationshipKeys, turnIntoFault, unableToSetNullForKey, userPresentableDescription, validateClientUpdate, validateForDelete, validateTakeValueForKeyPath, valueForKey, valueForKeyPath, valuesForKeys, valuesForKeysWithMapping, willChange, willRead |
| Methods inherited from interface com.webobjects.eocontrol.EOEnterpriseObject |
allPropertyKeys, attributeKeys, changesFromSnapshot, classDescription, classDescriptionForDestinationKey, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, inverseForRelationshipKey, invokeRemoteMethod, isReadOnly, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, reapplyChangesFromDictionary, snapshot, toManyRelationshipKeys, toOneRelationshipKeys, userPresentableDescription, willChange |
log
public static final Logger log
- logging support
TimestampAttributeKeys
public static String[] TimestampAttributeKeys
insertionLogEntry
public EOEnterpriseObject insertionLogEntry
ERCStampedEnterpriseObject
public ERCStampedEnterpriseObject()
initialize
protected static void initialize()
init
public void init(EOEditingContext ec)
- Description copied from class:
ERXGenericRecord
- used for initialization stuff instead of awakeFromInsertion.
awakeFromInsertions is buggy because if an EO is deleted
and then its EOEditingContext is reverted using 'revert' for example then
EOF will -insert- this EO again in its EOEditingContext which in turn
calls awakeFromInsertion again.
- Overrides:
init in class ERXGenericRecord
- Parameters:
ec - the EOEditingContext in which this new EO is inserted
willInsert
public void willInsert()
- Description copied from interface:
ERXEnterpriseObject
- Called as part of the augmented transaction process.
This method is called after saveChanges is called on
the editing context, but before the object is actually
inserted into the database. This method is also called
before
validateForInsert is called on this
object. This method is called by the editing context
delegate ERXDefaultEditingContextDelegate.
- Specified by:
willInsert in interface ERXEnterpriseObject- Overrides:
willInsert in class ERXGenericRecord
willUpdate
public void willUpdate()
- Description copied from interface:
ERXEnterpriseObject
- Called as part of the augmented transaction process.
This method is called after saveChanges is called on
the editing context, but before the object is actually
updated in the database. This method is also called
before
validateForSave is called on this
object. This method is called by the editing context
delegate ERXDefaultEditingContextDelegate.
- Specified by:
willUpdate in interface ERXEnterpriseObject- Overrides:
willUpdate in class ERXGenericRecord
willDelete
public void willDelete()
- Description copied from interface:
ERXEnterpriseObject
- Called as part of the augmented transaction process.
This method is called after saveChanges is called on
the editing context, but before the object is actually
deleted from the database. This method is also called
before
validateForDelete is called on this
object. This method is called by the editing context
delegate ERXDefaultEditingContextDelegate.
- Specified by:
willDelete in interface ERXEnterpriseObject- Overrides:
willDelete in class ERXGenericRecord
touchReadOnlyEntities
protected static boolean touchReadOnlyEntities()
- Returns whether or not read-only entities should be touched. This setting is only here in case there is a performance
issue introduced by looking up the entity() in touch(), so we can roll it back out.
- Returns:
- whether or not read-only entities should be touched (defaults to false)
| Properties |
er.corebusinesslogic.ERCStampedEnterpriseObject.touchReadOnlyEntities | er.corebusinesslogic.ERCStampedEnterpriseObject.touchReadOnlyEntities |
addObjectToBothSidesOfLogEntryRelationshipWithKey
public void addObjectToBothSidesOfLogEntryRelationshipWithKey(EOEnterpriseObject object,
String key)
created
public NSTimestamp created()
setCreated
public void setCreated(NSTimestamp value)
lastModified
public NSTimestamp lastModified()
setLastModified
public void setLastModified(NSTimestamp value)
Copyright © 2002 – 2011 Project Wonder.