Uses of Interface
st.orm.Ref
Packages that use Ref
-
Uses of Ref in st.orm
Modifier and TypeMethodDescriptionRef.of(E entity) Creates a fully loaded ref instance that wraps the given entity.static <P extends Record & Projection<ID>,ID>
Ref<P> Ref.of(P projection, ID id) Creates a fully loaded ref instance that wraps the given projection along with its primary key.Ref.ofNull()Creates a ref instance with a null value.Ref.ofNullable(E entity) Creates a ref instance with the specifiedentity, if non-null, otherwise returns a null ref instance.static <P extends Record & Projection<ID>,ID>
Ref<P> Ref.ofNullable(P projection, ID id) Creates a ref instance with the specifiedprojectionandid, if both non-null, otherwise returns a null ref instance.Modifier and TypeMethodDescriptionQuery.getRefList(Class<T> type, Class<?> pkType) Execute a SELECT query and return the resulting rows as a list of ref instances.Query.getRefStream(Class<T> type, Class<?> pkType) Execute a SELECT query and return the resulting rows as a stream of ref instances.Modifier and TypeMethodDescriptionExtracts the primary key from the given entity ref returning a type-safe id.Ref.projectionId(Ref<P> ref) Extracts the primary key from the given projection ref returning a type-safe id. -
Uses of Ref in st.orm.repository
Methods in st.orm.repository that return RefModifier and TypeMethodDescriptionCreates a new ref entity instance for the specified entity.Creates a new ref entity instance with the specified primary key.Creates a new ref projection instance with the specified primary key.Creates a new ref projection instance with the specified projection.Unloads the given entity from memory by converting it into a lightweight ref containing only its primary key.Methods in st.orm.repository that return types with arguments of type RefModifier and TypeMethodDescriptionQueryBuilder<E, Ref<E>, ID> EntityRepository.selectRef()Creates a new query builder for selecting refs to entities of the type managed by this repository.Creates a new query builder for selecting refs to entities of the type managed by this repository.Methods in st.orm.repository with parameters of type RefModifier and TypeMethodDescriptionbooleanEntityRepository.existsByRef(Ref<E> ref) Checks if an entity with the specified primary key exists in the database.booleanProjectionRepository.existsByRef(Ref<P> ref) Checks if a projection with the specified primary key exists in the database.Retrieves an entity based on its primary key, expressed by a ref.Retrieves a projection based on its primary key.Retrieves an entity based on its primary key, expressed by a ref.Retrieves a projection based on its primary key.Method parameters in st.orm.repository with type arguments of type RefModifier and TypeMethodDescriptionlongEntityRepository.countByRef(Stream<Ref<E>> refs) Counts the number of entities identified by the provided stream of refs using the default batch size.longEntityRepository.countByRef(Stream<Ref<E>> refs, int batchSize) Counts the number of entities identified by the provided stream of refs, with the counting process divided into batches of the specified size.longProjectionRepository.countByRef(Stream<Ref<P>> refs) Counts the number of projections identified by the provided stream of refs using the default batch size.longProjectionRepository.countByRef(Stream<Ref<P>> refs, int batchSize) Counts the number of projections identified by the provided stream of refs, with the counting process divided into batches of the specified size.EntityRepository.findAllByRef(Iterable<Ref<E>> refs) Retrieves a list of entities based on their primary keys.ProjectionRepository.findAllByRef(Iterable<Ref<P>> refs) Retrieves a list of projections based on their primary keys.EntityRepository.selectAllByRef(Stream<Ref<E>> refs) Retrieves a stream of entities based on their primary keys.EntityRepository.selectAllByRef(Stream<Ref<E>> refs, int batchSize) Retrieves a stream of entities based on their primary keys.default <R> REntityRepository.selectAllByRef(Stream<Ref<E>> refs, int batchSize, ResultCallback<E, R> callback) Retrieves a stream of entities based on their primary keys.default <R> REntityRepository.selectAllByRef(Stream<Ref<E>> refs, ResultCallback<E, R> callback) Processes a stream of entities corresponding to the provided IDs using the specified callback.ProjectionRepository.selectAllByRef(Stream<Ref<P>> refs) Retrieves a stream of projections based on their primary keys.ProjectionRepository.selectAllByRef(Stream<Ref<P>> refs, int batchSize) Retrieves a stream of projections based on their primary keys.default <R> RProjectionRepository.selectAllByRef(Stream<Ref<P>> refs, int batchSize, ResultCallback<P, R> callback) Retrieves a stream of projections based on their primary keys.default <R> RProjectionRepository.selectAllByRef(Stream<Ref<P>> refs, ResultCallback<P, R> callback) Processes a stream of projections corresponding to the provided IDs using the specified callback. -
Uses of Ref in st.orm.spi
Methods in st.orm.spi that return RefModifier and TypeMethodDescriptionCreates a new ref entity instance for the specified entity.Creates a new ref projection instance with the specified projection.Unloads the given entity from memory by converting it into a lightweight ref containing only its primary key.Methods in st.orm.spi that return types with arguments of type RefModifier and TypeMethodDescriptionQueryBuilder<E, Ref<E>, ID> EntityRepositoryImpl.selectRef()Creates a new query builder for selecting refs to entities of the type managed by this repository.Creates a new query builder for selecting refs to entities of the type managed by this repository.<T extends Record,R extends Record, ID>
QueryBuilder<T, Ref<R>, ID> DefaultQueryBuilderProviderImpl.selectRefFrom(QueryTemplate queryTemplate, Class<T> fromType, Class<R> refType, Class<?> pkType, Supplier<Model<T, ID>> modelSupplier) Creates a query builder for the specified table and select type using the giventemplate.static <T extends Record,R extends Record, ID>
QueryBuilder<T, Ref<R>, ID> Providers.selectRefFrom(QueryTemplate queryTemplate, Class<T> fromType, Class<R> refType, Class<?> pkType, Supplier<Model<T, ID>> modelSupplier) <T extends Record,R extends Record, ID>
QueryBuilder<T, Ref<R>, ID> QueryBuilderProvider.selectRefFrom(QueryTemplate queryTemplate, Class<T> fromType, Class<R> refType, Class<?> pkType, Supplier<Model<T, ID>> modelSupplier) Creates a query builder for the specified table and select type using the giventemplate. -
Uses of Ref in st.orm.template
Methods in st.orm.template that return RefModifier and TypeMethodDescriptionCreates a ref instance for the specified recordtypeandpk.QueryTemplate.ref(T record, ID id) Creates a ref instance for the specified recordtypeandid.Methods in st.orm.template with parameters of type RefModifier and TypeMethodDescriptionfinal QueryBuilder<T, R, ID> Adds a WHERE clause that matches the specified primary key of the table, expressed by a ref.final <V extends Record>
QueryBuilder<T, R, ID> Adds a WHERE clause that matches the specified ref.abstract <V extends Record>
QueryBuilder.PredicateBuilder<T, R, ID> Adds a condition to the WHERE clause that matches the specified ref.abstract <V extends Record>
QueryBuilder.PredicateBuilder<T, R, ID> Adds a condition to the WHERE clause that matches the specified ref.abstract QueryBuilder.PredicateBuilder<T, R, ID> QueryBuilder.WhereBuilder.whereAnyRef(Ref<? extends Record> ref) Adds a condition to the WHERE clause that matches the specified primary key of the table, expressed by a ref.abstract QueryBuilder.PredicateBuilder<T, R, ID> Adds a condition to the WHERE clause that matches the specified primary key of the table, expressed by a ref.Method parameters in st.orm.template with type arguments of type RefModifier and TypeMethodDescriptionabstract QueryBuilder.PredicateBuilder<T, R, ID> QueryBuilder.WhereBuilder.whereAnyRef(Iterable<? extends Ref<? extends Record>> it) Adds a condition to the WHERE clause that matches the specified primary keys of the table, expressed by a ref.abstract <V extends Record>
QueryBuilder.PredicateBuilder<T, R, ID> QueryBuilder.WhereBuilder.whereAnyRef(Metamodel<?, V> path, Iterable<? extends Ref<V>> it) Adds a condition to the WHERE clause that matches the specified refs.abstract QueryBuilder.PredicateBuilder<T, R, ID> Adds a condition to the WHERE clause that matches the specified primary keys of the table, expressed by a ref.abstract <V extends Record>
QueryBuilder.PredicateBuilder<T, R, ID> Adds a condition to the WHERE clause that matches the specified refs.final QueryBuilder<T, R, ID> Adds a WHERE clause that matches the specified primary keys of the table, expressed by a ref.final <V extends Record>
QueryBuilder<T, R, ID> Adds a WHERE clause that matches the specified records. -
Uses of Ref in st.orm.template.impl
Classes in st.orm.template.impl that implement RefModifier and TypeClassDescriptionclassAbstractRef<T extends Record>Abstract implementation ofRefto have consistent implementations ofAbstractRef.hashCode(),AbstractRef.equals(Object).Methods in st.orm.template.impl that return RefModifier and TypeMethodDescriptionCreates a ref instance for the specified recordtypeandpk.RefFactory.create(T record, ID pk) Creates a ref instance for the specifiedrecordandpk.Creates a ref instance for the specified recordtypeandpk.RefFactoryImpl.create(T record, ID pk) Creates a ref instance for the specifiedrecord,typeandpk.