Uses of Class
io.helidon.codegen.classmodel.Method.Builder
Packages that use Method.Builder
Package
Description
Class model generator for annotation processors.
Common code processing and generation.
Service provider interface for code processing and generation.
-
Uses of Method.Builder in io.helidon.codegen.classmodel
Methods in io.helidon.codegen.classmodel that return Method.BuilderModifier and TypeMethodDescriptionMethod.Builder.addGenericArgument
(TypeArgument typeArgument) Add generic argument to be declared by this method.static Method.Builder
Method.builder()
Create newMethod.Builder
instance.Method.Builder.isAbstract
(boolean isAbstract) Whether this method is abstract.Method.Builder.isDefault
(boolean isDefault) Whether this method is default.Method.Builder.isFinal
(boolean isFinal) Whether this method is final.Method.Builder.isStatic
(boolean isStatic) Whether this method is static.Method.Builder.returnType
(Returns returnType) Set return type of the method.Method.Builder.returnType
(TypeName type) Set return type of the method.Method.Builder.returnType
(TypeName type, String description) Set return type of the method.Method.Builder.returnType
(Consumer<Returns.Builder> consumer) Set return type of the method.Method.Builder.returnType
(Supplier<Returns> supplier) Set return type of the method.Methods in io.helidon.codegen.classmodel with parameters of type Method.BuilderModifier and TypeMethodDescriptionClassBase.Builder.addMethod
(Method.Builder builder) Add new method to the type.Method parameters in io.helidon.codegen.classmodel with type arguments of type Method.BuilderModifier and TypeMethodDescriptionClassBase.Builder.addMethod
(Consumer<Method.Builder> consumer) Add new method to the type. -
Uses of Method.Builder in io.helidon.data.codegen.common
Methods in io.helidon.data.codegen.common with parameters of type Method.BuilderModifier and TypeMethodDescriptionprotected static void
BaseRepositoryInterfaceGenerator.call
(Method.Builder builder, Consumer<Method.Builder> content, String identifier) GenerateCallable
call.protected static void
BaseGenerator.decreasePadding
(Method.Builder builder, int count) Decrease padding.protected MethodParams
BaseRepositoryMethodsGenerator.generateHeader
(Method.Builder builder, TypedElementInfo methodInfo) Generate method header matching interface prototype and return method parameters.protected static void
BaseGenerator.identifier
(Method.Builder builder, String identifier) Generate identifier.protected static void
BaseGenerator.increasePadding
(Method.Builder builder, int count) Increase padding.protected static void
BaseGenerator.initializedVariable
(Method.Builder builder, TypeName type, String name, Consumer<Method.Builder> value) Generate initialized variable.protected static void
BaseGenerator.nullValue
(Method.Builder builder) Generatenull
value.protected static void
BaseRepositoryInterfaceGenerator.optionalFromQuery
(Method.Builder builder, Consumer<Method.Builder> content, TypeName executorType) Deprecated.will be removed with Jakarta Persistence 3.2protected static void
BaseRepositoryInterfaceGenerator.optionalOfNullable
(Method.Builder builder, Consumer<Method.Builder> content) GenerateOptional.ofNullable(Object)
call.protected static void
BaseGenerator.returnStatement
(Method.Builder builder, Consumer<Method.Builder> content) Generate return statement.protected static void
BaseRepositoryInterfaceGenerator.run
(Method.Builder builder, Consumer<Method.Builder> content, String identifier) GenerateRunnable
run.protected static void
BaseGenerator.statement
(Method.Builder builder, Consumer<Method.Builder> content) Generate statement.protected static void
BaseGenerator.throwException
(Method.Builder builder, TypeName type, String message) Generatethrow new <type>(<message>)
for an exception.protected static void
BaseGenerator.throwException
(Method.Builder builder, TypeName type, Consumer<Method.Builder> message) Generatethrow new <type>(<message>)
for an exception.protected static void
BaseGenerator.value
(Method.Builder builder, String value) Generate value.Method parameters in io.helidon.data.codegen.common with type arguments of type Method.BuilderModifier and TypeMethodDescriptionprotected static void
BaseRepositoryInterfaceGenerator.call
(Method.Builder builder, Consumer<Method.Builder> content, String identifier) GenerateCallable
call.protected static void
BaseGenerator.initializedVariable
(Method.Builder builder, TypeName type, String name, Consumer<Method.Builder> value) Generate initialized variable.protected static void
BaseRepositoryInterfaceGenerator.optionalFromQuery
(Method.Builder builder, Consumer<Method.Builder> content, TypeName executorType) Deprecated.will be removed with Jakarta Persistence 3.2protected static void
BaseRepositoryInterfaceGenerator.optionalOfNullable
(Method.Builder builder, Consumer<Method.Builder> content) GenerateOptional.ofNullable(Object)
call.protected static void
BaseGenerator.returnStatement
(Method.Builder builder, Consumer<Method.Builder> content) Generate return statement.protected static void
BaseRepositoryInterfaceGenerator.run
(Method.Builder builder, Consumer<Method.Builder> content, String identifier) GenerateRunnable
run.protected static void
BaseGenerator.statement
(Method.Builder builder, Consumer<Method.Builder> content) Generate statement.protected static void
BaseGenerator.throwException
(Method.Builder builder, TypeName type, Consumer<Method.Builder> message) Generatethrow new <type>(<message>)
for an exception. -
Uses of Method.Builder in io.helidon.data.codegen.common.spi
Methods in io.helidon.data.codegen.common.spi with parameters of type Method.BuilderModifier and TypeMethodDescriptionvoid
PersistenceGenerator.StatementGenerator.addDynamicDml
(Method.Builder builder, RepositoryInfo repositoryInfo, TypedElementInfo methodInfo, MethodParams methodParams, DataQuery dataQuery, TypeName returnType) Add code to execute dynamic DML statement.PersistenceGenerator.StatementGenerator.addDynamicPageQueries
(Method.Builder builder, RepositoryInfo repositoryInfo, TypedElementInfo methodInfo, MethodParams methodParams, DataQuery dataQuery, String dataQueryStatement, String countQueryStatement, TypeName returnType) Add code to create dynamic queries forPage
.PersistenceGenerator.StatementGenerator.addDynamicSliceQuery
(Method.Builder builder, RepositoryInfo repositoryInfo, TypedElementInfo methodInfo, MethodParams methodParams, DataQuery dataQuery, String dataQueryStatement, TypeName returnType) Add code to create dynamic query forSlice
.void
PersistenceGenerator.StatementGenerator.addExecuteDml
(Method.Builder builder, PersistenceGenerator.Query dml) Add code to execute DML statement.void
PersistenceGenerator.StatementGenerator.addExecuteDynamicQueryItem
(Method.Builder builder, RepositoryInfo repositoryInfo, TypedElementInfo methodInfo, MethodParams methodParams, DataQuery dataQuery, TypeName returnType) Add code to execute query and return singlereturnType
instance.void
PersistenceGenerator.StatementGenerator.addExecuteDynamicQueryItemOrNull
(Method.Builder builder, RepositoryInfo repositoryInfo, TypedElementInfo methodInfo, MethodParams methodParams, DataQuery dataQuery, TypeName returnType) Add code to execute query and return singlereturnType
instance ornull
.void
PersistenceGenerator.StatementGenerator.addExecuteDynamicQueryList
(Method.Builder builder, RepositoryInfo repositoryInfo, TypedElementInfo methodInfo, MethodParams methodParams, DataQuery dataQuery, TypeName returnType) Add code to execute dynamic query and returnList
ofreturnType
instances.void
PersistenceGenerator.StatementGenerator.addExecuteDynamicQueryStream
(Method.Builder builder, RepositoryInfo repositoryInfo, TypedElementInfo methodInfo, MethodParams methodParams, DataQuery dataQuery, TypeName returnType) Add code to execute dynamic query and returnStream
ofreturnType
instances.void
PersistenceGenerator.StatementGenerator.addExecuteQueryItem
(Method.Builder builder, PersistenceGenerator.Query query, TypeName returnType) Add code to execute query and return singlereturnType
instance.void
PersistenceGenerator.StatementGenerator.addExecuteQueryItemOrNull
(Method.Builder builder, PersistenceGenerator.Query query, TypeName returnType) Add code to execute query and return singlereturnType
instance ornull
.void
PersistenceGenerator.StatementGenerator.addExecuteQueryList
(Method.Builder builder, PersistenceGenerator.Query query, TypeName returnType) Add code to execute query and returnList
ofreturnType
instances.void
PersistenceGenerator.StatementGenerator.addExecuteQueryStream
(Method.Builder builder, PersistenceGenerator.Query query, TypeName returnType) Add code to execute query and returnStream
ofreturnType
instances.void
PersistenceGenerator.StatementGenerator.addExecuteSimpleDml
(Method.Builder builder, String dml) Add code to execute DML statement with no parameters.void
PersistenceGenerator.StatementGenerator.addExecuteSimpleQueryItem
(Method.Builder builder, String query, TypeName returnType) Add code to execute query on entity and return singlereturnType
instance.void
PersistenceGenerator.StatementGenerator.addExecuteSimpleQueryList
(Method.Builder builder, String query, TypeName entity) Add code to execute query on entity and returnList
of entity instances.void
PersistenceGenerator.StatementGenerator.addExecuteSimpleQueryStream
(Method.Builder builder, String query, TypeName entity) Add code to execute query on entity and returnStream
of entity instances.void
PersistenceGenerator.StatementGenerator.addFind
(Method.Builder builder, String identifier, TypeName entity) Add code to find entity by primary key.void
PersistenceGenerator.StatementGenerator.addMerge
(Method.Builder builder, String identifier) Add code to merge single entity.void
PersistenceGenerator.StatementGenerator.addMergeCollection
(Method.Builder builder, String identifier, String merged) Add code to merge entitiesCollection
.void
PersistenceGenerator.StatementGenerator.addPersist
(Method.Builder builder, String identifier) Add code to persist single entity.void
PersistenceGenerator.StatementGenerator.addPersistCollection
(Method.Builder builder, String identifier) Add code to persist entitiesCollection
.void
PersistenceGenerator.StatementGenerator.addQueryCount
(Method.Builder builder, PersistenceGenerator.Query query) AddCOUNT
query from provided query.void
PersistenceGenerator.StatementGenerator.addQueryCount
(Method.Builder builder, Consumer<Method.Builder> queryContent, List<PersistenceGenerator.QuerySettings> settings, TypeName returnType) AddCOUNT
query from provided query.void
PersistenceGenerator.StatementGenerator.addQueryItem
(Method.Builder builder, PersistenceGenerator.Query query, TypeName returnType) Add query from provided query.void
PersistenceGenerator.StatementGenerator.addQueryPage
(Method.Builder builder, PersistenceGenerator.Query query, TypeName returnType, String firstResult, String maxResults) Add code to create query and returnList
ofreturnType
instances with pagination applied.void
PersistenceGenerator.StatementGenerator.addQueryPage
(Method.Builder builder, Consumer<Method.Builder> queryContent, List<PersistenceGenerator.QuerySettings> settings, TypeName returnType, String firstResult, String maxResults) Add code to create query and returnList
ofreturnType
instances with pagination applied.void
PersistenceGenerator.StatementGenerator.addRemove
(Method.Builder builder, String identifier) Add code to remove single entity.void
PersistenceGenerator.StatementGenerator.addRemoveCollection
(Method.Builder builder, String identifier) Add code to remove entitiesCollection
.void
PersistenceGenerator.StatementGenerator.addSessionLambda
(Method.Builder builder, Consumer<Method.Builder> content) Add code with persistence session lambda expression.void
PersistenceGenerator.StatementGenerator.addSessionLambdaBlock
(Method.Builder builder, Consumer<Method.Builder> content) Add code with persistence session lambda block.void
PersistenceGenerator.StatementGenerator.addUpdate
(Method.Builder builder, String executor, String identifier, TypeName entity) Add code to update entity.void
PersistenceGenerator.StatementGenerator.addUpdateAll
(Method.Builder builder, String executor, String srcEntities, String updatedEntities, TypeName entity) Add code to update entity.Method parameters in io.helidon.data.codegen.common.spi with type arguments of type Method.BuilderModifier and TypeMethodDescriptionvoid
PersistenceGenerator.StatementGenerator.addQueryCount
(Method.Builder builder, Consumer<Method.Builder> queryContent, List<PersistenceGenerator.QuerySettings> settings, TypeName returnType) AddCOUNT
query from provided query.void
PersistenceGenerator.StatementGenerator.addQueryPage
(Method.Builder builder, Consumer<Method.Builder> queryContent, List<PersistenceGenerator.QuerySettings> settings, TypeName returnType, String firstResult, String maxResults) Add code to create query and returnList
ofreturnType
instances with pagination applied.void
PersistenceGenerator.StatementGenerator.addSessionLambda
(Method.Builder builder, Consumer<Method.Builder> content) Add code with persistence session lambda expression.void
PersistenceGenerator.StatementGenerator.addSessionLambdaBlock
(Method.Builder builder, Consumer<Method.Builder> content) Add code with persistence session lambda block.