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.Creates a detached ref instance for the given type and primary key.static <P extends 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.unload()Returns a detached ref with the same identity but without data.Modifier and TypeMethodDescriptionstatic <ID,E extends Entity<ID>>
IDExtracts the primary key from the given entity ref returning a type-safe id.static <ID,P extends Projection<ID>>
IDRef.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 TypeMethodDescriptionRetrieves a ref to exactly one entity based on a single field and its referenced value.Retrieves a ref to exactly one entity based on a single field and its value.Retrieves a ref to exactly one projection based on a single field and its referenced value.Retrieves a ref to exactly one projection based on a single field and its value.Creates 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 TypeMethodDescriptionEntityRepository.findAllRef()Returns a list of refs to all entities of the type supported by this repository.ProjectionRepository.findAllRef()Returns a list of refs to all projections of the type supported by this repository.EntityRepository.findAllRefBy(Metamodel<E, V> field, Iterable<? extends V> values) Retrieves refs to entities matching a single field against multiple values.EntityRepository.findAllRefBy(Metamodel<E, V> field, Ref<V> value) Retrieves refs to entities matching a single field and a single referenced value.EntityRepository.findAllRefBy(Metamodel<E, V> field, V value) Retrieves refs to entities matching a single field and a single value.ProjectionRepository.findAllRefBy(Metamodel<P, V> field, Iterable<? extends V> values) Retrieves refs to projections matching a single field against multiple values.ProjectionRepository.findAllRefBy(Metamodel<P, V> field, Ref<V> value) Retrieves refs to projections matching a single field and a single referenced value.ProjectionRepository.findAllRefBy(Metamodel<P, V> field, V value) Retrieves refs to projections matching a single field and a single value.EntityRepository.findAllRefByRef(Metamodel<E, V> field, Iterable<? extends Ref<V>> values) Retrieves refs to entities matching a single field against multiple referenced values.ProjectionRepository.findAllRefByRef(Metamodel<P, V> field, Iterable<? extends Ref<V>> values) Retrieves refs to projections matching a single field against multiple referenced values.Retrieves a ref to an entity based on a single field and its referenced value.Retrieves a ref to an entity based on a single field and its value.Retrieves a ref to a projection based on a single field and its referenced value.Retrieves a ref to a projection based on a single field and its value.EntityRepository.pageRef(int pageNumber, int pageSize) Returns a page of entity refs using offset-based pagination.Returns a page of entity refs using offset-based pagination.ProjectionRepository.pageRef(int pageNumber, int pageSize) Returns a page of projection refs using offset-based pagination.Returns a page of projection refs using offset-based pagination.QueryBuilder<E, Ref<E>, ID> EntityRepository.selectRef()Creates a new query builder for selecting refs to entities of the type managed by this repository.<R extends Data>
QueryBuilder<E, Ref<R>, ID> Creates a new query builder for selecting refs to entities of the type managed by this repository.QueryBuilder<P, Ref<P>, ID> ProjectionRepository.selectRef()Creates a new query builder for selecting refs to projections of the type managed by this repository.<R extends Data>
QueryBuilder<P, Ref<R>, ID> Creates a new query builder for selecting refs to projections of the type managed by this repository.Methods in st.orm.repository with parameters of type RefModifier and TypeMethodDescriptiondefault <V extends Data>
longCounts entities matching the specified field and referenced value.default <V extends Data>
longCounts projections matching the specified field and referenced value.default <V extends Data>
booleanChecks if any entity matching the specified field and referenced value exists.default <V extends Data>
booleanChecks if any projection matching the specified field and referenced value exists.booleanEntityRepository.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 entities matching a single field and a single referenced value.Retrieves projections matching a single field and a single referenced value.EntityRepository.findAllRefBy(Metamodel<E, V> field, Ref<V> value) Retrieves refs to entities matching a single field and a single referenced value.ProjectionRepository.findAllRefBy(Metamodel<P, V> field, Ref<V> value) Retrieves refs to projections matching a single field and a single referenced value.Retrieves an entity based on a single field and its referenced value.Retrieves a projection based on a single field and its referenced value.EntityRepository.findByRef(Metamodel.Key<E, V> key, Ref<V> value) Retrieves an entity by the ref value of a unique key field that references another entity.Retrieves an entity based on its primary key, expressed by a ref.ProjectionRepository.findByRef(Metamodel.Key<P, V> key, Ref<V> value) Retrieves a projection by the ref value of a unique key field that references another entity.Retrieves a projection based on its primary key.Retrieves a ref to an entity based on a single field and its referenced value.Retrieves a ref to a projection based on a single field and its referenced value.Retrieves exactly one entity based on a single field and its referenced value.Retrieves exactly one projection based on a single field and its referenced value.EntityRepository.getByRef(Metamodel.Key<E, V> key, Ref<V> value) Retrieves an entity by the ref value of a unique key field that references another entity.Retrieves an entity based on its primary key, expressed by a ref.ProjectionRepository.getByRef(Metamodel.Key<P, V> key, Ref<V> value) Retrieves a projection by the ref value of a unique key field that references another entity.Retrieves a projection based on its primary key.Retrieves a ref to exactly one entity based on a single field and its referenced value.Retrieves a ref to exactly one projection based on a single field and its referenced value.default <V extends Data>
intEntityRepository.removeAllBy(Metamodel<E, V> field, Ref<V> value) Removes entities matching the specified field and referenced value.voidEntityRepository.removeByRef(Ref<E> ref) Removes an entity from the database by its reference.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 chunkSize) 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 chunkSize) 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.EntityRepository.findAllByRef(Metamodel<E, V> field, Iterable<? extends Ref<V>> values) Retrieves entities matching a single field against multiple referenced values.ProjectionRepository.findAllByRef(Iterable<Ref<P>> refs) Retrieves a list of projections based on their primary keys.ProjectionRepository.findAllByRef(Metamodel<P, V> field, Iterable<? extends Ref<V>> values) Retrieves projections matching a single field against multiple referenced values.EntityRepository.findAllRefByRef(Metamodel<E, V> field, Iterable<? extends Ref<V>> values) Retrieves refs to entities matching a single field against multiple referenced values.ProjectionRepository.findAllRefByRef(Metamodel<P, V> field, Iterable<? extends Ref<V>> values) Retrieves refs to projections matching a single field against multiple referenced values.default <V extends Data>
intEntityRepository.removeAllByRef(Metamodel<E, V> field, Iterable<? extends Ref<V>> values) Removes entities matching the specified field against multiple referenced values.voidEntityRepository.removeByRef(Iterable<Ref<E>> refs) Removes a collection of entities from the database in batches.voidEntityRepository.removeByRef(Stream<Ref<E>> refs) Removes a stream of entities from the database in batches.voidEntityRepository.removeByRef(Stream<Ref<E>> refs, int batchSize) Removes a stream of entities from the database in configurable batch sizes.ProjectionRepository.selectByRef(Stream<Ref<P>> refs) Retrieves a stream of projections based on their primary keys.ProjectionRepository.selectByRef(Stream<Ref<P>> refs, int chunkSize) Retrieves a stream of projections based on their primary keys. -
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 that return types with arguments of type RefModifier 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.Methods in st.orm.template with parameters of type RefModifier and TypeMethodDescriptionfinal <V extends Data>
QueryBuilder<T, R, ID> Adds a WHERE clause that matches the specified ref.final QueryBuilder<T, R, ID> Adds a WHERE clause that matches the specified primary key of the table, expressed by a ref.abstract <V extends Data>
PredicateBuilder<T, R, ID> Adds a condition to the WHERE clause that matches the specified ref.abstract <V extends Data>
PredicateBuilder<T, R, ID> Adds a condition to the WHERE clause that matches the specified ref.abstract PredicateBuilder<T, R, ID> WhereBuilder.whereAnyRef(Ref<?> ref) Adds a condition to the WHERE clause that matches the specified primary key of the table, expressed by a ref.abstract 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 PredicateBuilder<T, R, ID> WhereBuilder.whereAnyRef(Iterable<? extends Ref<?>> it) Adds a condition to the WHERE clause that matches the specified primary keys of the table, expressed by a ref.abstract <V extends Data>
PredicateBuilder<T, R, ID> WhereBuilder.whereAnyRef(Metamodel<?, V> path, Iterable<? extends Ref<V>> it) 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 Data>
QueryBuilder<T, R, ID> Adds a WHERE clause that matches the specified records.abstract 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 Data>
PredicateBuilder<T, R, ID> Adds a condition to the WHERE clause that matches the specified refs.