- AbstractGenerator - Class in at.rseiler.spbee.core.generator
-
Base class for the code generators.
- AbstractGenerator(ProcessingEnvironment) - Constructor for class at.rseiler.spbee.core.generator.AbstractGenerator
-
- add(StoredProcedureMethod) - Method in class at.rseiler.spbee.core.pojo.DtoClass
-
Adds stored procedure method to the DTO class.
- addAnnotationArrayMemberParam(JAnnotationArrayMember, AnnotationValueInfo) - Method in class at.rseiler.spbee.core.generator.DtoGenerator.DtoClassGeneratorInstance
-
- addAnnotationParam(JAnnotationUse, AnnotationValueInfo) - Method in class at.rseiler.spbee.core.generator.DtoGenerator.DtoClassGeneratorInstance
-
- addAnnotations(StoredProcedureMethod, JMethod) - Method in class at.rseiler.spbee.core.generator.DtoGenerator.DtoClassGeneratorInstance
-
Adds the annotations to the method.
- addAnnotationValueInfo(AnnotationValueInfo) - Method in class at.rseiler.spbee.core.pojo.AnnotationInfo
-
Adds a parameter to the annotation.
- addArgument(Variable) - Method in class at.rseiler.spbee.core.pojo.StoredProcedureMethod
-
Adds a variable to the stored procedure method.
- addConstructorField(StoredProcedureMethod) - Method in class at.rseiler.spbee.core.generator.DtoGenerator.DtoClassGeneratorInstance
-
Generates:
Field variable:
[ private final {SP_NAME_CLASS} {SP_NAME_VARIABLE} ]+;
Constructor assignment:
[ {SP_NAME_VARIABLE} = new {SP_NAME_CLASS}(dataSource) ]+
- addDtoMethod(StoredProcedureMethod, JFieldVar) - Method in class at.rseiler.spbee.core.generator.DtoGenerator.DtoClassGeneratorInstance
-
Generates:
public {DTO_METHOD_RETURN_TYPE} {DTO_METHOD_NAME}({DTO_METHOD_PARAMETERS}) {
return (({DTO_METHOD_RETURN_TYPE}) {SP_NAME_VARIABLE}.execute({DTO_METHOD_PARAMETERS}).get("#result-set-0"));
}
If it's a ResultSet:
public {DTO_METHOD_RETURN_TYPE} {DTO_METHOD_NAME}({DTO_METHOD_PARAMETERS}) {
Map map = {SP_NAME_VARIABLE}.execute({DTO_METHOD_PARAMETERS});
return new {DTO_METHOD_RETURN_TYPE}((*)map.get("#result-set-0"), (*)map.get("#result-set-*"), ...);
}
- addExecuteMethod(JCodeModel, JDefinedClass, StoredProcedureMethod) - Method in class at.rseiler.spbee.core.generator.StoredProcedureGenerator
-
Generates:
public Map execute( [ * ]* ) { return super.execute( [ * ]* ) }
- addInterceptorCallAfter(StoredProcedureMethod, JMethod, JInvocation, JVar) - Method in class at.rseiler.spbee.core.generator.DtoGenerator.DtoClassGeneratorInstance
-
Adds the interceptor call of the after method.
- addStoredProcedureMethods() - Method in class at.rseiler.spbee.core.generator.DtoGenerator.DtoClassGeneratorInstance
-
Adds the stored procedure to the constructor (to get it autowired into the class) and creates the actual
method to call the stored procedure.
- addSuperClassOrInterface() - Method in class at.rseiler.spbee.core.generator.DtoGenerator.DtoClassGeneratorInstance
-
Generates:
implements *Dao
extends *Dao
- addVariable(Variable) - Method in class at.rseiler.spbee.core.pojo.MapperClass
-
Adds a variable, which represents a parameter of the constructor of the mapped class.
- anInterface - Variable in class at.rseiler.spbee.core.pojo.DtoClass
-
- annotateGenerated(JDefinedClass) - Static method in class at.rseiler.spbee.core.util.CodeModelUtil
-
- AnnotationInfo - Class in at.rseiler.spbee.core.pojo
-
Holds the information of an annotation.
- AnnotationInfo(String) - Constructor for class at.rseiler.spbee.core.pojo.AnnotationInfo
-
Constructs a new AnnotationInfo.
- annotationInfos(List<AnnotationInfo>) - Method in class at.rseiler.spbee.core.pojo.StoredProcedureMethod.Builder
-
- AnnotationProcessingContext - Class in at.rseiler.spbee.core.pojo
-
The annotation processing context.
- AnnotationProcessingContext(Properties, Map<String, ResultSetClass>, List<MapperClass>, List<DtoClass>) - Constructor for class at.rseiler.spbee.core.pojo.AnnotationProcessingContext
-
- annotations - Variable in class at.rseiler.spbee.core.pojo.StoredProcedureMethod
-
- annotations(List<AnnotationMirror>) - Method in class at.rseiler.spbee.core.pojo.StoredProcedureMethod.Builder
-
- annotationType - Variable in class at.rseiler.spbee.core.pojo.AnnotationInfo
-
- AnnotationValueInfo - Class in at.rseiler.spbee.core.pojo
-
Holds the information of a annotation parameter.
- AnnotationValueInfo(String, Object, String, AnnotationValueInfo.Kind) - Constructor for class at.rseiler.spbee.core.pojo.AnnotationValueInfo
-
Constructs a new AnnotationValueInfo.
- AnnotationValueInfo.Kind - Enum in at.rseiler.spbee.core.pojo
-
- annotationValueInfos - Variable in class at.rseiler.spbee.core.pojo.AnnotationInfo
-
- arguments - Variable in class at.rseiler.spbee.core.pojo.StoredProcedureMethod
-
- asString() - Method in class at.rseiler.spbee.core.pojo.TypeInfo
-
Returns the string representation of the type and generic type.
- at.rseiler.spbee.core - package at.rseiler.spbee.core
-
- at.rseiler.spbee.core.annotation - package at.rseiler.spbee.core.annotation
-
- at.rseiler.spbee.core.collector - package at.rseiler.spbee.core.collector
-
- at.rseiler.spbee.core.exception - package at.rseiler.spbee.core.exception
-
- at.rseiler.spbee.core.generator - package at.rseiler.spbee.core.generator
-
- at.rseiler.spbee.core.pojo - package at.rseiler.spbee.core.pojo
-
- at.rseiler.spbee.core.pojo.annotation - package at.rseiler.spbee.core.pojo.annotation
-
- at.rseiler.spbee.core.util - package at.rseiler.spbee.core.util
-
- generateClass(JCodeModel, String) - Method in class at.rseiler.spbee.core.generator.AbstractGenerator
-
Generates the Java class based on the parameters.
- generateCode(AnnotationProcessingContext) - Method in class at.rseiler.spbee.core.SPBeeAnnotationProcessor
-
Generates the code based on the context.
- generateDtoClasses(List<DtoClass>) - Method in class at.rseiler.spbee.core.generator.DtoGenerator
-
Generates the DTO classes.
- generateMapper(MapperClass) - Method in class at.rseiler.spbee.core.generator.MapperGenerator
-
Generates a MapperClass.
- generateMappers(Collection<MapperClass>) - Method in class at.rseiler.spbee.core.generator.MapperGenerator
-
- generateStoredProcedure(StoredProcedureMethod) - Method in class at.rseiler.spbee.core.generator.StoredProcedureGenerator
-
Example:
public class * extends StoredProcedure {
public *(DataSource dataSource) {
super(dataSource, "*");
[ declareParameter(new SqlParameter("*", Types.*)); ]*
[ declareParameter(new SqlReturnResultSet("#result-set-*", new *Mapper())); ]*
compile();
}
public Map<String, Object> execute([ * * ]*) {
return super.execute([ * ]*);
}
}
- generateStoredProcedureClasses(List<DtoClass>) - Method in class at.rseiler.spbee.core.generator.StoredProcedureGenerator
-
- genericType - Variable in class at.rseiler.spbee.core.pojo.TypeInfo
-
- getAnnotations(ExecutableElement) - Method in class at.rseiler.spbee.core.collector.DtoCollector
-
Gets all non spBee related annotations.
- getAnnotations() - Method in class at.rseiler.spbee.core.pojo.StoredProcedureMethod
-
The annotations of the stored procedure method.
- getAnnotationType() - Method in class at.rseiler.spbee.core.pojo.AnnotationInfo
-
Returns the type of the annotation.
- getAnnotationValueInfos() - Method in class at.rseiler.spbee.core.pojo.AnnotationInfo
-
Returns the parameters of the annotation.
- getArguments() - Method in class at.rseiler.spbee.core.pojo.StoredProcedureMethod
-
The arguments of the stored procedure method.
- getArrayType(String) - Method in class at.rseiler.spbee.core.generator.StoredProcedureGenerator
-
- getConfig() - Method in class at.rseiler.spbee.core.pojo.AnnotationProcessingContext
-
Returns the spBee config.
- getDtoClasses() - Method in class at.rseiler.spbee.core.collector.DtoCollector
-
The DTO classes.
- getDtoClasses() - Method in class at.rseiler.spbee.core.pojo.AnnotationProcessingContext
-
Returns the DTO classes.
- getDtoFieldName() - Method in class at.rseiler.spbee.core.pojo.StoredProcedureMethod
-
Generates the name of the variable name which should be used for the DTO class.
- getExecute(StoredProcedureMethod, JFieldVar, JMethod) - Method in class at.rseiler.spbee.core.generator.DtoGenerator.DtoClassGeneratorInstance
-
Generates:
{FIELD}.execute( [ * ]* )
- getGenericList(JCodeModel, String) - Static method in class at.rseiler.spbee.core.util.CodeModelUtil
-
Defines a generic List like List.
- getGenericOptional(JCodeModel, String) - Static method in class at.rseiler.spbee.core.util.CodeModelUtil
-
Defines a generic Optional like Optional.
- getGenericType() - Method in class at.rseiler.spbee.core.pojo.TypeInfo
-
Returns the generic type.
- getGenericTypeOrType() - Method in class at.rseiler.spbee.core.pojo.TypeInfo
-
Returns the generic type if it exists otherwise the base type.
- getJavaCode() - Method in class at.rseiler.spbee.core.util.StringCodeWriter
-
Retrieves the Java code as String.
- getKind() - Method in class at.rseiler.spbee.core.pojo.AnnotationValueInfo
-
- getMapperClasses() - Method in class at.rseiler.spbee.core.collector.EntityClassCollector
-
Returns the MapperClass classes.
- getMapperClasses() - Method in class at.rseiler.spbee.core.pojo.AnnotationProcessingContext
-
Returns the mapper classes.
- getMapStringObject(JCodeModel) - Static method in class at.rseiler.spbee.core.util.CodeModelUtil
-
Defines a Map JClass.
- getMethodName() - Method in class at.rseiler.spbee.core.pojo.StoredProcedureMethod
-
The method name.
- getModel() - Method in class at.rseiler.spbee.core.generator.DtoGenerator.DtoClassGeneratorInstance
-
- getName() - Method in class at.rseiler.spbee.core.pojo.annotation.MappingConstructorData
-
- getName() - Method in class at.rseiler.spbee.core.pojo.annotation.StoredProcedureData
-
- getName() - Method in class at.rseiler.spbee.core.pojo.AnnotationValueInfo
-
Returns the name of the annotation parameter.
- getName() - Method in class at.rseiler.spbee.core.pojo.Variable
-
The name of the variable.
- getPackage() - Method in class at.rseiler.spbee.core.pojo.DtoClass
-
Returns the package of the DTO class.
- getPackage() - Method in class at.rseiler.spbee.core.pojo.StoredProcedureMethod
-
The package of the of the stored procedure method.
- getPackage(String) - Static method in class at.rseiler.spbee.core.util.StringUtil
-
Extracts the package name of the full qualified class name.
- getQualifiedClassName() - Method in class at.rseiler.spbee.core.pojo.DtoClass
-
Returns the qualified class name of the DTO class.
- getQualifiedClassName() - Method in class at.rseiler.spbee.core.pojo.ResultSetClass
-
Returns the qualified class name.
- getQualifiedClassName() - Method in class at.rseiler.spbee.core.pojo.StoredProcedureMethod
-
The qualified class name of the stored procedure method.
- getQualifiedDtoClassName(String) - Static method in class at.rseiler.spbee.core.util.StringUtil
-
Generates the full qualified class name for a stored procedure class.
- getQualifiedMapperClassName() - Method in class at.rseiler.spbee.core.pojo.MapperClass
-
Returns the qualified class name of the mapper class.
- getQualifiedMapperClassName(String, String) - Static method in class at.rseiler.spbee.core.util.StringUtil
-
Generates the full qualified class name for a RowMapper class.
- getQualifiedRowMapperClass() - Method in class at.rseiler.spbee.core.pojo.StoredProcedureMethod
-
Returns the qualified class name of the RowMapper.
- getQualifiedStoredProcedureClassName(String, String) - Static method in class at.rseiler.spbee.core.util.StringUtil
-
Generates the full qualified class name for a stored procedure class.
- getResultSetMap() - Method in class at.rseiler.spbee.core.collector.ResultSetCollector
-
- getResultSetMethod(String) - Static method in class at.rseiler.spbee.core.generator.MapperGenerator
-
Retrieves the most fitting
ResultSet
method based on the type.
- getResultSetsMap() - Method in class at.rseiler.spbee.core.pojo.AnnotationProcessingContext
-
Returns the result sets.
- getResultSetVariables() - Method in class at.rseiler.spbee.core.pojo.ResultSetClass
-
Returns the variables of the ResultSet.
- getReturnClass(StoredProcedureMethod) - Method in class at.rseiler.spbee.core.generator.DtoGenerator.DtoClassGeneratorInstance
-
Generates the class for the return type.
- getReturnTypeInfo() - Method in class at.rseiler.spbee.core.pojo.StoredProcedureMethod
-
The TypeInfo of the return value of the stored procedure method
- getRowMapper() - Method in class at.rseiler.spbee.core.pojo.ResultSetVariable
-
Returns the qualified class name of the RowMapper.
- getRowMapperType(RowMapper) - Method in class at.rseiler.spbee.core.pojo.annotation.RowMapperData
-
- getSimpleClassName() - Method in class at.rseiler.spbee.core.pojo.DtoClass
-
Returns the simple class name of the DTO class.
- getSimpleClassName() - Method in class at.rseiler.spbee.core.pojo.StoredProcedureMethod
-
The simple class name.
- getSimpleClassName(String) - Static method in class at.rseiler.spbee.core.util.StringUtil
-
Extracts the simple class name of the full qualified class name.
- getSqlParameter(String) - Static method in class at.rseiler.spbee.core.generator.StoredProcedureGenerator
-
Retrieves the most fitting org.springframework.jdbc.core.SqlParameter
type based on the type
- getStackTrace(Exception) - Static method in class at.rseiler.spbee.core.SPBeeAnnotationProcessor
-
Transform the exception to a string with the complete stack trace.
- getStoredProcedureMethods() - Method in class at.rseiler.spbee.core.pojo.DtoClass
-
Returns all stored procedure methods from the DTO class.
- getStoredProcedureName() - Method in class at.rseiler.spbee.core.pojo.StoredProcedureMethod
-
The @StoredProcedure annotation.
- getSuperQualifiedClassName() - Method in class at.rseiler.spbee.core.pojo.DtoClass
-
Returns the qualified class name of the interface or the abstract class of which this DTO class is derived.
- getType() - Method in class at.rseiler.spbee.core.pojo.annotation.RowMapperData
-
- getType() - Method in class at.rseiler.spbee.core.pojo.AnnotationValueInfo
-
- getType() - Method in class at.rseiler.spbee.core.pojo.MapperClass
-
Returns the type of the mapped class.
- getType() - Method in class at.rseiler.spbee.core.pojo.TypeInfo
-
Returns the base type.
- getTypeInfo() - Method in class at.rseiler.spbee.core.pojo.Variable
-
The TypeInfo of the variable.
- getTypeInfo(String) - Static method in class at.rseiler.spbee.core.util.StringUtil
-
Create the TypeInfo of a type string.
- getValue() - Method in class at.rseiler.spbee.core.pojo.AnnotationValueInfo
-
Returns the value of the parameter.
- getVariable(VariableElement) - Method in class at.rseiler.spbee.core.collector.DtoCollector
-
Converts a VariableElement object to a Variable object.
- getVariables() - Method in class at.rseiler.spbee.core.pojo.MapperClass
-
Returns the variables which represent the parameters of the constructor of the mapped class.