Project Wonder 5.0

er.rest
Class ERXEORestDelegate

java.lang.Object
  extended by er.rest.ERXAbstractRestDelegate
      extended by er.rest.ERXEORestDelegate
All Implemented Interfaces:
IERXRestDelegate

public class ERXEORestDelegate
extends ERXAbstractRestDelegate

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

Author:
mschrag

Nested Class Summary
 
Nested classes/interfaces inherited from interface er.rest.IERXRestDelegate
IERXRestDelegate.Factory
 
Constructor Summary
ERXEORestDelegate()
           
 
Method Summary
 boolean __hasNumericPrimaryKeys(com.webobjects.eocontrol.EOClassDescription classDescription)
          This API will likely change.
protected  java.lang.Object _createObjectOfEntityWithID(com.webobjects.eocontrol.EOClassDescription entity, java.lang.Object id)
           
protected  java.lang.Object _fetchObjectOfEntityWithID(com.webobjects.eocontrol.EOClassDescription entity, java.lang.Object id)
           
protected  boolean _isDelegateForEntity(com.webobjects.eocontrol.EOClassDescription entity)
           
protected  java.lang.Object _primaryKeyForObject(com.webobjects.eocontrol.EOClassDescription entity, java.lang.Object obj)
           
 
Methods inherited from class er.rest.ERXAbstractRestDelegate
createObjectOfEntityWithID, editingContext, objectOfEntityWithID, primaryKeyForObject, setCreateMissingObjects, setEditingContext, shouldCreateMissingObjects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERXEORestDelegate

public ERXEORestDelegate()
Method Detail

__hasNumericPrimaryKeys

public boolean __hasNumericPrimaryKeys(com.webobjects.eocontrol.EOClassDescription classDescription)
Description copied from interface: IERXRestDelegate
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.

Specified by:
__hasNumericPrimaryKeys in interface IERXRestDelegate
Overrides:
__hasNumericPrimaryKeys in class ERXAbstractRestDelegate
Parameters:
classDescription - the class description in question
Returns:
whether or not the given class description has numeric pks

_isDelegateForEntity

protected boolean _isDelegateForEntity(com.webobjects.eocontrol.EOClassDescription entity)
Specified by:
_isDelegateForEntity in class ERXAbstractRestDelegate

_createObjectOfEntityWithID

protected java.lang.Object _createObjectOfEntityWithID(com.webobjects.eocontrol.EOClassDescription entity,
                                                       java.lang.Object id)
Specified by:
_createObjectOfEntityWithID in class ERXAbstractRestDelegate

_primaryKeyForObject

protected java.lang.Object _primaryKeyForObject(com.webobjects.eocontrol.EOClassDescription entity,
                                                java.lang.Object obj)
Specified by:
_primaryKeyForObject in class ERXAbstractRestDelegate

_fetchObjectOfEntityWithID

protected java.lang.Object _fetchObjectOfEntityWithID(com.webobjects.eocontrol.EOClassDescription entity,
                                                      java.lang.Object id)
Specified by:
_fetchObjectOfEntityWithID in class ERXAbstractRestDelegate

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

Copyright © 2002 – 2007 Project Wonder.