public class EOModelProcessor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.collections.Predicate |
prototypeChecker |
| Constructor and Description |
|---|
EOModelProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isPrototypesEntity(String entityName)
Returns whether an Entity is an EOF EOPrototypes entity.
|
DataMap |
loadEOModel(String path)
Deprecated.
since 4.0 in favor of
loadEOModel(URL). |
DataMap |
loadEOModel(String path,
boolean generateClientClass)
Deprecated.
since 4.0 in favor of
loadEOModel(URL, boolean). |
DataMap |
loadEOModel(URL url)
Performs EOModel loading.
|
DataMap |
loadEOModel(URL url,
boolean generateClientClass)
Performs EOModel loading.
|
Map |
loadModeIndex(String path)
Deprecated.
since 4.0 in favor of
loadModeIndex(URL). |
Map |
loadModeIndex(URL url)
Returns index.eomodeld contents as a Map.
|
protected void |
makeAttributes(EOModelHelper helper,
EOObjEntity objEntity)
Create ObjAttributes of the specified entity, as well as DbAttributes of
the corresponding DbEntity.
|
protected EOObjEntity |
makeEntity(EOModelHelper helper,
String name,
boolean generateClientClass)
Creates and returns a new ObjEntity linked to a corresponding DbEntity.
|
protected QueryDescriptor |
makeEOQueryDescriptor(ObjEntity root,
Map plistMap) |
protected QueryDescriptor |
makeEOSQLQueryDescriptor(ObjEntity root,
Map plistMap) |
protected void |
makeFlatRelationships(EOModelHelper helper,
ObjEntity e)
Create Flattened ObjRelationships of the specified entity.
|
protected EOModelHelper |
makeHelper(URL url)
Creates an returns new EOModelHelper to process EOModel.
|
protected QueryDescriptor |
makeQuery(EOModelHelper helper,
EOObjEntity entity,
String queryName)
Creates a Cayenne query out of EOFetchSpecification data.
|
protected void |
makeRelationships(EOModelHelper helper,
ObjEntity objEntity)
Create ObjRelationships of the specified entity, as well as
DbRelationships of the corresponding DbEntity.
|
protected void |
makeReverseDbRelationships(DbEntity dbEntity)
Create reverse DbRelationships that were not created so far, since
Cayenne requires them.
|
@Deprecated public Map loadModeIndex(String path) throws Exception
loadModeIndex(URL).Exceptionpublic Map loadModeIndex(URL url) throws Exception
Exception@Deprecated public DataMap loadEOModel(String path) throws Exception
loadEOModel(URL).Exception@Deprecated public DataMap loadEOModel(String path, boolean generateClientClass) throws Exception
loadEOModel(URL, boolean).Exceptionpublic DataMap loadEOModel(URL url) throws Exception
url - URL of ".eomodeld" directory.Exceptionpublic DataMap loadEOModel(URL url, boolean generateClientClass) throws Exception
url - URL of ".eomodeld" directory.generateClientClass - if true then loading of EOModel is java client classes aware
and the following processing will work with Java client class
settings of the EOModel.Exceptionprotected boolean isPrototypesEntity(String entityName)
protected EOModelHelper makeHelper(URL url) throws Exception
Exceptionprotected QueryDescriptor makeQuery(EOModelHelper helper, EOObjEntity entity, String queryName)
protected QueryDescriptor makeEOQueryDescriptor(ObjEntity root, Map plistMap)
protected QueryDescriptor makeEOSQLQueryDescriptor(ObjEntity root, Map plistMap)
protected EOObjEntity makeEntity(EOModelHelper helper, String name, boolean generateClientClass)
protected void makeAttributes(EOModelHelper helper, EOObjEntity objEntity)
protected void makeRelationships(EOModelHelper helper, ObjEntity objEntity)
protected void makeReverseDbRelationships(DbEntity dbEntity)
protected void makeFlatRelationships(EOModelHelper helper, ObjEntity e)
Copyright © 2001–2016 Apache Cayenne. All rights reserved.