org.apache.cayenne.gen
Class EmbeddableArtifact
java.lang.Object
org.apache.cayenne.gen.EmbeddableArtifact
- All Implemented Interfaces:
- Artifact
public class EmbeddableArtifact
- extends Object
- implements Artifact
Artifact
facade for an Embeddable
.
- Since:
- 3.0
- Author:
- Andrus Adamchik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
embeddable
protected Embeddable embeddable
EmbeddableArtifact
public EmbeddableArtifact(Embeddable embeddable)
getObject
public Object getObject()
- Description copied from interface:
Artifact
- Returns a mapping metadata object for this artifact.
- 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
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.