public class ERDDelayedSelectorInvocationAssignment extends ERDDelayedAssignment implements ERDComputingAssignmentInterface
entity.name = 'Person' and propertyKey = 'username' -> componentName = (object, componentForKey, propertyKey)
Resolving the rule for componentName, would end up invoking the componentForKey(Object)
method on the current object
from the rule context, passing the current propertyKey through for the argument. This would boil down to
object.componentForKey("username")
.
The array in the value for this assignment must have two or more objects. The first object is a key path evaluated on the rule context to find the target of the selector. The second object is the selector name, it is a constant and is not evaluated on the rule context. All subsequent objects in the array are treated as key paths to resolve on the rule context to get the arguments for the selector.
Assumptions:
Modifier and Type | Class and Description |
---|---|
static class |
ERDDelayedSelectorInvocationAssignment.DefaultImplementation |
com.webobjects.eocontrol.EOKeyValueArchiving._NullValueSupport, com.webobjects.eocontrol.EOKeyValueArchiving._NumberSupport, com.webobjects.eocontrol.EOKeyValueArchiving._TimestampSupport, com.webobjects.eocontrol.EOKeyValueArchiving.Awaking, com.webobjects.eocontrol.EOKeyValueArchiving.FinishInitialization, com.webobjects.eocontrol.EOKeyValueArchiving.Support
Constructor and Description |
---|
ERDDelayedSelectorInvocationAssignment(com.webobjects.eocontrol.EOKeyValueUnarchiver u) |
ERDDelayedSelectorInvocationAssignment(String key,
Object value) |
Modifier and Type | Method and Description |
---|---|
static Object |
decodeWithKeyValueUnarchiver(com.webobjects.eocontrol.EOKeyValueUnarchiver eokeyvalueunarchiver) |
NSArray |
dependentKeys(String keyPath) |
Object |
fireNow(com.webobjects.directtoweb.D2WContext c)
Implemented by subclasses.
|
fire
public ERDDelayedSelectorInvocationAssignment(com.webobjects.eocontrol.EOKeyValueUnarchiver u)
public static Object decodeWithKeyValueUnarchiver(com.webobjects.eocontrol.EOKeyValueUnarchiver eokeyvalueunarchiver)
public NSArray dependentKeys(String keyPath)
dependentKeys
in interface ERDComputingAssignmentInterface
public Object fireNow(com.webobjects.directtoweb.D2WContext c)
ERDDelayedAssignment
fireNow
in class ERDDelayedAssignment
Copyright © 2002 – 2020 Project Wonder.