public class EntityArtifact extends Object implements Artifact
Artifact facade for an ObjEntity.| Modifier and Type | Field and Description |
|---|---|
protected ObjEntity |
entity |
static String |
ENTITY_UTILS_KEY |
BASE_CLASS_KEY, BASE_PACKAGE_KEY, IMPORT_UTILS_KEY, OBJECT_KEY, STRING_UTILS_KEY, SUB_CLASS_KEY, SUB_PACKAGE_KEY, SUPER_CLASS_KEY, SUPER_PACKAGE_KEY| Constructor and Description |
|---|
EntityArtifact(ObjEntity entity) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getObject()
Returns ObjEntity.
|
String |
getQualifiedBaseClassName() |
String |
getQualifiedClassName() |
TemplateType |
getSingleClassType() |
TemplateType |
getSubclassType() |
TemplateType |
getSuperClassType() |
TemplateType[] |
getTemplateTypes(ArtifactGenerationMode mode) |
void |
postInitContext(org.apache.velocity.VelocityContext context)
A callback method that allows each artifact to add its own special keys to the
context.
|
public static String ENTITY_UTILS_KEY
protected ObjEntity entity
public EntityArtifact(ObjEntity entity)
public Object getObject()
public String getQualifiedBaseClassName()
getQualifiedBaseClassName in interface Artifactpublic String getQualifiedClassName()
getQualifiedClassName in interface Artifactpublic TemplateType getSingleClassType()
public TemplateType getSubclassType()
public TemplateType getSuperClassType()
public TemplateType[] getTemplateTypes(ArtifactGenerationMode mode)
getTemplateTypes in interface Artifactpublic void postInitContext(org.apache.velocity.VelocityContext context)
ArtifactClassGenerationAction.resetContextForArtifactTemplate(Artifact, TemplateType),
after the context is initialized by code generator, so this method can use
predefined keys from the context.postInitContext in interface ArtifactCopyright © 2001–2015 Apache Cayenne. All rights reserved.