Uses of Interface
st.orm.Entity
Packages that use Entity
Package
Description
Foundation of the data model: the mapping annotations and the record interfaces.
Java repository API.
-
Uses of Entity in st.orm
Modifier and TypeInterfaceDescriptioninterfaceEntityCallback<E extends Entity<?>>Typed callback interface for entity lifecycle events.Modifier and TypeMethodDescriptionstatic <ID,E extends Entity<ID>>
IDExtracts the primary key from the given entity ref returning a type-safe id.default <E extends Entity<?>>
EWriteSet.insertAndFetch(E entity) Inserts the given entity and its discovered members, and returns the entity as it exists in the database after the insert; seeWriteSet.insertAndFetch(Iterable).Ref.of(E entity) Creates a fully loaded ref instance that wraps the given entity.default <E extends Entity<?>>
EWriteSet.updateAndFetch(E entity) Updates the given entity and returns it as it exists in the database after the update; seeWriteSet.updateAndFetch(Iterable).default <E extends Entity<?>>
EWriteSet.upsertAndFetch(E entity) Upserts the given entity, inserts its discovered members, and returns the entity as it exists in the database after the upsert; seeWriteSet.upsertAndFetch(Iterable).Modifier and TypeMethodDescriptionWriteSet.insertAndFetch(Iterable<? extends Entity<?>> entities) Inserts likeWriteSet.insert(Iterable)and returns the explicit members as they exist in the database after the insert, in input order.WriteSet.insertAndFetch(Entity<?>... entities) Inserts likeWriteSet.insertAndFetch(Iterable)and returns the explicit members as they exist in the database after the insert, in input order; an empty call is a no-op and returns an empty list.WriteSet.updateAndFetch(Iterable<? extends Entity<?>> entities) Updates likeWriteSet.update(Iterable)and returns the passed entities as they exist in the database after the update, in input order.WriteSet.updateAndFetch(Entity<?>... entities) Updates likeWriteSet.updateAndFetch(Iterable)and returns the passed entities as they exist in the database after the update, in input order; an empty call is a no-op and returns an empty list.WriteSet.upsertAndFetch(Iterable<? extends Entity<?>> entities) Upserts likeWriteSet.upsert(Iterable)and returns the passed entities as they exist in the database after the upsert, in input order.WriteSet.upsertAndFetch(Entity<?>... entities) Upserts likeWriteSet.upsertAndFetch(Iterable)and returns the passed entities as they exist in the database after the upsert, in input order; an empty call is a no-op and returns an empty list.Modifier and TypeMethodDescriptiondefault voidInserts the given entity and its discovered members; seeWriteSet.insert(Iterable).default voidInserts the given entities and their discovered members; seeWriteSet.insert(Iterable).WriteSet.insertAndFetch(Entity<?>... entities) Inserts likeWriteSet.insertAndFetch(Iterable)and returns the explicit members as they exist in the database after the insert, in input order; an empty call is a no-op and returns an empty list.default <ID> IDWriteSet.insertAndFetchId(Entity<ID> entity) Inserts the given entity and its discovered members and returns its primary key; seeWriteSet.insertAndFetchIds(Iterable).default voidRemoves the given entity; seeWriteSet.remove(Iterable).default voidRemoves the given entities, children before parents; seeWriteSet.remove(Iterable).default voidUpdates the given entity; seeWriteSet.update(Iterable).default voidUpdates the given entities; seeWriteSet.update(Iterable).WriteSet.updateAndFetch(Entity<?>... entities) Updates likeWriteSet.updateAndFetch(Iterable)and returns the passed entities as they exist in the database after the update, in input order; an empty call is a no-op and returns an empty list.default voidUpserts the given entity and inserts its discovered members; seeWriteSet.upsert(Iterable).default voidUpserts the given entities and inserts their discovered members; seeWriteSet.upsert(Iterable).WriteSet.upsertAndFetch(Entity<?>... entities) Upserts likeWriteSet.upsertAndFetch(Iterable)and returns the passed entities as they exist in the database after the upsert, in input order; an empty call is a no-op and returns an empty list.default <ID> IDWriteSet.upsertAndFetchId(Entity<ID> entity) Upserts the given entity and its discovered members and returns its primary key; seeWriteSet.upsertAndFetchIds(Iterable).Modifier and TypeMethodDescriptionvoidInserts the explicit members and their discovered members, in dependency order.WriteSet.insertAndFetch(Iterable<? extends Entity<?>> entities) Inserts likeWriteSet.insert(Iterable)and returns the explicit members as they exist in the database after the insert, in input order.<ID> List<ID> WriteSet.insertAndFetchIds(Iterable<? extends Entity<ID>> entities) Inserts likeWriteSet.insert(Iterable)and returns the primary keys of the explicit members, in input order.voidRemoves the given entities, children before parents.voidUpdates the given entities, grouped by type.WriteSet.updateAndFetch(Iterable<? extends Entity<?>> entities) Updates likeWriteSet.update(Iterable)and returns the passed entities as they exist in the database after the update, in input order.voidUpserts the explicit members and inserts their discovered members, in dependency order.WriteSet.upsertAndFetch(Iterable<? extends Entity<?>> entities) Upserts likeWriteSet.upsert(Iterable)and returns the passed entities as they exist in the database after the upsert, in input order.<ID> List<ID> WriteSet.upsertAndFetchIds(Iterable<? extends Entity<ID>> entities) Upserts likeWriteSet.upsert(Iterable)and returns the primary keys of the explicit members, in input order. -
Uses of Entity in st.orm.repository
Classes in st.orm.repository with type parameters of type EntityModifier and TypeInterfaceDescriptioninterfaceEntityRepository<E extends Entity<ID>,ID> Provides a generic interface with CRUD operations for entities.Methods in st.orm.repository with type parameters of type EntityModifier and TypeMethodDescription<T extends Entity<ID>,ID>
EntityRepository<T, ID> Returns the repository for the given entity type.