|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecter.extensions.partials.ERXPartial<T>
T
- the EO class that this is a partial ofpublic class ERXPartial<T extends ERXGenericRecord>
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".
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 |
---|
public ERXPartial()
Method Detail |
---|
public void setPrimaryEO(T primaryEO)
public T primaryEO()
public com.webobjects.eocontrol.EOEditingContext editingContext()
public java.lang.Object storedValueForKey(java.lang.String key)
public void takeStoredValueForKey(java.lang.Object value, java.lang.String key)
public void includeObjectIntoPropertyWithKey(java.lang.Object value, java.lang.String key)
public void excludeObjectFromPropertyWithKey(java.lang.Object value, java.lang.String key)
public void addObjectToBothSidesOfRelationshipWithKey(com.webobjects.eocontrol.EORelationshipManipulation eo, java.lang.String key)
public void removeObjectFromBothSidesOfRelationshipWithKey(com.webobjects.eocontrol.EORelationshipManipulation eo, java.lang.String key)
public void awakeFromInsertion(com.webobjects.eocontrol.EOEditingContext editingContext)
public void awakeFromFetch(com.webobjects.eocontrol.EOEditingContext editingContext)
public void delete()
public void mightDelete()
public void willDelete() throws com.webobjects.foundation.NSValidation.ValidationException
com.webobjects.foundation.NSValidation.ValidationException
public void didDelete(com.webobjects.eocontrol.EOEditingContext ec)
public void willInsert()
public void didInsert()
public void willUpdate()
public void didUpdate()
public void willRevert()
public void didRevert(com.webobjects.eocontrol.EOEditingContext ec)
public void validateForSave() throws com.webobjects.foundation.NSValidation.ValidationException
com.webobjects.foundation.NSValidation.ValidationException
public void validateForInsert() throws com.webobjects.foundation.NSValidation.ValidationException
com.webobjects.foundation.NSValidation.ValidationException
public void validateForUpdate() throws com.webobjects.foundation.NSValidation.ValidationException
com.webobjects.foundation.NSValidation.ValidationException
public java.lang.Object validateTakeValueForKeyPath(java.lang.Object value, java.lang.String keyPath) throws com.webobjects.foundation.NSValidation.ValidationException
com.webobjects.foundation.NSValidation.ValidationException
public java.lang.Object validateValueForKey(java.lang.Object value, java.lang.String key) throws com.webobjects.foundation.NSValidation.ValidationException
com.webobjects.foundation.NSValidation.ValidationException
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |