Uses of Interface
st.orm.Ref

Packages that use Ref
  • Uses of Ref in st.orm

    Methods in st.orm that return Ref
    Modifier and Type
    Method
    Description
    static <E extends Record & Entity<?>>
    Ref<E>
    Ref.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.
    static <T extends Record>
    Ref<T>
    Ref.ofNull()
    Creates a ref instance with a null value.
    static <E extends Record & Entity<?>>
    Ref<E>
    Ref.ofNullable(E entity)
    Creates a ref instance with the specified entity, 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 specified projection and id, if both non-null, otherwise returns a null ref instance.
    Methods in st.orm that return types with arguments of type Ref
    Modifier and Type
    Method
    Description
    default <T extends Record>
    List<Ref<T>>
    Query.getRefList(Class<T> type, Class<?> pkType)
    Execute a SELECT query and return the resulting rows as a list of ref instances.
    <T extends Record>
    Stream<Ref<T>>
    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 with parameters of type Ref
    Modifier and Type
    Method
    Description
    static <ID, E extends Record & Entity<ID>>
    ID
    Ref.entityId(Ref<E> ref)
    Extracts the primary key from the given entity ref returning a type-safe id.
    static <ID, P extends Record & Entity<ID>>
    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 Ref
    Modifier and Type
    Method
    Description
    EntityRepository.ref(E entity)
    Creates a new ref entity instance for the specified entity.
    EntityRepository.ref(ID id)
    Creates a new ref entity instance with the specified primary key.
    ProjectionRepository.ref(ID id)
    Creates a new ref projection instance with the specified primary key.
    ProjectionRepository.ref(P projection, ID id)
    Creates a new ref projection instance with the specified projection.
    EntityRepository.unload(E entity)
    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 Ref
    Modifier and Type
    Method
    Description
    EntityRepository.selectRef()
    Creates a new query builder for selecting refs to entities of the type managed by this repository.
    <R extends Record & Entity<?>>
    QueryBuilder<E,Ref<R>,ID>
    EntityRepository.selectRef(Class<R> refType)
    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 Ref
    Modifier and Type
    Method
    Description
    boolean
    EntityRepository.existsByRef(Ref<E> ref)
    Checks if an entity with the specified primary key exists in the database.
    boolean
    ProjectionRepository.existsByRef(Ref<P> ref)
    Checks if a projection with the specified primary key exists in the database.
    EntityRepository.findByRef(Ref<E> ref)
    Retrieves an entity based on its primary key, expressed by a ref.
    ProjectionRepository.findByRef(Ref<P> ref)
    Retrieves a projection based on its primary key.
    EntityRepository.getByRef(Ref<E> ref)
    Retrieves an entity based on its primary key, expressed by a ref.
    ProjectionRepository.getByRef(Ref<P> ref)
    Retrieves a projection based on its primary key.
    Method parameters in st.orm.repository with type arguments of type Ref
    Modifier and Type
    Method
    Description
    long
    EntityRepository.countByRef(Stream<Ref<E>> refs)
    Counts the number of entities identified by the provided stream of refs using the default batch size.
    long
    EntityRepository.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.
    long
    ProjectionRepository.countByRef(Stream<Ref<P>> refs)
    Counts the number of projections identified by the provided stream of refs using the default batch size.
    long
    ProjectionRepository.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> R
    EntityRepository.selectAllByRef(Stream<Ref<E>> refs, int batchSize, ResultCallback<E,R> callback)
    Retrieves a stream of entities based on their primary keys.
    default <R> R
    EntityRepository.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> R
    ProjectionRepository.selectAllByRef(Stream<Ref<P>> refs, int batchSize, ResultCallback<P,R> callback)
    Retrieves a stream of projections based on their primary keys.
    default <R> R
    ProjectionRepository.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 Ref
    Modifier and Type
    Method
    Description
    EntityRepositoryImpl.ref(E entity)
    Creates a new ref entity instance for the specified entity.
    ProjectionRepositoryImpl.ref(P projection, ID id)
    Creates a new ref projection instance with the specified projection.
    EntityRepositoryImpl.unload(E entity)
    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 Ref
    Modifier and Type
    Method
    Description
    EntityRepositoryImpl.selectRef()
    Creates a new query builder for selecting refs to entities of the type managed by this repository.
    <R extends Record & Entity<?>>
    QueryBuilder<E,Ref<R>,ID>
    EntityRepositoryImpl.selectRef(Class<R> refType)
    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 given template.
    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 given template.
  • Uses of Ref in st.orm.template

    Methods in st.orm.template that return Ref
    Modifier and Type
    Method
    Description
    <T extends Record, ID>
    Ref<T>
    QueryTemplate.ref(Class<T> type, ID id)
    Creates a ref instance for the specified record type and pk.
    <T extends Record, ID>
    Ref<T>
    QueryTemplate.ref(T record, ID id)
    Creates a ref instance for the specified record type and id.
    Methods in st.orm.template with parameters of type Ref
    Modifier and Type
    Method
    Description
    QueryBuilder.where(Ref<T> ref)
    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>
    QueryBuilder.where(Metamodel<T,V> path, Ref<V> ref)
    Adds a WHERE clause that matches the specified ref.
    QueryBuilder.WhereBuilder.where(Metamodel<T,V> path, Ref<V> ref)
    Adds a condition to the WHERE clause that matches the specified ref.
    QueryBuilder.WhereBuilder.whereAny(Metamodel<?,V> path, Ref<V> ref)
    Adds a condition to the WHERE clause that matches the specified ref.
    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.
    QueryBuilder.WhereBuilder.whereRef(Ref<T> ref)
    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 Ref
    Modifier and Type
    Method
    Description
    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.
    QueryBuilder.WhereBuilder.whereAnyRef(Metamodel<?,V> path, Iterable<? extends Ref<V>> it)
    Adds a condition to the WHERE clause that matches the specified refs.
    QueryBuilder.WhereBuilder.whereRef(Iterable<? extends Ref<T>> it)
    Adds a condition to the WHERE clause that matches the specified primary keys of the table, expressed by a ref.
    QueryBuilder.WhereBuilder.whereRef(Metamodel<T,V> path, Iterable<? extends Ref<V>> it)
    Adds a condition to the WHERE clause that matches the specified refs.
    QueryBuilder.whereRef(Iterable<? extends Ref<T>> it)
    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>
    QueryBuilder.whereRef(Metamodel<T,V> path, Iterable<? extends Ref<V>> it)
    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 Ref
    Modifier and Type
    Class
    Description
    class 
    AbstractRef<T extends Record>
    Abstract implementation of Ref to have consistent implementations of AbstractRef.hashCode(), AbstractRef.equals(Object).
    Methods in st.orm.template.impl that return Ref
    Modifier and Type
    Method
    Description
    <T extends Record, ID>
    Ref<T>
    RefFactory.create(Class<T> type, ID pk)
    Creates a ref instance for the specified record type and pk.
    <T extends Record, ID>
    Ref<T>
    RefFactory.create(T record, ID pk)
    Creates a ref instance for the specified record and pk.
    <T extends Record, ID>
    Ref<T>
    RefFactoryImpl.create(Class<T> type, ID pk)
    Creates a ref instance for the specified record type and pk.
    <T extends Record, ID>
    Ref<T>
    RefFactoryImpl.create(T record, ID pk)
    Creates a ref instance for the specified record, type and pk.