|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.property.BaseClassDescriptor
org.apache.cayenne.map.EntityDescriptor
public class EntityDescriptor
A ClassDescriptor describing a persistent bean based on ObjEntity.
Field Summary | |
---|---|
protected boolean |
dataObject
|
protected ObjEntity |
entity
|
Fields inherited from class org.apache.cayenne.property.BaseClassDescriptor |
---|
declaredProperties, objectClass, persistenceStateProperty, subclassDescriptors, superclassDescriptor, valueHolderProperties |
Constructor Summary | |
---|---|
EntityDescriptor(ObjEntity entity,
ClassDescriptor superclassDescriptor)
Creates and compiles a class descriptor for a given entity. |
Method Summary | |
---|---|
void |
compile(EntityResolver resolver)
Prepares the descriptor. |
protected void |
compileAttributes(java.util.Map allDescriptors)
Implements an attributes compilation step. |
protected void |
compileRelationships(EntityResolver resolver,
java.util.Map allDescriptors)
Implements a relationships compilation step. |
protected void |
compileSpecialProperties()
Implements an attributes compilation step. |
protected void |
compileSubclassMapping(EntityResolver resolver,
java.util.Map subclassDescriptors,
EntityInheritanceTree treeNode)
|
ObjEntity |
getEntity()
Returns ObjEntity described by this object. |
void |
removeDeclaredProperty(java.lang.String propertyName)
Removes declared property. |
void |
setDeclaredProperty(Property property)
Registers a property. |
void |
shallowMerge(java.lang.Object from,
java.lang.Object to)
Copies object properties from one object to another. |
java.lang.String |
toString()
Overrides toString method of Object to provide a meaningful description. |
Methods inherited from class org.apache.cayenne.property.BaseClassDescriptor |
---|
createObject, getDeclaredProperty, getObjectClass, getProperties, getProperty, getSubclassDescriptor, getSuperclassDescriptor, injectValueHolders, isFault, isValid, visitProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ObjEntity entity
protected boolean dataObject
Constructor Detail |
---|
public EntityDescriptor(ObjEntity entity, ClassDescriptor superclassDescriptor)
Method Detail |
---|
public void shallowMerge(java.lang.Object from, java.lang.Object to) throws PropertyAccessException
BaseClassDescriptor
shallowMerge
in interface ClassDescriptor
shallowMerge
in class BaseClassDescriptor
PropertyAccessException
public ObjEntity getEntity()
public void setDeclaredProperty(Property property)
public void removeDeclaredProperty(java.lang.String propertyName)
public void compile(EntityResolver resolver)
protected void compileSubclassMapping(EntityResolver resolver, java.util.Map subclassDescriptors, EntityInheritanceTree treeNode)
protected void compileSpecialProperties()
protected void compileAttributes(java.util.Map allDescriptors)
protected void compileRelationships(EntityResolver resolver, java.util.Map allDescriptors)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |