Inherited by JavaMonitorRestDelegate, ERXEORestDelegate, ERXNoOpRestDelegate, ClientCompanyRestDelegate, CarRestDelegate, ManufacturerRestDelegate, EOEntityRestDelegate, EOModelGroupRestDelegate, and EOModelRestDelegate.

Public Member Functions | |
| boolean | __hasNumericPrimaryKeys (EOClassDescription classDescription) |
| Object | createObjectOfEntityWithID (EOClassDescription entity, Object id) |
| EOEditingContext | editingContext () |
| ERXAbstractRestDelegate (EOEditingContext editingContext) | |
| ERXAbstractRestDelegate () | |
| Object | objectOfEntityWithID (EOClassDescription entity, Object id) |
| Object | primaryKeyForObject (Object obj) |
| void | setCreateMissingObjects (boolean createMissingObjects) |
| void | setEditingContext (EOEditingContext editingContext) |
| boolean | shouldCreateMissingObjects () |
Protected Member Functions | |
| abstract Object | _createObjectOfEntityWithID (EOClassDescription entity, Object id) |
| abstract Object | _fetchObjectOfEntityWithID (EOClassDescription entity, Object id) |
| abstract boolean | _isDelegateForEntity (EOClassDescription entity) |
| abstract Object | _primaryKeyForObject (EOClassDescription entity, Object obj) |
Private Attributes | |
| boolean | _createMissingObjects |
| EOEditingContext | _editingContext |
| ERXAbstractRestDelegate | ( | EOEditingContext | editingContext | ) |
| boolean __hasNumericPrimaryKeys | ( | EOClassDescription | classDescription | ) |
This API will likely change. Override if you have to for now, but I'm not sure if it makes more sense to return an array of pk classes, a map of pk to pk class, this boolean, or an array of pk attribute names. If we return pk names, we could probably get rid of primaryKeyForObject, or at least fully implement it in ERXAbstractRestDelegate, but I don't want to fully commit to this API yet. In the meantime, this at least provides a stapgap for automatic registration.
| classDescription | the class description in question |
Implements IERXRestDelegate.
Reimplemented in ERXEORestDelegate.
| abstract Object _createObjectOfEntityWithID | ( | EOClassDescription | entity, | |
| Object | id | |||
| ) | [protected, pure virtual] |
| abstract Object _fetchObjectOfEntityWithID | ( | EOClassDescription | entity, | |
| Object | id | |||
| ) | [protected, pure virtual] |
| abstract boolean _isDelegateForEntity | ( | EOClassDescription | entity | ) | [protected, pure virtual] |
| abstract Object _primaryKeyForObject | ( | EOClassDescription | entity, | |
| Object | obj | |||
| ) | [protected, pure virtual] |
| Object createObjectOfEntityWithID | ( | EOClassDescription | entity, | |
| Object | id | |||
| ) |
Creates a new instance of the entity.
| entity | the entity |
Implements IERXRestDelegate.
| EOEditingContext editingContext | ( | ) |
| Object objectOfEntityWithID | ( | EOClassDescription | entity, | |
| Object | id | |||
| ) |
Returns the object with the given entity and ID.
| entity | the entity | |
| id | the ID of the object |
Implements IERXRestDelegate.
| Object primaryKeyForObject | ( | Object | obj | ) |
Returns the primary key for the specified object.
| obj | the object to return a pk for |
Implements IERXRestDelegate.
| void setCreateMissingObjects | ( | boolean | createMissingObjects | ) |
| void setEditingContext | ( | EOEditingContext | editingContext | ) |
Sets the editing context fort his rest delegate (which might not be necessary, but EO delegates require it).
| editingContext | the editing context for this delegate |
Implements IERXRestDelegate.
| boolean shouldCreateMissingObjects | ( | ) |
Reimplemented in ClientCompanyRestDelegate.
boolean _createMissingObjects [private] |
EOEditingContext _editingContext [private] |
1.5.8