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.BuilderMethod.builder()Create newMethod.Builderinstance.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 voidBaseRepositoryInterfaceGenerator.call(Method.Builder builder, Consumer<Method.Builder> content, String identifier) GenerateCallablecall.protected static voidBaseGenerator.decreasePadding(Method.Builder builder, int count) Decrease padding.protected MethodParamsBaseRepositoryMethodsGenerator.generateHeader(Method.Builder builder, TypedElementInfo methodInfo) Generate method header matching interface prototype and return method parameters.protected static voidBaseGenerator.identifier(Method.Builder builder, String identifier) Generate identifier.protected static voidBaseGenerator.increasePadding(Method.Builder builder, int count) Increase padding.protected static voidBaseGenerator.initializedVariable(Method.Builder builder, TypeName type, String name, Consumer<Method.Builder> value) Generate initialized variable.protected static voidBaseGenerator.nullValue(Method.Builder builder) Generatenullvalue.protected static voidBaseRepositoryInterfaceGenerator.optionalFromQuery(Method.Builder builder, Consumer<Method.Builder> content, TypeName executorType) Deprecated.will be removed with Jakarta Persistence 3.2protected static voidBaseRepositoryInterfaceGenerator.optionalOfNullable(Method.Builder builder, Consumer<Method.Builder> content) GenerateOptional.ofNullable(Object)call.protected static voidBaseGenerator.returnStatement(Method.Builder builder, Consumer<Method.Builder> content) Generate return statement.protected static voidBaseRepositoryInterfaceGenerator.run(Method.Builder builder, Consumer<Method.Builder> content, String identifier) GenerateRunnablerun.protected static voidBaseGenerator.statement(Method.Builder builder, Consumer<Method.Builder> content) Generate statement.protected static voidBaseGenerator.throwException(Method.Builder builder, TypeName type, String message) Generatethrow new <type>(<message>)for an exception.protected static voidBaseGenerator.throwException(Method.Builder builder, TypeName type, Consumer<Method.Builder> message) Generatethrow new <type>(<message>)for an exception.protected static voidBaseGenerator.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 voidBaseRepositoryInterfaceGenerator.call(Method.Builder builder, Consumer<Method.Builder> content, String identifier) GenerateCallablecall.protected static voidBaseGenerator.initializedVariable(Method.Builder builder, TypeName type, String name, Consumer<Method.Builder> value) Generate initialized variable.protected static voidBaseRepositoryInterfaceGenerator.optionalFromQuery(Method.Builder builder, Consumer<Method.Builder> content, TypeName executorType) Deprecated.will be removed with Jakarta Persistence 3.2protected static voidBaseRepositoryInterfaceGenerator.optionalOfNullable(Method.Builder builder, Consumer<Method.Builder> content) GenerateOptional.ofNullable(Object)call.protected static voidBaseGenerator.returnStatement(Method.Builder builder, Consumer<Method.Builder> content) Generate return statement.protected static voidBaseRepositoryInterfaceGenerator.run(Method.Builder builder, Consumer<Method.Builder> content, String identifier) GenerateRunnablerun.protected static voidBaseGenerator.statement(Method.Builder builder, Consumer<Method.Builder> content) Generate statement.protected static voidBaseGenerator.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 TypeMethodDescriptionvoidPersistenceGenerator.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.voidPersistenceGenerator.StatementGenerator.addExecuteDml(Method.Builder builder, PersistenceGenerator.Query dml) Add code to execute DML statement.voidPersistenceGenerator.StatementGenerator.addExecuteDynamicQueryItem(Method.Builder builder, RepositoryInfo repositoryInfo, TypedElementInfo methodInfo, MethodParams methodParams, DataQuery dataQuery, TypeName returnType) Add code to execute query and return singlereturnTypeinstance.voidPersistenceGenerator.StatementGenerator.addExecuteDynamicQueryItemOrNull(Method.Builder builder, RepositoryInfo repositoryInfo, TypedElementInfo methodInfo, MethodParams methodParams, DataQuery dataQuery, TypeName returnType) Add code to execute query and return singlereturnTypeinstance ornull.voidPersistenceGenerator.StatementGenerator.addExecuteDynamicQueryList(Method.Builder builder, RepositoryInfo repositoryInfo, TypedElementInfo methodInfo, MethodParams methodParams, DataQuery dataQuery, TypeName returnType) Add code to execute dynamic query and returnListofreturnTypeinstances.voidPersistenceGenerator.StatementGenerator.addExecuteDynamicQueryStream(Method.Builder builder, RepositoryInfo repositoryInfo, TypedElementInfo methodInfo, MethodParams methodParams, DataQuery dataQuery, TypeName returnType) Add code to execute dynamic query and returnStreamofreturnTypeinstances.voidPersistenceGenerator.StatementGenerator.addExecuteQueryItem(Method.Builder builder, PersistenceGenerator.Query query, TypeName returnType) Add code to execute query and return singlereturnTypeinstance.voidPersistenceGenerator.StatementGenerator.addExecuteQueryItemOrNull(Method.Builder builder, PersistenceGenerator.Query query, TypeName returnType) Add code to execute query and return singlereturnTypeinstance ornull.voidPersistenceGenerator.StatementGenerator.addExecuteQueryList(Method.Builder builder, PersistenceGenerator.Query query, TypeName returnType) Add code to execute query and returnListofreturnTypeinstances.voidPersistenceGenerator.StatementGenerator.addExecuteQueryStream(Method.Builder builder, PersistenceGenerator.Query query, TypeName returnType) Add code to execute query and returnStreamofreturnTypeinstances.voidPersistenceGenerator.StatementGenerator.addExecuteSimpleDml(Method.Builder builder, String dml) Add code to execute DML statement with no parameters.voidPersistenceGenerator.StatementGenerator.addExecuteSimpleQueryItem(Method.Builder builder, String query, TypeName returnType) Add code to execute query on entity and return singlereturnTypeinstance.voidPersistenceGenerator.StatementGenerator.addExecuteSimpleQueryList(Method.Builder builder, String query, TypeName entity) Add code to execute query on entity and returnListof entity instances.voidPersistenceGenerator.StatementGenerator.addExecuteSimpleQueryStream(Method.Builder builder, String query, TypeName entity) Add code to execute query on entity and returnStreamof entity instances.voidPersistenceGenerator.StatementGenerator.addFind(Method.Builder builder, String identifier, TypeName entity) Add code to find entity by primary key.voidPersistenceGenerator.StatementGenerator.addMerge(Method.Builder builder, String identifier) Add code to merge single entity.voidPersistenceGenerator.StatementGenerator.addMergeCollection(Method.Builder builder, String identifier, String merged) Add code to merge entitiesCollection.voidPersistenceGenerator.StatementGenerator.addPersist(Method.Builder builder, String identifier) Add code to persist single entity.voidPersistenceGenerator.StatementGenerator.addPersistCollection(Method.Builder builder, String identifier) Add code to persist entitiesCollection.voidPersistenceGenerator.StatementGenerator.addQueryCount(Method.Builder builder, PersistenceGenerator.Query query) AddCOUNTquery from provided query.voidPersistenceGenerator.StatementGenerator.addQueryCount(Method.Builder builder, Consumer<Method.Builder> queryContent, List<PersistenceGenerator.QuerySettings> settings, TypeName returnType) AddCOUNTquery from provided query.voidPersistenceGenerator.StatementGenerator.addQueryItem(Method.Builder builder, PersistenceGenerator.Query query, TypeName returnType) Add query from provided query.voidPersistenceGenerator.StatementGenerator.addQueryPage(Method.Builder builder, PersistenceGenerator.Query query, TypeName returnType, String firstResult, String maxResults) Add code to create query and returnListofreturnTypeinstances with pagination applied.voidPersistenceGenerator.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 returnListofreturnTypeinstances with pagination applied.voidPersistenceGenerator.StatementGenerator.addRemove(Method.Builder builder, String identifier) Add code to remove single entity.voidPersistenceGenerator.StatementGenerator.addRemoveCollection(Method.Builder builder, String identifier) Add code to remove entitiesCollection.voidPersistenceGenerator.StatementGenerator.addSessionLambda(Method.Builder builder, Consumer<Method.Builder> content) Add code with persistence session lambda expression.voidPersistenceGenerator.StatementGenerator.addSessionLambdaBlock(Method.Builder builder, Consumer<Method.Builder> content) Add code with persistence session lambda block.voidPersistenceGenerator.StatementGenerator.addUpdate(Method.Builder builder, String executor, String identifier, TypeName entity) Add code to update entity.voidPersistenceGenerator.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 TypeMethodDescriptionvoidPersistenceGenerator.StatementGenerator.addQueryCount(Method.Builder builder, Consumer<Method.Builder> queryContent, List<PersistenceGenerator.QuerySettings> settings, TypeName returnType) AddCOUNTquery from provided query.voidPersistenceGenerator.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 returnListofreturnTypeinstances with pagination applied.voidPersistenceGenerator.StatementGenerator.addSessionLambda(Method.Builder builder, Consumer<Method.Builder> content) Add code with persistence session lambda expression.voidPersistenceGenerator.StatementGenerator.addSessionLambdaBlock(Method.Builder builder, Consumer<Method.Builder> content) Add code with persistence session lambda block.