Classes | |
| class | Factory |
Public Member Functions | |
| boolean | __hasNumericPrimaryKeys (EOClassDescription classDescription) |
| Object | createObjectOfEntityWithID (EOClassDescription entity, Object id) |
| Object | objectOfEntityWithID (EOClassDescription entity, Object id) |
| Object | primaryKeyForObject (Object obj) |
| void | setEditingContext (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 |
Implemented in ERXAbstractRestDelegate, and ERXEORestDelegate.
| Object createObjectOfEntityWithID | ( | EOClassDescription | entity, | |
| Object | id | |||
| ) |
Creates a new instance of the entity.
| entity | the entity |
Implemented in ERXAbstractRestDelegate.
| Object objectOfEntityWithID | ( | EOClassDescription | entity, | |
| Object | id | |||
| ) |
Returns the object with the given entity and ID.
| entity | the entity | |
| id | the ID of the object |
Implemented in ERXAbstractRestDelegate.
| Object primaryKeyForObject | ( | Object | obj | ) |
Returns the primary key for the specified object.
| obj | the object to return a pk for |
Implemented in ERXAbstractRestDelegate.
| 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 |
Implemented in ERXAbstractRestDelegate.
1.5.8