org.apache.cayenne.jpa.bridge
Class DataMapConverter

java.lang.Object
  extended by org.apache.cayenne.jpa.bridge.DataMapConverter

public class DataMapConverter
extends Object

A converter between JpaEntityMap and Cayenne DataMap.

Author:
Andrus Adamchik

Field Summary
protected  EntityMapLoaderContext context
           
protected  ProjectPath targetPath
           
protected  HierarchicalTreeVisitor visitor
           
 
Constructor Summary
DataMapConverter()
           
 
Method Summary
protected  HierarchicalTreeVisitor createVisitor()
          Creates a stateless instance of the JpaEntityMap traversal visitor.
protected  void recordConflict(ProjectPath path, String message)
           
 DataMap toDataMap(String name, EntityMapLoaderContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected EntityMapLoaderContext context

targetPath

protected ProjectPath targetPath

visitor

protected HierarchicalTreeVisitor visitor
Constructor Detail

DataMapConverter

public DataMapConverter()
Method Detail

toDataMap

public DataMap toDataMap(String name,
                         EntityMapLoaderContext context)

recordConflict

protected void recordConflict(ProjectPath path,
                              String message)

createVisitor

protected HierarchicalTreeVisitor createVisitor()
Creates a stateless instance of the JpaEntityMap traversal visitor. This method is lazily invoked and cached by this object.



Copyright © 2001-2007 Apache Cayenne. All Rights Reserved.