|
Project Wonder 5.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.webobjects.eoaccess.EOModel
com.webobjects.eoaccess.ERXModel
public class ERXModel
This EOModel subclass primarily provides the opportunity to subclass EOEntity.
Note the package com.webobjects.eoaccess is used to
allow any protected or default access superclass instance methods to resolve
at runtime.
To allow for extended prototypes set
er.extensions.ERXModel.useExtendedPrototypes=true.
Note: this may be incompatible with ERXModelGroup#flattenPrototypes.
The existence of prototype entities based on specific conventions is checked and the attributes of those prototype entities are added to the model's prototype attributes cache in a specific order. The search order ensures that the same prototype attribute names in different prototype entities get chosen in a predictable way.
Consequently, you can use this search order knowledge to over-ride Wonder's ERPrototypes for your entire set of application eomodels or just for specific named eomodels.
To understand the variables used in deriving the prototype entity names that are searched a few definitions are appropriate
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.webobjects.eoaccess.EOModel |
|---|
EOModel._DefaultModelCreator, EOModel.EOModelFileNameFilter |
| Field Summary | |
|---|---|
static Object |
_ERXGlobalModelLock
|
| Fields inherited from class com.webobjects.eoaccess.EOModel |
|---|
_adaptorName, _connectionDictionary, _entities, _entitiesByClass, _entitiesByName, _EOGlobalModelLock, _extraRefCount, _group, _internalInfo, _name, _prototypesByName, _sharedObjectEntities, _storedProcedures, _subEntitiesCache, _url, _userInfo, EntityLoadedNotification |
| Fields inherited from interface com.webobjects.foundation.NSDisposable |
|---|
_CLASS |
| Constructor Summary | |
|---|---|
ERXModel()
Creates and returns a new ERXModel. |
|
ERXModel(NSDictionary propertyList,
String path)
|
|
ERXModel(NSDictionary propertyList,
URL url)
|
|
ERXModel(URL url)
Creates a new EOModel object by reading the contents of the model archive at url. |
|
| Method Summary | |
|---|---|
Object |
_addEntityWithPropertyList(Object propertyList)
Sets the default EOEntity class to com.webobjects.eoaccess.ERXEntity. |
NSArray |
availablePrototypeAttributeNames()
Overridden to use our prototype creation method if er.extensions.ERXModel.useExtendedPrototypes=true. |
static void |
createPrototypes(EOModel model)
Create the prototype cache for the given model by walking a search order. |
static boolean |
isUseExtendedPrototypesEnabled()
Defaults to false. |
EOAttribute |
prototypeAttributeNamed(String name)
Overridden to use our prototype creation method if er.extensions.ERXModel.useExtendedPrototypes=true. |
void |
setModelGroup(EOModelGroup modelGroup)
|
protected boolean |
useExtendedPrototypes()
Defaults to false as returned by isUseExtendedPrototypesEnabled(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static Object _ERXGlobalModelLock
| Constructor Detail |
|---|
public ERXModel()
public ERXModel(URL url)
url - - The java.net.URL to a model archive.
public ERXModel(NSDictionary propertyList,
String path)
propertyList - path -
public ERXModel(NSDictionary propertyList,
URL url)
propertyList - url - | Method Detail |
|---|
public static void createPrototypes(EOModel model)
model - public static boolean isUseExtendedPrototypesEnabled()
ERXModelGroup#flattenPrototypes.
er.extensions.ERXModel.useExtendedPrototypes.
public Object _addEntityWithPropertyList(Object propertyList)
throws InstantiationException,
IllegalAccessException
er.extensions.ERXModel.defaultEOEntityClassName however your class
must be in the same package unless you plan on re-implementing eof itself.
_addEntityWithPropertyList in class EOModelInstantiationException
IllegalAccessExceptionEOModel._addEntityWithPropertyList(java.lang.Object)public NSArray availablePrototypeAttributeNames()
er.extensions.ERXModel.useExtendedPrototypes=true.
availablePrototypeAttributeNames in class EOModelpublic EOAttribute prototypeAttributeNamed(String name)
er.extensions.ERXModel.useExtendedPrototypes=true.
prototypeAttributeNamed in class EOModelpublic void setModelGroup(EOModelGroup modelGroup)
setModelGroup in class EOModelprotected boolean useExtendedPrototypes()
isUseExtendedPrototypesEnabled().
ERXModel#isUseExtendedPrototypesEnabled()
|
Last updated: Wed, Feb 22, 2012 07:00 AM EST | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||