public class EntityArtifact extends Object implements Artifact
Artifact facade for an ObjEntity.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.cayenne.map.ObjEntity |
entity |
static String |
ENTITY_UTILS_KEY |
BASE_CLASS_KEY, BASE_PACKAGE_KEY, CREATE_PROPERTY_NAMES, IMPORT_UTILS_KEY, OBJECT_KEY, STRING_UTILS_KEY, SUB_CLASS_KEY, SUB_PACKAGE_KEY, SUPER_CLASS_KEY, SUPER_PACKAGE_KEY| Constructor and Description |
|---|
EntityArtifact(org.apache.cayenne.map.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 org.apache.cayenne.map.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–2017 Apache Cayenne. All rights reserved.