Uses of Interface
st.orm.Metamodel
Packages that use Metamodel
Package
Description
Foundation of the data model: the mapping annotations and the record interfaces.
Java repository API.
Java client API: templates, query builders and transactions.
-
Uses of Metamodel in st.orm
Modifier and TypeInterfaceDescriptionstatic interfaceMetamodel.Key<T extends Data,E> Marker interface for metamodel fields that correspond to columns known to be unique.interfaceTypedMetamodel<T extends Data,E, V extends @Nullable Object> AMetamodelthat also carries the declared component type of the field it represents.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.static final recordMetamodel.KeyDelegate<T extends Data,E> Delegating wrapper that adds theMetamodel.Keymarker to an existingMetamodelinstance.Modifier and TypeMethodDescriptionNavigable.asMetamodel()Returns this navigable as a metamodel that can locate a column.Navigable.canonical()Returns the canonical metamodel for the field represented bythis.Metamodel.KeyDelegate.delegate()Returns the value of thedelegaterecord component.Metamodel<?, ?> Pageable.Order.field()Returns the value of thefieldrecord component.Creates a new metamodel for the given root rootTable and path.Creates a new metamodel for the given record type.Scrollable.sort()Returns the value of thesortrecord component.AbstractMetamodel.table()Returns the table that holds the column to which this metamodel is pointing.Metamodel.KeyDelegate.table()Metamodel.table()Returns the table that holds the column to which this metamodel is pointing.Modifier and TypeMethodDescriptionMetamodel.KeyDelegate.flatten()Navigable.flatten()Returns a flat list of leaf metamodels for this navigable.Modifier and TypeMethodDescriptionstatic <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.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.Returns a new pageable with an ascending sort order appended for the given field.Pageable.sortByDescending(Metamodel<?, ?> field) Returns a new pageable with a descending sort order appended for the given field.ModifierConstructorDescriptionAbstractKeyMetamodel(Class<E> fieldType, String path, String field, boolean inline, @Nullable Metamodel<T, ?> parent) protectedAbstractKeyMetamodel(Class<E> fieldType, String path, String field, boolean inline, @Nullable Metamodel<T, ?> parent, boolean isColumn) AbstractKeyMetamodel(Class<E> fieldType, String path, String field, boolean inline, @Nullable Metamodel<T, ?> parent, boolean isColumn, boolean nullable) Constructs a key metamodel with explicit column and nullable flags.AbstractMetamodel(Class<E> fieldType, String path, String field, boolean inline, @Nullable Metamodel<T, ?> parent) protectedAbstractMetamodel(Class<E> fieldType, String path, String field, boolean inline, @Nullable Metamodel<T, ?> parent, boolean isColumn) KeyDelegate(Metamodel<T, E> delegate) Creates an instance of aKeyDelegaterecord class.Creates an instance of aOrderrecord class.Scrollable(Metamodel.Key<T, ?> key, @Nullable Object keyCursor, @Nullable Metamodel<T, ?> sort, @Nullable Object sortCursor, int size, boolean isForward) Creates an instance of aScrollablerecord class. -
Uses of Metamodel in st.orm.repository
Methods in st.orm.repository with parameters of type MetamodelModifier and TypeMethodDescriptiondefault <V extends Data>
longCounts entities matching the specified field and referenced value.default <V> longCounts entities matching the specified field and value.default <V extends Data>
longCounts projections matching the specified field and referenced value.default <V> longCounts projections matching the specified field and value.default <V extends Data>
booleanChecks if any entity matching the specified field and referenced value exists.default <V> booleanChecks if any entity matching the specified field and value exists.default <V extends Data>
booleanChecks if any projection matching the specified field and referenced value exists.default <V> booleanChecks if any projection matching the specified field and value exists.Retrieves entities matching a single field against multiple values.Retrieves entities matching a single field and a single referenced value.Retrieves entities matching a single field and a single value.Retrieves projections matching a single field against multiple values.Retrieves projections matching a single field and a single referenced value.Retrieves projections matching a single field and a single 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, 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 an entity based on a single field and its referenced value.Retrieves an entity based on a single field and its value.Retrieves a projection based on a single field and its referenced value.Retrieves a projection based on a single field and its value.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.Retrieves exactly one entity based on a single field and its referenced value.default <V> ERetrieves exactly one entity based on a single field and its value.Retrieves exactly one projection based on a single field and its referenced value.default <V> PRetrieves exactly one projection based on a single field and its value.Retrieves 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.default <V> intEntityRepository.removeAllBy(Metamodel<E, V> field, Iterable<? extends V> values) Removes entities matching the specified field against multiple values.default <V extends Data>
intEntityRepository.removeAllBy(Metamodel<E, V> field, Ref<V> value) Removes entities matching the specified field and referenced value.default <V> intEntityRepository.removeAllBy(Metamodel<E, V> field, V value) Removes entities matching the specified field and 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. -
Uses of Metamodel in st.orm.template
Methods in st.orm.template that return MetamodelMethods in st.orm.template with parameters of type MetamodelModifier and TypeMethodDescriptionstatic ElementGenerates a column element for a column specified by the givenmetamodelin a type safe manner.static ElementTemplates.column(Metamodel<?, ?> path, ResolveScope scope) Generates a column element for a column specified by the givenmetamodelin a type safe manner.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.static <V> ElementGenerates a WHERE clause based on the provided path, operator, and iterable of values or records.static <V> ElementGenerates a WHERE clause based on the provided path, operator, and values or records.Method parameters in st.orm.template with type arguments of type Metamodel