org.apache.cayenne.gen
Class EmbeddableArtifact

java.lang.Object
  extended by org.apache.cayenne.gen.EmbeddableArtifact
All Implemented Interfaces:
Artifact

public class EmbeddableArtifact
extends Object
implements Artifact

Artifact facade for an Embeddable.

Since:
3.0

Field Summary
protected  Embeddable embeddable
           
 
Fields inherited from interface org.apache.cayenne.gen.Artifact
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 Summary
EmbeddableArtifact(Embeddable embeddable)
           
 
Method Summary
 Object getObject()
          Returns a mapping metadata object for this artifact.
 String getQualifiedBaseClassName()
           
 String getQualifiedClassName()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

embeddable

protected Embeddable embeddable
Constructor Detail

EmbeddableArtifact

public EmbeddableArtifact(Embeddable embeddable)
Method Detail

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.