com.caucho.amber.gen
Class AmberGeneratorImpl

java.lang.Object
  extended by com.caucho.amber.gen.AmberGeneratorImpl
All Implemented Interfaces:
AmberGenerator

public class AmberGeneratorImpl
extends java.lang.Object
implements AmberGenerator

Enhancing the java objects for Amber mapping.


Constructor Summary
AmberGeneratorImpl(AmberPersistenceUnit manager)
           
 
Method Summary
 void compile()
          Compiles the pending classes.
 void configure(AbstractEnhancedType type)
          Configures the type.
 void generate(AbstractEnhancedType type)
          Generates the type.
 void generateJava(JavaClassGenerator javaGen, AbstractEnhancedType type)
          Generates the type.
 boolean isPreload(JavaClassGenerator javaGen, AbstractEnhancedType type)
          Generates the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmberGeneratorImpl

public AmberGeneratorImpl(AmberPersistenceUnit manager)
Method Detail

configure

public void configure(AbstractEnhancedType type)
               throws java.lang.Exception
Configures the type.

Specified by:
configure in interface AmberGenerator
Throws:
java.lang.Exception

generate

public void generate(AbstractEnhancedType type)
              throws java.lang.Exception
Generates the type.

Specified by:
generate in interface AmberGenerator
Throws:
java.lang.Exception

generateJava

public void generateJava(JavaClassGenerator javaGen,
                         AbstractEnhancedType type)
                  throws java.lang.Exception
Generates the type.

Specified by:
generateJava in interface AmberGenerator
Throws:
java.lang.Exception

isPreload

public boolean isPreload(JavaClassGenerator javaGen,
                         AbstractEnhancedType type)
                  throws java.lang.Exception
Generates the type.

Throws:
java.lang.Exception

compile

public void compile()
             throws java.lang.Exception
Compiles the pending classes.

Specified by:
compile in interface AmberGenerator
Throws:
java.lang.Exception