|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecter.rest.ERXAbstractRestDelegate
public abstract class ERXAbstractRestDelegate
ERXAbstractRestDelegate is the default implementation of the IERXRestDelegate interface that can handle looking up delegates for non-eo classes, etc.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface er.rest.IERXRestDelegate |
---|
IERXRestDelegate.Factory |
Constructor Summary | |
---|---|
ERXAbstractRestDelegate()
|
|
ERXAbstractRestDelegate(com.webobjects.eocontrol.EOEditingContext editingContext)
|
Method Summary | |
---|---|
boolean |
__hasNumericPrimaryKeys(com.webobjects.eocontrol.EOClassDescription classDescription)
This API will likely change. |
protected abstract java.lang.Object |
_createObjectOfEntityWithID(com.webobjects.eocontrol.EOClassDescription entity,
java.lang.Object id)
|
protected abstract java.lang.Object |
_fetchObjectOfEntityWithID(com.webobjects.eocontrol.EOClassDescription entity,
java.lang.Object id)
|
protected abstract boolean |
_isDelegateForEntity(com.webobjects.eocontrol.EOClassDescription entity)
|
protected abstract java.lang.Object |
_primaryKeyForObject(com.webobjects.eocontrol.EOClassDescription entity,
java.lang.Object obj)
|
java.lang.Object |
createObjectOfEntityWithID(com.webobjects.eocontrol.EOClassDescription entity,
java.lang.Object id)
Creates a new instance of the entity. |
com.webobjects.eocontrol.EOEditingContext |
editingContext()
|
java.lang.Object |
objectOfEntityWithID(com.webobjects.eocontrol.EOClassDescription entity,
java.lang.Object id)
Returns the object with the given entity and ID. |
java.lang.Object |
primaryKeyForObject(java.lang.Object obj)
Returns the primary key for the specified object. |
void |
setCreateMissingObjects(boolean createMissingObjects)
|
void |
setEditingContext(com.webobjects.eocontrol.EOEditingContext editingContext)
Sets the editing context fort his rest delegate (which might not be necessary, but EO delegates require it). |
boolean |
shouldCreateMissingObjects()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ERXAbstractRestDelegate()
public ERXAbstractRestDelegate(com.webobjects.eocontrol.EOEditingContext editingContext)
Method Detail |
---|
public boolean __hasNumericPrimaryKeys(com.webobjects.eocontrol.EOClassDescription classDescription)
IERXRestDelegate
__hasNumericPrimaryKeys
in interface IERXRestDelegate
classDescription
- the class description in question
public void setCreateMissingObjects(boolean createMissingObjects)
public boolean shouldCreateMissingObjects()
public void setEditingContext(com.webobjects.eocontrol.EOEditingContext editingContext)
IERXRestDelegate
setEditingContext
in interface IERXRestDelegate
editingContext
- the editing context for this delegatepublic com.webobjects.eocontrol.EOEditingContext editingContext()
public java.lang.Object primaryKeyForObject(java.lang.Object obj)
IERXRestDelegate
primaryKeyForObject
in interface IERXRestDelegate
obj
- the object to return a pk for
public java.lang.Object createObjectOfEntityWithID(com.webobjects.eocontrol.EOClassDescription entity, java.lang.Object id)
IERXRestDelegate
createObjectOfEntityWithID
in interface IERXRestDelegate
entity
- the entity
public java.lang.Object objectOfEntityWithID(com.webobjects.eocontrol.EOClassDescription entity, java.lang.Object id)
IERXRestDelegate
objectOfEntityWithID
in interface IERXRestDelegate
entity
- the entityid
- the ID of the object
protected abstract boolean _isDelegateForEntity(com.webobjects.eocontrol.EOClassDescription entity)
protected abstract java.lang.Object _createObjectOfEntityWithID(com.webobjects.eocontrol.EOClassDescription entity, java.lang.Object id)
protected abstract java.lang.Object _primaryKeyForObject(com.webobjects.eocontrol.EOClassDescription entity, java.lang.Object obj)
protected abstract java.lang.Object _fetchObjectOfEntityWithID(com.webobjects.eocontrol.EOClassDescription entity, java.lang.Object id)
|
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 |