Project Wonder 5.0

er.extensions.eof
Class ERXGenericRecord.InverseRelationshipUpdater

java.lang.Object
  extended by er.extensions.eof.ERXGenericRecord.InverseRelationshipUpdater
Enclosing class:
ERXGenericRecord

public static class ERXGenericRecord.InverseRelationshipUpdater
extends java.lang.Object

Provides automatic inverse relationship updating for ERXGenericRecord and ERXCustomObject.

Author:
mschrag
Properties
er.extensions.ERXEnterpriseObject.updateInverseRelationships if true, inverse relationships are automatically updated
           

Constructor Summary
ERXGenericRecord.InverseRelationshipUpdater()
           
 
Method Summary
static void excludeObjectFromPropertyWithKey(ERXEnterpriseObject object, java.lang.Object value, java.lang.String key)
          Called from eo.excludeObjectFromPropertyWithKey.
static void includeObjectIntoPropertyWithKey(ERXEnterpriseObject object, java.lang.Object value, java.lang.String key)
          Called from eo.includeObjectIntoPropertyWithKey.
static void setUpdateInverseRelationships(boolean updateInverseRelationships)
          Toggles the global setting for updating inverse relationships.
static void takeStoredValueForKey(ERXEnterpriseObject object, java.lang.Object value, java.lang.String key)
          Called from eo.takeValueForKey.
static boolean updateInverseRelationships()
          Returns whether or not inverse relationships are automatically updated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERXGenericRecord.InverseRelationshipUpdater

public ERXGenericRecord.InverseRelationshipUpdater()
Method Detail

setUpdateInverseRelationships

public static void setUpdateInverseRelationships(boolean updateInverseRelationships)
Toggles the global setting for updating inverse relationships.

Parameters:
updateInverseRelationships - if true, inverse relationships are automatically updated

updateInverseRelationships

public static boolean updateInverseRelationships()
Returns whether or not inverse relationships are automatically updated.

Returns:
if true, inverse relationships are automatically updated

includeObjectIntoPropertyWithKey

public static void includeObjectIntoPropertyWithKey(ERXEnterpriseObject object,
                                                    java.lang.Object value,
                                                    java.lang.String key)
Called from eo.includeObjectIntoPropertyWithKey.

Parameters:
object - the object being updated
value - the value to include in the relationship
key - the name of the relationship to update

excludeObjectFromPropertyWithKey

public static void excludeObjectFromPropertyWithKey(ERXEnterpriseObject object,
                                                    java.lang.Object value,
                                                    java.lang.String key)
Called from eo.excludeObjectFromPropertyWithKey.

Parameters:
object - the object being updated
value - the value to remove from the relationship
key - the name of the relationship to update

takeStoredValueForKey

public static void takeStoredValueForKey(ERXEnterpriseObject object,
                                         java.lang.Object value,
                                         java.lang.String key)
Called from eo.takeValueForKey.

Parameters:
object - the object being updated
value - the value to set on the key
key - the name of the key to update

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

Copyright © 2002 – 2007 Project Wonder.