ch.sahits.codegen.java.generator.ast
Class PureASTOracleDAOGenerator

java.lang.Object
  extended by ch.sahits.codegen.java.generator.ast.PureASTOracleDAOGenerator
All Implemented Interfaces:
IBaseGenerator, IDBAccess, IASTGenerator, IPureASTGenerator

public final class PureASTOracleDAOGenerator
extends java.lang.Object
implements IASTGenerator, IDBAccess, IPureASTGenerator, IBaseGenerator

This class is a generator for a data access object (DAO) for an Oracle table that is purely generated with AST

Since:
0.9.0 TODO Replace IGeneratedJavaDBClass with IGeneratedJavaDBClass2
Author:
Andi Hotz

Constructor Summary
PureASTOracleDAOGenerator()
           
 
Method Summary
 java.lang.String generate()
          Coordinate the generation of the code.
 void init(IJetGatewayConfiguration config)
          Null implementation since the initialization must be done with setBaseClass(String) and setModel(IGeneratedJavaDBClass)
 boolean isInitialized()
          Check whether all members are initialized
 void setBaseClass(java.lang.String _baseClass)
           
 void setModel(IGeneratedJavaDBClass _model)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PureASTOracleDAOGenerator

public PureASTOracleDAOGenerator()
Method Detail

generate

public java.lang.String generate()
                          throws java.lang.IllegalStateException
Coordinate the generation of the code.

Specified by:
generate in interface IBaseGenerator
Specified by:
generate in interface IASTGenerator
Returns:
String representation of the generated class
Throws:
java.lang.IllegalStateException

isInitialized

public boolean isInitialized()
Check whether all members are initialized

Specified by:
isInitialized in interface IBaseGenerator
Returns:
true if the model and the baseClass are initialized

setModel

public void setModel(IGeneratedJavaDBClass _model)
Specified by:
setModel in interface IASTGenerator
Parameters:
_model - the model to set

setBaseClass

public void setBaseClass(java.lang.String _baseClass)
Specified by:
setBaseClass in interface IASTGenerator
Parameters:
_baseClass - the baseClass to set

init

public void init(IJetGatewayConfiguration config)
Null implementation since the initialization must be done with setBaseClass(String) and setModel(IGeneratedJavaDBClass)

Specified by:
init in interface IBaseGenerator
Parameters:
config - Configuration