ERXPartial< T extends ERXGenericRecord > Class Reference

List of all members.

Public Member Functions

void addObjectToBothSidesOfRelationshipWithKey (EORelationshipManipulation eo, String key)
void awakeFromFetch (EOEditingContext editingContext)
void awakeFromInsertion (EOEditingContext editingContext)
void delete ()
void didDelete (EOEditingContext ec)
void didInsert ()
void didRevert (EOEditingContext ec)
void didUpdate ()
EOEditingContext editingContext ()
void excludeObjectFromPropertyWithKey (Object value, String key)
void includeObjectIntoPropertyWithKey (Object value, String key)
void mightDelete ()
primaryEO ()
void removeObjectFromBothSidesOfRelationshipWithKey (EORelationshipManipulation eo, String key)
void setPrimaryEO (T primaryEO)
Object storedValueForKey (String key)
void takeStoredValueForKey (Object value, String key)
void validateForInsert () throws NSValidation.ValidationException
void validateForSave () throws NSValidation.ValidationException
void validateForUpdate () throws NSValidation.ValidationException
Object validateTakeValueForKeyPath (Object value, String keyPath) throws ValidationException
Object validateValueForKey (Object value, String key) throws NSValidation.ValidationException
void willDelete () throws NSValidation.ValidationException
void willInsert ()
void willRevert ()
void willUpdate ()

Private Attributes

_primaryEO


Detailed Description

For overview information on partials, read the package.html in er.extensions.partials.

ERXPartial is the superclass of all partial entity implementations. ERXPartial is not itself an EO, but is acts as a partial typesafe wrapper around an existing base EO (which must extend ERXPartialGenericRecord). For instance, the base entity might be Person, but the partial may be CalendarPerson which might have expose like calendarPerson.scheduledEvents().

To obtain a partial, you request an instance from a base EO. Take the Person example from above. You can access the interface of the CalendarPerson partial in two ways:

Person person = ...; CalendarPerson calendarPerson = person.partialForClass(CalendarPerson.class);

or

Person person = ...; CalendarPerson calendarPerson = person.valueForKey("@CalendarPerson");

which allows easy use of the partial entities in component bindings, like "person.@CalendarPerson.scheduledEvents".

Author:
mschrag
Parameters:
<T> the EO class that this is a partial of

Member Function Documentation

void addObjectToBothSidesOfRelationshipWithKey ( EORelationshipManipulation  eo,
String  key 
)

Calls primaryEO.addObjectToBothSidesOfRelationshipWithKey.

void awakeFromFetch ( EOEditingContext  editingContext  ) 

Delegated from the base entity.

void awakeFromInsertion ( EOEditingContext  editingContext  ) 

Delegated from the base entity.

void delete (  ) 

Delegated from the base entity.

void didDelete ( EOEditingContext  ec  ) 

Delegated from the base entity.

void didInsert (  ) 

Delegated from the base entity.

void didRevert ( EOEditingContext  ec  ) 

Delegated from the base entity.

void didUpdate (  ) 

Delegated from the base entity.

EOEditingContext editingContext (  ) 

Returns primaryEO.editingContext.

Returns:
primaryEO.editingContext

void excludeObjectFromPropertyWithKey ( Object  value,
String  key 
)

Calls primaryEO.excludeObjectFromPropertyWithKey.

void includeObjectIntoPropertyWithKey ( Object  value,
String  key 
)

Calls primaryEO.includeObjectIntoPropertyWithKey.

void mightDelete (  ) 

Delegated from the base entity.

T primaryEO (  ) 

void removeObjectFromBothSidesOfRelationshipWithKey ( EORelationshipManipulation  eo,
String  key 
)

Calls primaryEO.removeObjectFromBothSidesOfRelationshipWithKey.

void setPrimaryEO ( primaryEO  ) 

Object storedValueForKey ( String  key  ) 

Returns primaryEO.storedValueForKey.

Returns:
primaryEO.storedValueForKey

void takeStoredValueForKey ( Object  value,
String  key 
)

Calls primaryEO.takeStoredValueForKey.

void validateForInsert (  )  throws NSValidation.ValidationException

Delegated from the base entity.

void validateForSave (  )  throws NSValidation.ValidationException

Delegated from the base entity.

void validateForUpdate (  )  throws NSValidation.ValidationException

Delegated from the base entity.

Object validateTakeValueForKeyPath ( Object  value,
String  keyPath 
) throws ValidationException

Delegated from the base entity.

Object validateValueForKey ( Object  value,
String  key 
) throws NSValidation.ValidationException

Delegated from the base entity.

void willDelete (  )  throws NSValidation.ValidationException

Delegated from the base entity.

void willInsert (  ) 

Delegated from the base entity.

void willRevert (  ) 

Delegated from the base entity.

void willUpdate (  ) 

Delegated from the base entity.


Member Data Documentation

T _primaryEO [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:17 2012 for Project Wonder by  doxygen 1.5.8