ERXEORestDelegate Class Reference

Inherits er::rest::ERXAbstractRestDelegate.

Collaboration diagram for ERXEORestDelegate:

Collaboration graph
[legend]

List of all members.

Public Member Functions

boolean __hasNumericPrimaryKeys (EOClassDescription classDescription)
 ERXEORestDelegate ()

Protected Member Functions

Object _createObjectOfEntityWithID (EOClassDescription entity, Object id)
Object _fetchObjectOfEntityWithID (EOClassDescription entity, Object id)
boolean _isDelegateForEntity (EOClassDescription entity)
Object _primaryKeyForObject (EOClassDescription entity, Object obj)


Detailed Description

EODelegate is an implementation of the ERXRestRequestNode.Delegate interface that understands EOF.

Author:
mschrag

Constructor & Destructor Documentation


Member Function Documentation

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.

Parameters:
classDescription the class description in question
Returns:
whether or not the given class description has numeric pks

Reimplemented from ERXAbstractRestDelegate.

Object _createObjectOfEntityWithID ( EOClassDescription  entity,
Object  id 
) [protected, virtual]

Object _fetchObjectOfEntityWithID ( EOClassDescription  entity,
Object  id 
) [protected, virtual]

boolean _isDelegateForEntity ( EOClassDescription  entity  )  [protected, virtual]

Object _primaryKeyForObject ( EOClassDescription  entity,
Object  obj 
) [protected, virtual]


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

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