|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.sahits.codegen.java.generator.ast.AbstractReferenceImplCaller
ch.sahits.codegen.java.generator.ast.ASTBeanWithDelete
public final class ASTBeanWithDelete
This class is a generator class that copies the delete method into the provided base class.
This generator class needs a reference implementation, hence it implements the marker
interface IReferenceImpleCaller via AbstractReferenceImplCaller.
| Field Summary |
|---|
| Fields inherited from class ch.sahits.codegen.java.generator.ast.AbstractReferenceImplCaller |
|---|
ast, unit |
| Constructor Summary | |
|---|---|
ASTBeanWithDelete()
Default Constructor |
|
| Method Summary | |
|---|---|
void |
cleanup()
Clean up the generator |
java.lang.String |
generate()
Generate the code |
IJetGatewayConfiguration |
getConfig()
Retrieve the configuration object |
int |
getWorkload()
Retrieve the workload for the generation |
void |
init()
Initialize this instance |
void |
init(IJetGatewayConfiguration config)
Null implementation Do nothing since the initialization is done with init() |
boolean |
isInitialized()
Check whether all members are initialized |
IFile |
save(IProgressMonitor monitor,
byte[] contents)
Save to file |
void |
setBaseClass(java.lang.String _baseClass)
|
void |
setGenerator(ASTGenerator _generator)
Initialize the ASTGenerator |
void |
setModel(IGeneratedJavaDBClass _model)
|
void |
setMonitor(IProgressMonitor monitor)
Set the progress-Monitor |
| Methods inherited from class ch.sahits.codegen.java.generator.ast.AbstractReferenceImplCaller |
|---|
addImports, addMethods |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ASTBeanWithDelete()
| Method Detail |
|---|
public java.lang.String generate()
generate in interface IBaseGeneratorgenerate in interface IASTGeneratorpublic void setModel(IGeneratedJavaDBClass _model)
setModel in interface IASTGenerator_model - the model to setpublic void setBaseClass(java.lang.String _baseClass)
setBaseClass in interface IASTGenerator_baseClass - the baseClass to setpublic boolean isInitialized()
isInitialized in interface IBaseGeneratorpublic void init(IJetGatewayConfiguration config)
init()
init in interface IBaseGeneratorconfig - Configurationpublic void setGenerator(ASTGenerator _generator)
IASTGeneratorInitializerASTGenerator
setGenerator in interface IASTGeneratorInitializer_generator - the generator to setIASTGeneratorInitializer.setGenerator(ch.sahits.codegen.java.generator.ast.ASTGenerator)
public void cleanup()
throws CoreException
cleanup in interface IGeneratorCoreExceptionpublic IJetGatewayConfiguration getConfig()
getConfig in interface IGeneratorpublic int getWorkload()
getWorkload in interface IGeneratorpublic void init()
init in interface IGenerator
public IFile save(IProgressMonitor monitor,
byte[] contents)
throws CoreException
save in interface IGeneratormonitor - Progress-Monitorcontents - Byte array with the contents to be saved
CoreExceptionpublic void setMonitor(IProgressMonitor monitor)
setMonitor in interface IGeneratormonitor - Progress Monitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||