|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.wocompat.EOModelProcessor
public class EOModelProcessor
Class for converting stored Apple EOModel mapping files to Cayenne DataMaps.
Field Summary | |
---|---|
protected Predicate |
prototypeChecker
|
Constructor Summary | |
---|---|
EOModelProcessor()
|
Method Summary | |
---|---|
protected boolean |
isPrototypesEntity(String entityName)
Returns whether an Entity is an EOF EOPrototypes entity. |
DataMap |
loadEOModel(String path)
Performs EOModel loading. |
DataMap |
loadEOModel(String path,
boolean generateClientClass)
Performs EOModel loading. |
Map |
loadModeIndex(String path)
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 void |
makeFlatRelationships(EOModelHelper helper,
ObjEntity e)
Create Flattened ObjRelationships of the specified entity. |
protected EOModelHelper |
makeHelper(String path,
boolean genereateClientClass)
Creates an returns new EOModelHelper to process EOModel. |
protected Query |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Predicate prototypeChecker
Constructor Detail |
---|
public EOModelProcessor()
Method Detail |
---|
public Map loadModeIndex(String path) throws Exception
Exception
public DataMap loadEOModel(String path) throws Exception
path
- A path to ".eomodeld" directory. If path doesn't end with ".eomodeld",
".eomodeld" suffix is automatically assumed.
Exception
public DataMap loadEOModel(String path, boolean generateClientClass) throws Exception
path
- A path to ".eomodeld" directory. If path doesn't end with ".eomodeld",
".eomodeld" suffix is automatically assumed.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.
Exception
protected boolean isPrototypesEntity(String entityName)
protected EOModelHelper makeHelper(String path, boolean genereateClientClass) throws Exception
Exception
protected Query makeQuery(EOModelHelper helper, EOObjEntity entity, String queryName)
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |