org.apache.cayenne.wocompat
Class EOObjEntity

java.lang.Object
  extended by org.apache.cayenne.map.Entity
      extended by org.apache.cayenne.map.ObjEntity
          extended by org.apache.cayenne.wocompat.EOObjEntity
All Implemented Interfaces:
Serializable, EventListener, ObjEntityListener, CayenneMapEntry, XMLSerializable

public class EOObjEntity
extends ObjEntity

An extension of ObjEntity used to accomodate extra EOModel entity properties.

See Also:
Serialized Form

Field Summary
protected  boolean abstractEntity
           
protected  boolean subclass
           
 
Fields inherited from class org.apache.cayenne.map.ObjEntity
_abstract, attributeOverrides, callbacks, className, clientClassName, clientSuperClassName, dbEntityName, DEFAULT_GENERIC_CLASSES, entityListeners, excludingDefaultListeners, excludingSuperclassListeners, LOCK_TYPE_NONE, LOCK_TYPE_OPTIMISTIC, lockType, qualifier, readOnly, serverOnly, superClassName, superEntityName
 
Fields inherited from class org.apache.cayenne.map.Entity
attributes, dataMap, name, OUTER_JOIN_INDICATOR, PATH_SEPARATOR, relationships
 
Constructor Summary
EOObjEntity()
           
EOObjEntity(String name)
           
 
Method Summary
 Collection getEOQueries()
          Returns a collection of queries for this entity.
 EOQuery getEOQuery(String queryName)
          Returns stored EOQuery.
 boolean isAbstractEntity()
           
 boolean isSubclass()
           
 String localQueryName(String qualifiedQueryName)
           
 String qualifiedQueryName(String queryName)
          Translates query name local to the ObjEntity to the global name.
 void setAbstractEntity(boolean abstractEntity)
           
 void setSubclass(boolean subclass)
           
 Expression translateToDbPath(Expression expression)
          Overrides super to support translation of EO attributes that have no ObjAttributes.
 
Methods inherited from class org.apache.cayenne.map.ObjEntity
addAttributeOverride, addEntityListener, clearDbMapping, encodeAsXML, getAttribute, getAttributeForDbAttribute, getAttributeMap, getAttributes, getCallbackMap, getClassName, getClientClassName, getClientEntity, getClientSuperClassName, getDbEntity, getDbEntityName, getDeclaredAttributeOverrides, getDeclaredAttributes, getDeclaredLockType, getDeclaredQualifier, getDeclaredRelationships, getEntityListener, getEntityListeners, getJavaClass, getLockType, getPrimaryKeyNames, getPrimaryKeys, getRelationship, getRelationshipForDbRelationship, getRelationshipMap, getRelationships, getSuperClassName, getSuperEntity, getSuperEntityName, isAbstract, isClientAllowed, isExcludingDefaultListeners, isExcludingSuperclassListeners, isGeneric, isReadOnly, isServerOnly, isSubentityOf, lastPathComponent, objEntityAdded, objEntityChanged, objEntityRemoved, removeEntityListener, resolvePath, resolvePathComponents, setAbstract, setClassName, setClientClassName, setClientSuperClassName, setDbEntity, setDbEntityName, setDeclaredLockType, setDeclaredQualifier, setExcludingDefaultListeners, setExcludingSuperclassListeners, setReadOnly, setServerOnly, setSuperClassName, setSuperEntityName, translateToRelatedEntity
 
Methods inherited from class org.apache.cayenne.map.Entity
addAttribute, addRelationship, clearAttributes, clearRelationships, getAnyRelationship, getDataMap, getName, getParent, removeAttribute, removeRelationship, resolvePathComponents, setDataMap, setName, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

subclass

protected boolean subclass

abstractEntity

protected boolean abstractEntity
Constructor Detail

EOObjEntity

public EOObjEntity()

EOObjEntity

public EOObjEntity(String name)
Method Detail

getEOQuery

public EOQuery getEOQuery(String queryName)
Returns stored EOQuery.

Since:
1.1

translateToDbPath

public Expression translateToDbPath(Expression expression)
Overrides super to support translation of EO attributes that have no ObjAttributes.

Overrides:
translateToDbPath in class ObjEntity
Since:
1.2

getEOQueries

public Collection getEOQueries()
Returns a collection of queries for this entity.

Since:
1.1

isAbstractEntity

public boolean isAbstractEntity()

setAbstractEntity

public void setAbstractEntity(boolean abstractEntity)

isSubclass

public boolean isSubclass()

setSubclass

public void setSubclass(boolean subclass)

qualifiedQueryName

public String qualifiedQueryName(String queryName)
Translates query name local to the ObjEntity to the global name. This translation is needed since EOModels store queries by entity, while Cayenne DataMaps store them globally.

Since:
1.1

localQueryName

public String localQueryName(String qualifiedQueryName)
Since:
1.1


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