public abstract class BasicRevisionBasedJpaRepository<T extends com.foreach.across.core.revision.RevisionBasedEntity<T>,U,R extends com.foreach.across.core.revision.Revision<U>>
extends com.foreach.across.core.revision.RevisionBasedEntityManager<T,U,R>
| Constructor and Description |
|---|
BasicRevisionBasedJpaRepository() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.springframework.data.jpa.domain.Specification<T> |
addOwnerRestriction(U owner)
Add owner restriction to the partically configured criteria.
|
protected void |
delete(T entity)
Removes an entity from the data store.
|
protected void |
deleteAllForOwner(U owner)
Delete all entities across all revisions for the owner.
|
protected javax.persistence.criteria.CriteriaQuery<T> |
distinct(org.springframework.data.jpa.domain.Specification<T>... specifications) |
protected Collection<T> |
getAllForDraftRevision(U owner) |
protected Collection<T> |
getAllForLatestRevision(U owner) |
protected Collection<T> |
getAllForSpecificRevision(U owner,
int revisionNumber) |
protected void |
insert(T entity)
Inserts a new entity in the data store.
|
protected Collection<T> |
list(javax.persistence.criteria.CriteriaQuery<T> criteriaQuery) |
protected org.springframework.data.jpa.domain.Specification<T> |
revisionSelector(int revisionNumber) |
protected org.hibernate.Session |
session() |
void |
setHibernateSessionHolder(HibernateSessionHolder hibernateSessionHolder) |
protected void |
update(T entity,
int currentFirstRevision,
int currentLastRevision)
Updates the entity value with the current first and last revision in the datastore.
|
activate, buildRevisionPairs, checkin, checkin, checkinEntities, checkout, checkout, convertToNewDtos, copyEntityValuesFromExisting, createEntityFromExisting, deleteEntities, deleteEntities, deleteEntities, expire, filterObsoleteEntities, getEntitiesForRevision, getEntitiesForRevision, getEntityForRevision, getEntityForRevision, isAllowRevisionModification, loadEntitiesForRevision, saveEntitiesForRevision, saveEntitiesForRevision, saveEntityForRevision, saveEntityForRevision, setAllowRevisionModification@Autowired public BasicRevisionBasedJpaRepository()
protected void insert(T entity)
protected void update(T entity, int currentFirstRevision, int currentLastRevision)
update in class com.foreach.across.core.revision.RevisionBasedEntityManager<T extends com.foreach.across.core.revision.RevisionBasedEntity<T>,U,R extends com.foreach.across.core.revision.Revision<U>>entity - New entity instance that should be stored.currentFirstRevision - Currently stored first revision.currentLastRevision - Currently stored last revision.protected void delete(T entity)
protected void deleteAllForOwner(U owner)
protected Collection<T> getAllForLatestRevision(U owner)
protected Collection<T> getAllForSpecificRevision(U owner, int revisionNumber)
protected Collection<T> getAllForDraftRevision(U owner)
protected Collection<T> list(javax.persistence.criteria.CriteriaQuery<T> criteriaQuery)
protected abstract org.springframework.data.jpa.domain.Specification<T> addOwnerRestriction(U owner)
protected javax.persistence.criteria.CriteriaQuery<T> distinct(org.springframework.data.jpa.domain.Specification<T>... specifications)
protected org.springframework.data.jpa.domain.Specification<T> revisionSelector(int revisionNumber)
protected org.hibernate.Session session()
@Autowired public void setHibernateSessionHolder(HibernateSessionHolder hibernateSessionHolder)
Copyright © 2020. All rights reserved.