Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.cayenne.wocompat
Class EOModelProcessor  view EOModelProcessor download EOModelProcessor.java

java.lang.Object
  extended byorg.objectstyle.cayenne.wocompat.EOModelProcessor

public class EOModelProcessor
extends java.lang.Object

Class that converts EOModels to org.objectstyle.cayenne.map.DataMap objects.


Nested Class Summary
(package private) static class EOModelProcessor.EODbAttribute
          Special DbAttribute subclass that stores extra info needed to work with EOModels.
 
Constructor Summary
EOModelProcessor()
           
 
Method Summary
 org.objectstyle.cayenne.map.DataMap loadEOModel(java.lang.String path)
          Performs EOModel loading.
protected  void makeAttributes(EOModelHelper helper, org.objectstyle.cayenne.map.ObjEntity e)
          Create ObjAttributes of the specified entity, as well as DbAttributes of the corresponding DbEntity.
protected  org.objectstyle.cayenne.map.ObjEntity makeEntity(EOModelHelper helper, java.lang.String name)
          Creates and returns a new ObjEntity linked to a corresponding DbEntity.
protected  void makeFlatRelationships(EOModelHelper helper, org.objectstyle.cayenne.map.ObjEntity e)
          Create Flattened ObjRelationships of the specified entity.
protected  EOModelHelper makeHelper(java.lang.String path)
          Creates an returns new EOModelHelper to process EOModel.
protected  void makeRelationships(EOModelHelper helper, org.objectstyle.cayenne.map.ObjEntity e)
          Create ObjRelationships of the specified entity, as well as DbRelationships of the corresponding DbEntity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EOModelProcessor

public EOModelProcessor()
Method Detail

loadEOModel

public org.objectstyle.cayenne.map.DataMap loadEOModel(java.lang.String path)
                                                throws java.lang.Exception
Performs EOModel loading.


makeHelper

protected EOModelHelper makeHelper(java.lang.String path)
                            throws java.lang.Exception
Creates an returns new EOModelHelper to process EOModel. Exists mostly for the benefit of subclasses.


makeEntity

protected org.objectstyle.cayenne.map.ObjEntity makeEntity(EOModelHelper helper,
                                                           java.lang.String name)
Creates and returns a new ObjEntity linked to a corresponding DbEntity.


makeAttributes

protected void makeAttributes(EOModelHelper helper,
                              org.objectstyle.cayenne.map.ObjEntity e)
Create ObjAttributes of the specified entity, as well as DbAttributes of the corresponding DbEntity.


makeRelationships

protected void makeRelationships(EOModelHelper helper,
                                 org.objectstyle.cayenne.map.ObjEntity e)
Create ObjRelationships of the specified entity, as well as DbRelationships of the corresponding DbEntity.


makeFlatRelationships

protected void makeFlatRelationships(EOModelHelper helper,
                                     org.objectstyle.cayenne.map.ObjEntity e)
Create Flattened ObjRelationships of the specified entity.