org.apache.cayenne.gen
Class EntityArtifact
java.lang.Object
org.apache.cayenne.gen.EntityArtifact
- All Implemented Interfaces:
- Artifact
- Direct Known Subclasses:
- ClientEntityArtifact
public class EntityArtifact
- extends Object
- implements Artifact
Artifact
facade for an ObjEntity.
- Since:
- 3.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OBJ_ENTITY_KEY
public static String OBJ_ENTITY_KEY
- Deprecated. since 3.0 "OBJECT" should be used instead, as the root key in the
template is not necessarily ObjEntity. Still preserved for ObjEntities
for backwards compatibility.
ENTITY_UTILS_KEY
public static String ENTITY_UTILS_KEY
entity
protected ObjEntity entity
EntityArtifact
public EntityArtifact(ObjEntity entity)
getObject
public Object getObject()
- Returns ObjEntity.
- Specified by:
getObject
in interface Artifact
getQualifiedBaseClassName
public String getQualifiedBaseClassName()
- Specified by:
getQualifiedBaseClassName
in interface Artifact
getQualifiedClassName
public String getQualifiedClassName()
- Specified by:
getQualifiedClassName
in interface Artifact
getSingleClassType
public TemplateType getSingleClassType()
getSubclassType
public TemplateType getSubclassType()
getSuperClassType
public TemplateType getSuperClassType()
getTemplateTypes
public TemplateType[] getTemplateTypes(ArtifactGenerationMode mode)
- Specified by:
getTemplateTypes
in interface Artifact
postInitContext
public void postInitContext(org.apache.velocity.VelocityContext context)
- Description copied from interface:
Artifact
- A callback method that allows each artifact to add its own special keys to the
context. Invoked from
ClassGenerationAction.resetContextForArtifactTemplate(Artifact, TemplateType)
,
after the context is initialized by code generator, so this method can use
predefined keys from the context.
- Specified by:
postInitContext
in interface Artifact
Copyright © 2001-2008 Apache Cayenne. All Rights Reserved.