Package bbd.jportal2.generators
Class JavaJCCode
- java.lang.Object
-
- bbd.jportal2.BaseGenerator
-
- bbd.jportal2.generators.JavaJCCode
-
- All Implemented Interfaces:
IBuiltInGenerator,IBuiltInSIProcessor,IGenerator,ISIProcessor
public class JavaJCCode extends BaseGenerator implements IBuiltInSIProcessor
Generates Java code for JDBC and Crackle consumption
Supported FlagsutilizeEnums- Not only generates Enum types but also uses them on generated fields and method parameters and return values.generateLombok- Generates Lombok annotations forequals,hashCode, accessor, mutator andtoStringmethod implementations, in addition to a builder implementation.
generateLombokflag, ensure that Lombok is on the classpath in client applications.
-
-
Field Summary
Fields Modifier and Type Field Description static StringENTITY_CLASS_SUFFIXstatic StringFLAG_GEN_LOMBOKstatic StringFLAG_UTILIZE_ENUMSstatic StringGENERATE_PROCS_IO_ERROR
-
Constructor Summary
Constructors Constructor Description JavaJCCode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()Generates the procedure classes for each table present.Stringdocumentation()voidgenerate(Database database, String output)List<Field>getAllEnumFields(Table table)-
Methods inherited from class bbd.jportal2.BaseGenerator
addFileToOutputtedFilesList, addFileToOutputtedFilesList, getFlags, getGeneratedOutputFiles, openOutputFileForGeneration, openOutputFileForGeneration, toBoolean
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface bbd.jportal2.IGenerator
getFlags, toBoolean
-
Methods inherited from interface bbd.jportal2.ISIProcessor
getGeneratedOutputFiles
-
-
-
-
Field Detail
-
GENERATE_PROCS_IO_ERROR
public static final String GENERATE_PROCS_IO_ERROR
- See Also:
- Constant Field Values
-
FLAG_UTILIZE_ENUMS
public static final String FLAG_UTILIZE_ENUMS
- See Also:
- Constant Field Values
-
FLAG_GEN_LOMBOK
public static final String FLAG_GEN_LOMBOK
- See Also:
- Constant Field Values
-
ENTITY_CLASS_SUFFIX
public static final String ENTITY_CLASS_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public String description()
Generates the procedure classes for each table present.- Specified by:
descriptionin interfaceIGenerator
-
documentation
public String documentation()
- Specified by:
documentationin interfaceIGenerator
-
generate
public void generate(Database database, String output)
- Specified by:
generatein interfaceIBuiltInGenerator
-
-