Uses of Interface
st.orm.Data
Packages that use Data
Package
Description
Foundation of the data model: the mapping annotations and the record interfaces.
Record mapping contracts.
Java repository API.
Java client API: templates, query builders and transactions.
-
Uses of Data in st.orm
Modifier and TypeClassDescriptionclassAbstractKeyMetamodel<T extends Data,E, V extends @Nullable Object> Extension ofAbstractMetamodelthat implementsMetamodel.Key, indicating that the field has a uniqueness constraint.classAbstractMetamodel<T extends Data,E, V extends @Nullable Object> Implementation that is used by the generated models.classAbstractNavigableMetamodel<T extends Data,E> Base implementation for generated navigation-only metamodels — nodes that navigate the entity graph beyond aRefforeign key.interfaceThe metamodel provides type-safe references to entity fields for use in queries.static interfaceMetamodel.Key<T extends Data,E> Marker interface for metamodel fields that correspond to columns known to be unique.static final recordMetamodel.KeyDelegate<T extends Data,E> Delegating wrapper that adds theMetamodel.Keymarker to an existingMetamodelinstance.interfaceThe navigational part of aMetamodel: everything needed to locate a field within the entity graph and use it in a query (filter, join, order, group, select), without exposing value extraction.interfaceRef records are used to represent reference to records, allowing them to be fetched from the database.final recordScrollable<T extends Data>Represents a scroll request that captures the cursor state needed to fetch a window of results.interfaceTypedMetamodel<T extends Data,E, V extends @Nullable Object> AMetamodelthat also carries the declared component type of the field it represents.Modifier and TypeInterfaceDescriptioninterfaceEntity<ID>Optional marker interface for record-based entities.interfaceProjection<ID>Marker interface for record-based projections.Modifier and TypeMethodDescriptionstatic <T extends Data,E>
Scrollable<T> Scrollable.fromCursor(Metamodel.Key<T, E> key, String cursor) Deserializes a cursor string (produced byScrollable.toCursor()) into aScrollablefor single-key scrolling.static <T extends Data,E, S>
Scrollable<T> Scrollable.fromCursor(Metamodel.Key<T, E> key, @Nullable Metamodel<T, S> sort, String cursor) Deserializes a cursor string (produced byScrollable.toCursor()) into aScrollablefor composite scrolling with a sort field.static <T extends Data,E>
Metamodel.Key<T, E> Returns aKeyview of the given metamodel.<T extends Data>
@Nullable Scrollable<T> Window.next()Returns a typed scrollable for fetching the next window, ornullif the window is empty.Creates a new metamodel for the given root rootTable and path.Creates a detached ref instance for the given type and primary key.static <T extends Data,E>
Scrollable<T> Scrollable.of(Metamodel.Key<T, E> key, int size) Creates a scrollable request for the first page in ascending key order.static <T extends Data,E>
Scrollable<T> Scrollable.of(Metamodel.Key<T, E> key, E keyCursor, int size) Creates a scrollable request starting after the given cursor value, in ascending key order.static <T extends Data,E, S>
Scrollable<T> Scrollable.of(Metamodel.Key<T, E> key, E keyCursor, Metamodel<T, S> sort, S sortCursor, int size) Creates a scrollable request starting after the given cursor values, in ascending key order, sorted by the given field.static <T extends Data,E, S>
Scrollable<T> Scrollable.of(Metamodel.Key<T, E> key, Metamodel<T, S> sort, int size) Creates a scrollable request for the first page in ascending key order, sorted by the given field.<T extends Data>
@Nullable Scrollable<T> Window.previous()Returns a typed scrollable for fetching the previous window, ornullif the window is empty.Creates a new metamodel for the given record type.Modifier and TypeMethodDescriptionNavigable.canonical()Returns the canonical metamodel for the field represented bythis.AbstractMetamodel.table()Returns the table that holds the column to which this metamodel is pointing.AbstractNavigableMetamodel.table()Metamodel.KeyDelegate.table()Metamodel.table()Returns the table that holds the column to which this metamodel is pointing.Navigable.table()Returns the navigable of the table that holds the column this navigable points to.Navigable.tableType()Returns the type of the table that holds the column this navigable points to. -
Uses of Data in st.orm.mapping
Methods in st.orm.mapping that return types with arguments of type Data -
Uses of Data in st.orm.repository
Methods in st.orm.repository with type parameters of type DataModifier 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.Retrieves entities matching a single field and a single referenced value.Retrieves projections matching a single field and a single referenced value.EntityRepository.findAllByRef(Metamodel<E, V> field, Iterable<? extends Ref<V>> values) Retrieves entities matching a single field against multiple referenced values.ProjectionRepository.findAllByRef(Metamodel<P, V> field, Iterable<? extends Ref<V>> values) Retrieves projections matching a single field against multiple referenced values.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.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 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.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 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.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 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.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.<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.<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. -
Uses of Data in st.orm.template
Classes in st.orm.template with type parameters of type DataModifier and TypeInterfaceDescriptioninterfaceJoinBuilder<T extends Data,R, ID> A builder for specifying the ON condition of a JOIN clause using a custom string template expression.interfaceProvides metadata about an entity or projection type, including its table name, primary key type, and column definitions.interfacePredicateBuilder<T extends Data,R, ID> Represents a composable predicate for the WHERE clause of a query, supportingANDandORcomposition.classQueryBuilder<T extends Data,R, ID> A fluent builder for constructing type-safe SELECT and DELETE queries using the entity graph and metamodel.interfaceTypedJoinBuilder<T extends Data,R, ID> A builder for specifying the ON condition of a JOIN clause using a type-safe entity relation or a custom expression.classWhereBuilder<T extends Data,R, ID> A builder for constructing the WHERE clause of a query, providing type-safe predicate construction.Methods in st.orm.template with type parameters of type DataModifier and TypeMethodDescription<T extends Data>
QueryBuilder<T, ?, ?> QueryTemplate.deleteFrom(Class<T> fromType) Creates a query builder for the specified table to delete from.Query.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.abstract <V extends Data>
SequencedMap<V, List<R>> QueryBuilder.getResultGroupedBy(TypedMetamodel<T, V, V> path) Executes the query and returns the results grouped by the record reached viapath, typically the parent entity of a foreign key.abstract <V extends Data>
SequencedMap<Ref<V>, List<R>> QueryBuilder.getResultGroupedByRef(Metamodel<T, V> path) Executes the query and returns the results grouped by a lightweight ref to the record reached viapath, typically the parent entity of a foreign key.Get the model for the specified recordtype.Get the model for the specified recordtype.abstract <X extends Data>
QueryBuilder<X, R, ID> Returns a query builder rooted at the specified type, narrowing a builder whose root was relaxed by a join.Creates a ref instance for the specified recordtypeandpk.QueryTemplate.ref(T record, ID id) Creates a ref instance for the specified recordtypeandid.default <T extends Data>
QueryBuilder<T, T, ?> QueryTemplate.selectFrom(Class<T> fromType) Creates a query builder for the specified table.default <T extends Data,R>
QueryBuilder<T, R, ?> QueryTemplate.selectFrom(Class<T> fromType, Class<R> selectType) Creates a query builder for the specified table and select type.<T extends Data,R>
QueryBuilder<T, R, ?> QueryTemplate.selectFrom(Class<T> fromType, Class<R> selectType, StringTemplatePREVIEW template) Creates a query builder for the specified table and select type using the giventemplate.default <T extends Data>
QueryBuilder<T, ?, ?> Create a subquery for the given table.default <T extends Data,R extends Data>
QueryBuilder<T, ?, ?> Create a subquery for the given table and select type.default <T extends Data,R extends Data>
QueryBuilder<T, ?, ?> Create a subquery for the given table and select type.<T extends Data>
QueryBuilder<T, ?, ?> SubqueryTemplate.subquery(Class<T> fromType, StringTemplatePREVIEW template) Create a subquery for the given table and select type using the giventemplate.final <V extends Data>
QueryBuilder<T, R, ID> Adds a WHERE clause that matches the specified records.final <V extends Data>
QueryBuilder<T, R, ID> Adds a WHERE clause that matches the specified ref.final <V extends Data>
PredicateBuilder<T, R, ID> Adds a condition to the WHERE clause that matches the specified records.abstract <V extends Data>
PredicateBuilder<T, R, ID> Adds a condition to the WHERE clause that matches the specified ref.final <V extends Data>
PredicateBuilder<T, R, ID> Adds a condition to the WHERE clause that matches the specified record.final <V extends Data>
QueryBuilder<T, R, ID> Adds a WHERE clause that matches the specified records.abstract <V extends Data>
PredicateBuilder<T, R, ID> Adds a condition to the WHERE clause that matches the specified refs.Methods in st.orm.template that return types with arguments of type DataModifier and TypeMethodDescriptionabstract QueryBuilder<Data, R, ID> Adds a cross join to the query.abstract QueryBuilder<Data, R, ID> QueryBuilder.crossJoin(StringTemplatePREVIEW template) Adds a cross join to the query.Column.metamodel()Gets the metamodel of the column.JoinBuilder.on(StringTemplatePREVIEW template) Specifies the join condition using a custom expression.Specifies the relation to join on.abstract QueryBuilder<Data, R, ID> QueryBuilder.widen()Widens the query as a join does, without joining: from here on, every clause accepts paths from any entity in the query.Methods in st.orm.template with parameters of type DataModifier and TypeMethodDescriptionvoidAdd a record to the batch.static ElementGenerates a SET clause for the specified record.static ElementTemplates.set(Data record, Collection<Metamodel<?, ?>> fields) Generates a SET clause for the specified record.static ElementGenerates a VALUES clause for the specified record instance(s).static ElementGenerates a VALUES clause for the specified record instance(s).Method parameters in st.orm.template with type arguments of type DataModifier and TypeMethodDescriptionstatic ElementGenerates an alias element for the specified table class.static ElementTemplates.alias(Class<? extends Data> table, ResolveScope scope) Generates an alias element for the specified table class.static ElementCreates a new var element that can be used to specify individual bind variables in the query.abstract QueryBuilder<Data, R, ID> Adds a cross join to the query.static ElementGenerates a DELETE element for the specified table class.static ElementGenerates a DELETE element for the specified table class with an alias.abstract QueryBuilder<T, R, ID> Resolves the references at the specified paths as part of this query.static ElementGenerates a FROM element for the specified table class without an alias and optional auto-joining of foreign keys.static ElementGenerates a FROM element for the specified table class, with an alias and optional auto-joining of foreign keys.abstract TypedJoinBuilder<T, R, ID> Adds an inner join to the query.static ElementGenerates an INSERT element for the specified table class.static ElementGenerates an INSERT element for the specified table class.abstract TypedJoinBuilder<T, R, ID> Adds a join of the specified type to the query.abstract TypedJoinBuilder<T, R, ID> Adds a left join to the query.Specifies the relation to join on.abstract TypedJoinBuilder<T, R, ID> Adds a right join to the query.static ElementGenerates a SELECT element for the specified table class.static ElementTemplates.select(Class<? extends Data> table, SelectMode mode) Generates a SELECT element for the specified table class.static ElementGenerates a Table element for the specified table class.static ElementGenerates a Table element with an alias for the specified table class.static ElementGenerates an UPDATE element for the specified table class.static ElementGenerates an UPDATE element for the specified table class with an alias.ORMTemplate.validateSchema(Iterable<Class<? extends Data>> types) Validates the specified types against the database schema.ORMTemplate.validateSchema(Predicate<Class<? extends Data>> filter) Validates discovered types matching the filter against the database schema.voidORMTemplate.validateSchemaOrThrow(Iterable<Class<? extends Data>> types) Validates the specified types and throws if any errors are found.voidORMTemplate.validateSchemaOrThrow(Predicate<Class<? extends Data>> filter) Validates discovered types matching the filter and throws if any errors are found.static ElementGenerates a VALUES clause for the specified iterable of record instances.static ElementGenerates a VALUES clause for the specified iterable of record instances.