com.webobjects.directtoweb
Class EntityAssignment
java.lang.Object
com.webobjects.directtoweb.Assignment
com.webobjects.directtoweb.EntityAssignment
- All Implemented Interfaces:
- EOKeyValueArchiving, Serializable
public class EntityAssignment
- extends Assignment
The EntityAssignment class performs assignment of a key to an object that
represents an entity.
- See Also:
EOEntity,
Serialized Form
EntityAssignment
public EntityAssignment(String keyPath,
Object value)
- Creates an instance of EntityAssignment
with the specified key path and value.
The current implementation uses a string to represent the name of an
entity in the default model group.
The implementation is subject to change in future releases.
- Parameters:
keyPath - the key pathvalue - instance of String- See Also:
Assignment.Assignment(String, Object),
EOEntity,
EOModelGroup
EntityAssignment
public EntityAssignment(EOKeyValueUnarchiver unarchiver)
- Creates an instance of EntityAssignment
based on an EOKeyValueUnarchiver.
This is used to read the assignment information from a rule file.
- Parameters:
unarchiver - the unarchiver- See Also:
EntityAssignment.EntityAssignment(String, Object),
Assignment.Assignment(EOKeyValueUnarchiver)
fire
public Object fire(D2WContext context)
- Gets the entity, in the default model group, specified by the
value method.
- Overrides:
fire in class Assignment
- Parameters:
context - instance of D2WContext
- Returns:
- instance of EOEntity
- See Also:
Assignment.fire(D2WContext context),
EOEntity,
EOModelGroup
decodeWithKeyValueUnarchiver
public static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver)
Copyright © 2000-2008 Apple Inc.