com.caucho.amber.gen
Class AmberMappedComponent

java.lang.Object
  extended by com.caucho.java.gen.ClassComponent
      extended by com.caucho.amber.gen.AmberMappedComponent
Direct Known Subclasses:
EntityComponent, MappedSuperclassComponent

public abstract class AmberMappedComponent
extends ClassComponent

Generates the Java code for the wrapped object.


Constructor Summary
AmberMappedComponent()
           
 
Method Summary
 void generate(JavaWriter out)
          Starts generation of the Java code
protected  void generateLogFine(JavaWriter out, java.lang.String msg)
           
protected  void generateLogFinest(JavaWriter out, java.lang.String msg)
           
 java.lang.String getBaseClassName()
          Gets the base class name
 java.lang.String getBeanClassName()
          Get bean class name.
 java.lang.String getClassName()
          Sets the ext class name
 java.util.ArrayList<PersistentDependency> getDependencies()
          Returns the dependencies.
 EntityType getEntityType()
           
protected  boolean isEntityParent()
           
 void setBaseClassName(java.lang.String baseClassName)
          Sets the base class name
 void setExtClassName(java.lang.String extClassName)
          Sets the ext class name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmberMappedComponent

public AmberMappedComponent()
Method Detail

getEntityType

public EntityType getEntityType()

setBaseClassName

public void setBaseClassName(java.lang.String baseClassName)
Sets the base class name


getBaseClassName

public java.lang.String getBaseClassName()
Gets the base class name


setExtClassName

public void setExtClassName(java.lang.String extClassName)
Sets the ext class name


getClassName

public java.lang.String getClassName()
Sets the ext class name


getBeanClassName

public java.lang.String getBeanClassName()
Get bean class name.


getDependencies

public java.util.ArrayList<PersistentDependency> getDependencies()
Returns the dependencies.


isEntityParent

protected boolean isEntityParent()

generate

public final void generate(JavaWriter out)
                    throws java.io.IOException
Starts generation of the Java code

Overrides:
generate in class ClassComponent
Parameters:
out - the writer to the output stream.
Throws:
java.io.IOException

generateLogFine

protected void generateLogFine(JavaWriter out,
                               java.lang.String msg)
                        throws java.io.IOException
Throws:
java.io.IOException

generateLogFinest

protected void generateLogFinest(JavaWriter out,
                                 java.lang.String msg)
                          throws java.io.IOException
Throws:
java.io.IOException