Project Wonder 5.0

er.extensions.eof
Interface ERXEnterpriseObject

All Superinterfaces:
com.webobjects.eocontrol.EODeferredFaulting, com.webobjects.eocontrol.EOEnterpriseObject, com.webobjects.eocontrol.EOFaulting, com.webobjects.eocontrol.EOKeyValueCoding, com.webobjects.eocontrol.EOKeyValueCodingAdditions, com.webobjects.eocontrol.EORelationshipManipulation, com.webobjects.eocontrol.EOValidation, com.webobjects.foundation.NSKeyValueCoding, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCodingAdditions, com.webobjects.foundation.NSValidation, java.io.Serializable
All Known Implementing Classes:
_Bug, _Comment, _Component, _Difficulty, _ERAttachment, _ERAttachmentData, _ERCAuditBlob, _ERCAuditTrail, _ERCAuditTrailEntry, _ERCHelpText, _ERCLogEntry, _ERCMailMessage, _ERCMailMessageArchive, _ERCMessageAttachment, _ERCPreference, _ERCStatic, _ERDatabaseAttachment, _ERFileAttachment, _ERIAttribute, _ERIAttributeGroup, _ERIAttributeType, _ERIDirectory, _ERIFile, _ERIFileContent, _ERIValidationRule, _ERS3Attachment, _ERTag, _Framework, _People, _Priority, _Release, _Requirement, _RequirementSubType, _RequirementType, _TestItem, _TestItemState, Bug, Comment, Component, Difficulty, ERAttachment, ERAttachmentData, ERCAuditBlob, ERCAuditTrail, ERCAuditTrailEntry, ERCHelpText, ERCLogEntry, ERCMailMessage, ERCMailMessageArchive, ERCMessageAttachment, ERCPreference, ERCStampedEnterpriseObject, ERCStatic, ERDatabaseAttachment, ERFileAttachment, ERIAttribute, ERIAttributeGroup, ERIAttributeType, ERIDirectory, ERIFile, ERIFileContent, ERIValidationRule, ERS3Attachment, ERTag, ERXCustomObject, ERXGenericRecord, ERXPartialGenericRecord, Framework, People, Priority, Release, Requirement, RequirementSubType, RequirementType, TestItem, TestItemState

public interface ERXEnterpriseObject
extends com.webobjects.eocontrol.EOEnterpriseObject


Nested Class Summary
static class ERXEnterpriseObject.Observer
          Registers as a listener for various editing context notifications and calls up the willXXX and didXXX methods in objects that implement ERXEnterpriseObject.
static class ERXEnterpriseObject.Processor
           
 
Nested classes/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueCodingAdditions
com.webobjects.eocontrol.EOKeyValueCodingAdditions.DefaultImplementation, com.webobjects.eocontrol.EOKeyValueCodingAdditions.Utility
 
Nested classes/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueCoding
com.webobjects.eocontrol.EOKeyValueCoding._BestBindingCreation, com.webobjects.eocontrol.EOKeyValueCoding._KeyBindingCreation, com.webobjects.eocontrol.EOKeyValueCoding._StoredForwardingBinding
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.ValidationException
 
Field Summary
static boolean applyRestrictingQualifierOnInsert
           
static ERXEnterpriseObject.Processor DidDeleteProcessor
           
static ERXEnterpriseObject.Processor DidInsertProcessor
           
static ERXEnterpriseObject.Processor DidRevertProcessor
           
static ERXEnterpriseObject.Processor DidUpdateProcessor
           
static ERXEnterpriseObject.Processor FlushCachesProcessor
           
static org.apache.log4j.Logger insertionTrackingLog
          logging support for insertion tracking
static java.lang.String KEY_MARKER
           
static org.apache.log4j.Logger log
          general logging support
static org.apache.log4j.Logger logMod
          logging support for modified objects
static org.apache.log4j.Logger tranLogDidDelete
          logging support.
static org.apache.log4j.Logger tranLogDidInsert
          logging support.
static org.apache.log4j.Logger tranLogDidRevert
          logging support.
static org.apache.log4j.Logger tranLogDidUpdate
          logging support.
static org.apache.log4j.Logger tranLogMightDelete
          logging support.
static org.apache.log4j.Logger tranLogWillDelete
          logging support.
static org.apache.log4j.Logger tranLogWillInsert
          logging support.
static org.apache.log4j.Logger tranLogWillRevert
          logging support.
static org.apache.log4j.Logger tranLogWillUpdate
          logging support.
static org.apache.log4j.Logger validation
          logging support for validation information
static org.apache.log4j.Logger validationException
          logging support for validation exceptions
static ERXEnterpriseObject.Processor WillDeleteProcessor
           
static ERXEnterpriseObject.Processor WillInsertProcessor
           
static ERXEnterpriseObject.Processor WillRevertProcessor
           
static ERXEnterpriseObject.Processor WillUpdateProcessor
           
 
Fields inherited from interface com.webobjects.eocontrol.EOEnterpriseObject
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Method Summary
 boolean _setUpdateInverseRelationships(boolean newValue)
          Toggles whether or not inverse relationships should be updates.
 void addObjectsToBothSidesOfRelationshipWithKey(com.webobjects.foundation.NSArray objects, java.lang.String key)
          Adds a collection of objects to a given relationship by calling addObjectToBothSidesOfRelationshipWithKey for all objects in the collection.
 void batchCheckConsistency()
          This method is very similar to the checkConsistency method except that this method is only called from an outside process, usually a batch process, to verify that the data this object holds is consistent.
 com.webobjects.foundation.NSDictionary changesFromCommittedSnapshot()
          Computes the current set of changes that this object has from the currently committed snapshot.
 void checkConsistency()
          Debugging method that will be called on an object before it is saved to the database if the property key: ERDebuggingEnabled is enabled.
 java.lang.Object committedSnapshotValueForKey(java.lang.String key)
          Determines what the value of the given key is in the committed snapshot
 java.lang.String description()
          Cover method to return toString.
 void didDelete(com.webobjects.eocontrol.EOEditingContext ec)
          Called on the object after is has been deleted.
 void didInsert()
          Called on the object after is has successfully been inserted into the database.
 void didRevert(com.webobjects.eocontrol.EOEditingContext ec)
          Called on the object after it has been reverted.
 void didUpdate()
          Called on the object after is has successfully been updated in the database.
 java.lang.String encryptedPrimaryKey()
          Takes the primary key of the object and encrypts it with the blowfish cipher using ERXCrypto.
 void flushCaches()
          This is called when an object has had changes merged into it by the editing context.
 java.lang.Object foreignKeyForRelationshipWithKey(java.lang.String rel)
          Returns the foreign key for a given relationship.
 org.apache.log4j.Logger getClassLog()
          This methods checks if we already have created an Logger for this class If not, one will be created, stored and returned on next request.
 boolean isDeletedEO()
          Determines if this object is a deleted object by checking to see if it is included in the deletedObjects array of the editing context or - if it's editing context is null - it already has a global id.
 boolean isNewObject()
          Determines if this object is a new object and hasn't been saved to the database yet.
 com.webobjects.eocontrol.EOEnterpriseObject localInstanceIn(com.webobjects.eocontrol.EOEditingContext ec)
          Returns this EO in the supplied editing context.
 com.webobjects.eocontrol.EOEnterpriseObject localInstanceOf(com.webobjects.eocontrol.EOEnterpriseObject eo)
          Returns an EO in the same editing context as the caller.
 com.webobjects.foundation.NSArray localInstancesOf(com.webobjects.foundation.NSArray eos)
          Returns an array of EOs in the same editing context as the caller.
 void mightDelete()
          Called as part of the augmented transaction process.
 boolean parentObjectStoreIsObjectStoreCoordinator()
          Simple method that will return if the parent object store of this object's editing context is an instance of EOObjectStoreCoordinator.
 java.lang.String primaryKey()
          Primary key of the object as a String.
 com.webobjects.foundation.NSArray primaryKeyAttributeNames()
          Returns the names of all primary key attributes.
 java.lang.String primaryKeyInTransaction()
          Calling this method will return the primary key of the given enterprise object or if one has not been assigned to it yet, then it will have the adaptor channel generate one for it, cache it and then use that primary key when it is saved to the database.
 java.lang.Object rawPrimaryKey()
          Gives the raw primary key of the object.
 java.lang.Object rawPrimaryKeyInTransaction()
          Calling this method will return the primary key of the given enterprise object or if one has not been assigned to it yet, then it will have the adaptor channel generate one for it, cache it and then use that primary key when it is saved to the database.
 ERXEnterpriseObject refetchObjectFromDBinEditingContext(com.webobjects.eocontrol.EOEditingContext ec)
          Method that will make sure to fetch an eo from the Database and place it in the editingContext provided as an argument
 void removeObjectsFromBothSidesOfRelationshipWithKey(com.webobjects.foundation.NSArray objects, java.lang.String key)
          Removes a collection of objects to a given relationship by calling removeObjectFromBothSidesOfRelationshipWithKey for all objects in the collection.
 void removeObjectsFromPropertyWithKey(com.webobjects.foundation.NSArray objects, java.lang.String key)
          Removes a collection of objects to a given relationship by calling removeObjectFromPropertyWithKey for all objects in the collection.
 ERXEnterpriseObject self()
          self is usefull for directtoweb purposes
 java.lang.String toLongString()
          Returns the super classes implementation of toString which prints out the current key-value pairs for all of the attributes and relationships for the current object.
 void trimSpaces()
          This method will trim the leading and trailing white space from any attributes that are mapped to a String object.
 void willDelete()
          Called as part of the augmented transaction process.
 void willInsert()
          Called as part of the augmented transaction process.
 void willRevert()
          Called on the object before it will be reverted.
 void willUpdate()
          Called as part of the augmented transaction process.
 
Methods inherited from interface com.webobjects.eocontrol.EOEnterpriseObject
allPropertyKeys, attributeKeys, awakeFromClientUpdate, awakeFromFetch, awakeFromInsertion, changesFromSnapshot, classDescription, classDescriptionForDestinationKey, clearProperties, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, inverseForRelationshipKey, invokeRemoteMethod, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, reapplyChangesFromDictionary, snapshot, toManyRelationshipKeys, toOneRelationshipKeys, updateFromSnapshot, userPresentableDescription, willChange
 
Methods inherited from interface com.webobjects.eocontrol.EOKeyValueCodingAdditions
takeValuesFromDictionary, takeValuesFromDictionaryWithMapping, valuesForKeys, valuesForKeysWithMapping
 
Methods inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
takeValueForKeyPath, valueForKeyPath
 
Methods inherited from interface com.webobjects.eocontrol.EOKeyValueCoding
storedValueForKey, takeStoredValueForKey
 
Methods inherited from interface com.webobjects.foundation.NSKeyValueCoding
takeValueForKey, valueForKey
 
Methods inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling
handleQueryWithUnboundKey, handleTakeValueForUnboundKey, unableToSetNullForKey
 
Methods inherited from interface com.webobjects.eocontrol.EORelationshipManipulation
addObjectToBothSidesOfRelationshipWithKey, addObjectToPropertyWithKey, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey
 
Methods inherited from interface com.webobjects.eocontrol.EOValidation
validateClientUpdate, validateForDelete, validateForInsert, validateForSave, validateForUpdate
 
Methods inherited from interface com.webobjects.foundation.NSValidation
validateTakeValueForKeyPath, validateValueForKey
 
Methods inherited from interface com.webobjects.eocontrol.EODeferredFaulting
willReadRelationship
 
Methods inherited from interface com.webobjects.eocontrol.EOFaulting
clearFault, faultHandler, isFault, turnIntoFault, willRead
 

Field Detail

logMod

static final org.apache.log4j.Logger logMod
logging support for modified objects


applyRestrictingQualifierOnInsert

static final boolean applyRestrictingQualifierOnInsert

FlushCachesProcessor

static final ERXEnterpriseObject.Processor FlushCachesProcessor

WillInsertProcessor

static final ERXEnterpriseObject.Processor WillInsertProcessor

DidInsertProcessor

static final ERXEnterpriseObject.Processor DidInsertProcessor

WillUpdateProcessor

static final ERXEnterpriseObject.Processor WillUpdateProcessor

DidUpdateProcessor

static final ERXEnterpriseObject.Processor DidUpdateProcessor

WillDeleteProcessor

static final ERXEnterpriseObject.Processor WillDeleteProcessor

DidDeleteProcessor

static final ERXEnterpriseObject.Processor DidDeleteProcessor

WillRevertProcessor

static final ERXEnterpriseObject.Processor WillRevertProcessor

DidRevertProcessor

static final ERXEnterpriseObject.Processor DidRevertProcessor

tranLogDidInsert

static final org.apache.log4j.Logger tranLogDidInsert
logging support. Called after an object is successfully inserted


tranLogDidDelete

static final org.apache.log4j.Logger tranLogDidDelete
logging support. Called after an object is successfully deleted


tranLogDidUpdate

static final org.apache.log4j.Logger tranLogDidUpdate
logging support. Called after an object is successfully updated


tranLogDidRevert

static final org.apache.log4j.Logger tranLogDidRevert
logging support. Called after an object is reverted.


tranLogMightDelete

static final org.apache.log4j.Logger tranLogMightDelete
logging support. Called before an object is deleted


tranLogWillInsert

static final org.apache.log4j.Logger tranLogWillInsert
logging support. Called before an object is inserted


tranLogWillDelete

static final org.apache.log4j.Logger tranLogWillDelete
logging support. Called before an object is deleted


tranLogWillUpdate

static final org.apache.log4j.Logger tranLogWillUpdate
logging support. Called before an object is updated


tranLogWillRevert

static final org.apache.log4j.Logger tranLogWillRevert
logging support. Called before an object is reverted.


validation

static final org.apache.log4j.Logger validation
logging support for validation information


validationException

static final org.apache.log4j.Logger validationException
logging support for validation exceptions


insertionTrackingLog

static final org.apache.log4j.Logger insertionTrackingLog
logging support for insertion tracking


log

static final org.apache.log4j.Logger log
general logging support


KEY_MARKER

static final java.lang.String KEY_MARKER
See Also:
Constant Field Values
Method Detail

getClassLog

org.apache.log4j.Logger getClassLog()
This methods checks if we already have created an Logger for this class If not, one will be created, stored and returned on next request. This method eliminates individual static variables for Logger's in all subclasses. We use an NSDictionary here because static fields are class specific and thus something like lazy initialization would not work in this case.

Returns:
an Logger for this objects class

self

ERXEnterpriseObject self()
self is usefull for directtoweb purposes


mightDelete

void mightDelete()
Called as part of the augmented transaction process. This method is called when deleteObject() is called on the editing context. The benefit over willDelete() is that in this method, the relationships are still intact. Mostly, at least, as it's also called when the deletes cascade.


willDelete

void willDelete()
                throws com.webobjects.foundation.NSValidation.ValidationException
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.

Throws:
NSValidation.ValidationException - to stop the object from being deleted.

willInsert

void willInsert()
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.


willUpdate

void willUpdate()
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.


flushCaches

void flushCaches()
This is called when an object has had changes merged into it by the editing context. This is called by ERXDefaultEditingContextDelegate after it merges changes. Any caches that an object keeps based on any of it's values it should flush. The default implementation of this method does nothing.


didDelete

void didDelete(com.webobjects.eocontrol.EOEditingContext ec)
Called on the object after is has been deleted. The editing context is passed to the object since by this point the editingContext of the object is null. You should check if the ec is a child context when doing something here that can't be undone.

Parameters:
ec - editing context that used to be associated with the object.

didUpdate

void didUpdate()
Called on the object after is has successfully been updated in the database.


didInsert

void didInsert()
Called on the object after is has successfully been inserted into the database.


willRevert

void willRevert()
Called on the object before it will be reverted. Default implementation does nothing other than log.


didRevert

void didRevert(com.webobjects.eocontrol.EOEditingContext ec)
Called on the object after it has been reverted. The editing context is passed to the object because if the object was in the insertedObjects list before the revert, the object has had its editingContext nulled. Default implementation calls flushCaches.

Parameters:
ec - editing context that is either currently associated with the object if the object was marked as changed or deleted before the revert, otherwise the editing context that was associated with the object before the revert.

addObjectsToBothSidesOfRelationshipWithKey

void addObjectsToBothSidesOfRelationshipWithKey(com.webobjects.foundation.NSArray objects,
                                                java.lang.String key)
Adds a collection of objects to a given relationship by calling addObjectToBothSidesOfRelationshipWithKey for all objects in the collection.

Parameters:
objects - objects to add to both sides of the given relationship
key - relationship key

removeObjectsFromBothSidesOfRelationshipWithKey

void removeObjectsFromBothSidesOfRelationshipWithKey(com.webobjects.foundation.NSArray objects,
                                                     java.lang.String key)
Removes a collection of objects to a given relationship by calling removeObjectFromBothSidesOfRelationshipWithKey for all objects in the collection.

Parameters:
objects - objects to be removed from both sides of the given relationship
key - relationship key

removeObjectsFromPropertyWithKey

void removeObjectsFromPropertyWithKey(com.webobjects.foundation.NSArray objects,
                                      java.lang.String key)
Removes a collection of objects to a given relationship by calling removeObjectFromPropertyWithKey for all objects in the collection.

Parameters:
objects - objects to be removed from both sides of the given relationship
key - relationship key

primaryKey

java.lang.String primaryKey()
Primary key of the object as a String.

Returns:
primary key for the given object as a String

rawPrimaryKeyInTransaction

java.lang.Object rawPrimaryKeyInTransaction()
Calling this method will return the primary key of the given enterprise object or if one has not been assigned to it yet, then it will have the adaptor channel generate one for it, cache it and then use that primary key when it is saved to the database. If you just want the primary key of the object or null if it doesn't have one yet, use the method rawPrimaryKey.

Returns:
the primary key of this object.

primaryKeyInTransaction

java.lang.String primaryKeyInTransaction()
Calling this method will return the primary key of the given enterprise object or if one has not been assigned to it yet, then it will have the adaptor channel generate one for it, cache it and then use that primary key when it is saved to the database. This method returns the string representation of the primary key. If you just want the primary key of the object or null if it doesn't have one yet, use the method primaryKey.

Returns:
string representation of the primary key of this object.

rawPrimaryKey

java.lang.Object rawPrimaryKey()
Gives the raw primary key of the object. This could be anything from an NSData to a BigDecimal.

Returns:
the raw primary key of this object.

encryptedPrimaryKey

java.lang.String encryptedPrimaryKey()
Takes the primary key of the object and encrypts it with the blowfish cipher using ERXCrypto.

Returns:
blowfish encrypted primary key

foreignKeyForRelationshipWithKey

java.lang.Object foreignKeyForRelationshipWithKey(java.lang.String rel)
Returns the foreign key for a given relationship.

Parameters:
rel - relationship key
Returns:
foreign key for a given relationship.

primaryKeyAttributeNames

com.webobjects.foundation.NSArray primaryKeyAttributeNames()
Returns the names of all primary key attributes.


committedSnapshotValueForKey

java.lang.Object committedSnapshotValueForKey(java.lang.String key)
Determines what the value of the given key is in the committed snapshot

Parameters:
key - to be checked in committed snapshot
Returns:
the committed snapshot value for the given key

localInstanceOf

com.webobjects.eocontrol.EOEnterpriseObject localInstanceOf(com.webobjects.eocontrol.EOEnterpriseObject eo)
Returns an EO in the same editing context as the caller.

Returns:
an EO in the same editing context as the caller.

localInstanceIn

com.webobjects.eocontrol.EOEnterpriseObject localInstanceIn(com.webobjects.eocontrol.EOEditingContext ec)
Returns this EO in the supplied editing context.

Returns:
this EO in the supplied editing context.

localInstancesOf

com.webobjects.foundation.NSArray localInstancesOf(com.webobjects.foundation.NSArray eos)
Returns an array of EOs in the same editing context as the caller.

Returns:
array of EOs in the same editing context as the caller.

changesFromCommittedSnapshot

com.webobjects.foundation.NSDictionary changesFromCommittedSnapshot()
Computes the current set of changes that this object has from the currently committed snapshot.

Returns:
a dictionary holding the changed values from the currently committed snapshot.

parentObjectStoreIsObjectStoreCoordinator

boolean parentObjectStoreIsObjectStoreCoordinator()
Simple method that will return if the parent object store of this object's editing context is an instance of EOObjectStoreCoordinator. The reason this is important is because if this condition evaluates to true then when changes are saved in this editing context they will be propagated to the database.

Returns:
if the parent object store of this object's editing context is an EOObjectStoreCoordinator.

refetchObjectFromDBinEditingContext

ERXEnterpriseObject refetchObjectFromDBinEditingContext(com.webobjects.eocontrol.EOEditingContext ec)
Method that will make sure to fetch an eo from the Database and place it in the editingContext provided as an argument

Parameters:
ec - the editing context in which the result will be placed
Returns:
fresh instance of an EO fetched from the DB and placed in the editing context argument

description

java.lang.String description()
Cover method to return toString.

Returns:
the results of calling toString.

toLongString

java.lang.String toLongString()
Returns the super classes implementation of toString which prints out the current key-value pairs for all of the attributes and relationships for the current object. Very verbose.

Returns:
super's implementation of toString.

trimSpaces

void trimSpaces()
This method will trim the leading and trailing white space from any attributes that are mapped to a String object. This method is called before the object is saved to the database. Override this method to do nothing if you wish to preserve your leading and trailing white space.


isDeletedEO

boolean isDeletedEO()
Determines if this object is a deleted object by checking to see if it is included in the deletedObjects array of the editing context or - if it's editing context is null - it already has a global id.

Returns:
if the object is a deleted object

isNewObject

boolean isNewObject()
Determines if this object is a new object and hasn't been saved to the database yet. This method just calls the method ERExtensions.isNewObject passing in this object as the current parameter. Note that an object that has been successfully deleted will also look as if it is a new object because it will have a null editing context.

Returns:
if the object is a new enterprise object.

checkConsistency

void checkConsistency()
                      throws com.webobjects.foundation.NSValidation.ValidationException
Debugging method that will be called on an object before it is saved to the database if the property key: ERDebuggingEnabled is enabled. This allows for adding in a bunch of expensive validation checks that should only be enabled in development and testing environments.

Throws:
NSValidation.ValidationException - if the object is not consistent

batchCheckConsistency

void batchCheckConsistency()
                           throws com.webobjects.foundation.NSValidation.ValidationException
This method is very similar to the checkConsistency method except that this method is only called from an outside process, usually a batch process, to verify that the data this object holds is consistent. JUnit tests are great for testing that all of the methods of a single object function correctly, batch checking of consistency is a good way of checking that all of the data in a given database is consistent. Hopefully in the future we will add a batch check consistency application to demonstrate the use of this method.

Throws:
NSValidation.ValidationException - if the object fails consistency

_setUpdateInverseRelationships

boolean _setUpdateInverseRelationships(boolean newValue)
Toggles whether or not inverse relationships should be updates. This is called by ERXGenericRecord.InverseRelationshipUpdater to prevent infinite loops and should not be called by anything else unless you know exactly what you are doing.

Parameters:
newValue - whether or not inverse relationships should be updated
Returns:
the previous setting of the updateInverseRelationships setting

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.