Project Wonder 5.0

er.extensions.partials
Class ERXPartial<T extends ERXGenericRecord>

java.lang.Object
  extended by er.extensions.partials.ERXPartial<T>
Type Parameters:
T - the EO class that this is a partial of

public class ERXPartial<T extends ERXGenericRecord>
extends java.lang.Object

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

Constructor Summary
ERXPartial()
           
 
Method Summary
 void addObjectToBothSidesOfRelationshipWithKey(com.webobjects.eocontrol.EORelationshipManipulation eo, java.lang.String key)
          Calls primaryEO.addObjectToBothSidesOfRelationshipWithKey.
 void awakeFromFetch(com.webobjects.eocontrol.EOEditingContext editingContext)
          Delegated from the base entity.
 void awakeFromInsertion(com.webobjects.eocontrol.EOEditingContext editingContext)
          Delegated from the base entity.
 void delete()
          Delegated from the base entity.
 void didDelete(com.webobjects.eocontrol.EOEditingContext ec)
          Delegated from the base entity.
 void didInsert()
          Delegated from the base entity.
 void didRevert(com.webobjects.eocontrol.EOEditingContext ec)
          Delegated from the base entity.
 void didUpdate()
          Delegated from the base entity.
 com.webobjects.eocontrol.EOEditingContext editingContext()
          Returns primaryEO.editingContext.
 void excludeObjectFromPropertyWithKey(java.lang.Object value, java.lang.String key)
          Calls primaryEO.excludeObjectFromPropertyWithKey.
 void includeObjectIntoPropertyWithKey(java.lang.Object value, java.lang.String key)
          Calls primaryEO.includeObjectIntoPropertyWithKey.
 void mightDelete()
          Delegated from the base entity.
 T primaryEO()
           
 void removeObjectFromBothSidesOfRelationshipWithKey(com.webobjects.eocontrol.EORelationshipManipulation eo, java.lang.String key)
          Calls primaryEO.removeObjectFromBothSidesOfRelationshipWithKey.
 void setPrimaryEO(T primaryEO)
           
 java.lang.Object storedValueForKey(java.lang.String key)
          Returns primaryEO.storedValueForKey.
 void takeStoredValueForKey(java.lang.Object value, java.lang.String key)
          Calls primaryEO.takeStoredValueForKey.
 void validateForInsert()
          Delegated from the base entity.
 void validateForSave()
          Delegated from the base entity.
 void validateForUpdate()
          Delegated from the base entity.
 java.lang.Object validateTakeValueForKeyPath(java.lang.Object value, java.lang.String keyPath)
          Delegated from the base entity.
 java.lang.Object validateValueForKey(java.lang.Object value, java.lang.String key)
          Delegated from the base entity.
 void willDelete()
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERXPartial

public ERXPartial()
Method Detail

setPrimaryEO

public void setPrimaryEO(T primaryEO)

primaryEO

public T primaryEO()

editingContext

public com.webobjects.eocontrol.EOEditingContext editingContext()
Returns primaryEO.editingContext.

Returns:
primaryEO.editingContext

storedValueForKey

public java.lang.Object storedValueForKey(java.lang.String key)
Returns primaryEO.storedValueForKey.

Returns:
primaryEO.storedValueForKey

takeStoredValueForKey

public void takeStoredValueForKey(java.lang.Object value,
                                  java.lang.String key)
Calls primaryEO.takeStoredValueForKey.


includeObjectIntoPropertyWithKey

public void includeObjectIntoPropertyWithKey(java.lang.Object value,
                                             java.lang.String key)
Calls primaryEO.includeObjectIntoPropertyWithKey.


excludeObjectFromPropertyWithKey

public void excludeObjectFromPropertyWithKey(java.lang.Object value,
                                             java.lang.String key)
Calls primaryEO.excludeObjectFromPropertyWithKey.


addObjectToBothSidesOfRelationshipWithKey

public void addObjectToBothSidesOfRelationshipWithKey(com.webobjects.eocontrol.EORelationshipManipulation eo,
                                                      java.lang.String key)
Calls primaryEO.addObjectToBothSidesOfRelationshipWithKey.


removeObjectFromBothSidesOfRelationshipWithKey

public void removeObjectFromBothSidesOfRelationshipWithKey(com.webobjects.eocontrol.EORelationshipManipulation eo,
                                                           java.lang.String key)
Calls primaryEO.removeObjectFromBothSidesOfRelationshipWithKey.


awakeFromInsertion

public void awakeFromInsertion(com.webobjects.eocontrol.EOEditingContext editingContext)
Delegated from the base entity.


awakeFromFetch

public void awakeFromFetch(com.webobjects.eocontrol.EOEditingContext editingContext)
Delegated from the base entity.


delete

public void delete()
Delegated from the base entity.


mightDelete

public void mightDelete()
Delegated from the base entity.


willDelete

public void willDelete()
                throws com.webobjects.foundation.NSValidation.ValidationException
Delegated from the base entity.

Throws:
com.webobjects.foundation.NSValidation.ValidationException

didDelete

public void didDelete(com.webobjects.eocontrol.EOEditingContext ec)
Delegated from the base entity.


willInsert

public void willInsert()
Delegated from the base entity.


didInsert

public void didInsert()
Delegated from the base entity.


willUpdate

public void willUpdate()
Delegated from the base entity.


didUpdate

public void didUpdate()
Delegated from the base entity.


willRevert

public void willRevert()
Delegated from the base entity.


didRevert

public void didRevert(com.webobjects.eocontrol.EOEditingContext ec)
Delegated from the base entity.


validateForSave

public void validateForSave()
                     throws com.webobjects.foundation.NSValidation.ValidationException
Delegated from the base entity.

Throws:
com.webobjects.foundation.NSValidation.ValidationException

validateForInsert

public void validateForInsert()
                       throws com.webobjects.foundation.NSValidation.ValidationException
Delegated from the base entity.

Throws:
com.webobjects.foundation.NSValidation.ValidationException

validateForUpdate

public void validateForUpdate()
                       throws com.webobjects.foundation.NSValidation.ValidationException
Delegated from the base entity.

Throws:
com.webobjects.foundation.NSValidation.ValidationException

validateTakeValueForKeyPath

public java.lang.Object validateTakeValueForKeyPath(java.lang.Object value,
                                                    java.lang.String keyPath)
                                             throws com.webobjects.foundation.NSValidation.ValidationException
Delegated from the base entity.

Throws:
com.webobjects.foundation.NSValidation.ValidationException

validateValueForKey

public java.lang.Object validateValueForKey(java.lang.Object value,
                                            java.lang.String key)
                                     throws com.webobjects.foundation.NSValidation.ValidationException
Delegated from the base entity.

Throws:
com.webobjects.foundation.NSValidation.ValidationException

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

Copyright © 2002 – 2007 Project Wonder.