Package org.fryske_akademy.services
Class AbstractCrudServiceEnvers
java.lang.Object
org.fryske_akademy.services.AbstractCrudService
org.fryske_akademy.services.AbstractCrudServiceEnvers
- All Implemented Interfaces:
Auditing,CrudReadService,CrudWriteService
- Author:
- eduard
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.fryske_akademy.services.CrudReadService
CrudReadService.SORTORDER -
Field Summary
Fields inherited from class org.fryske_akademy.services.AbstractCrudService
DEFAULT_PAGE_SIZE, EDITORROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetRevision(Number n, Class<T> type) When more revisions of the same entity are found for this revision, the last is returnedgetRevisionInfo(Serializable id, Integer max, Class<T> type) return a list holding revision information, newest come firstgetRevisionNumbers(Serializable id, Class<T> type) return list of revision numbers, first is the oldest<T extends EntityInterface>
TpreviousState(Serializable id, Class<T> type, int stepsBack) Return the state before the last crud operation on an entity, or null when not found (or for insert).Methods inherited from class org.fryske_akademy.services.AbstractCrudService
batchDelete, batchSave, count, countDynamic, create, delete, find, find, findAll, findDynamic, findExactlyOne, findJpql, findNative, findNative, findNative, findOne, getDefaultPageSize, getJpqlBuilder, refresh, save, setJpqlBuilder, stream, streamAll, streamDynamic, streamNative, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.fryske_akademy.services.CrudReadService
count, countDynamic, find, find, findAll, findDynamic, findExactlyOne, findJpql, findNative, findNative, findNative, findOne, getDefaultPageSize, stream, streamAll, streamDynamic, streamNativeMethods inherited from interface org.fryske_akademy.services.CrudWriteService
getEntityManager
-
Constructor Details
-
AbstractCrudServiceEnvers
public AbstractCrudServiceEnvers()
-
-
Method Details
-
getRevision
When more revisions of the same entity are found for this revision, the last is returned- Specified by:
getRevisionin interfaceAuditing- Type Parameters:
T-- Parameters:
n-type-- Returns:
-
getRevisionInfo
Description copied from interface:Auditingreturn a list holding revision information, newest come first- Specified by:
getRevisionInfoin interfaceAuditingmax- the maximum to number of results to return, defaults to 5- Returns:
-
getRevisionNumbers
Description copied from interface:Auditingreturn list of revision numbers, first is the oldest- Specified by:
getRevisionNumbersin interfaceAuditing- Returns:
-
previousState
Description copied from interface:AuditingReturn the state before the last crud operation on an entity, or null when not found (or for insert). This can be used to build undo functionality- Specified by:
previousStatein interfaceAuditingstepsBack- how may steps back in history, 1 is the first step back
-
changes
-