public interface ChangeEntryService extends RepositoryIndexable, Process
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAll()
Only for testing
|
default void |
ensureAllFields()
Ensures that all the entity fields exist, or create them if not.
|
void |
ensureField(Field field)
Ensures that the specified entity field exists, or create it if not.
|
default List<ChangeEntry> |
getAllEntriesWithCurrentState()
Retrieves a list of the entries in database with the current relevant state ordered by execution timestamp.
|
List<ChangeEntry> |
getEntriesLog()
Returns all the changeEntries
|
default Map<ChangeKey,List<ChangeEntry>> |
getEntriesMap() |
default List<ChangeEntryExecuted> |
getExecuted()
Retrieves a list with current executed entries ordered by execution timestamp.
|
default boolean |
isAlreadyExecuted(String changeSetId,
String author)
Deprecated.
|
void |
saveOrUpdate(ChangeEntry changeEntry)
If there is already an ChangeEntry with the same key(executionId, id and author), it's updated.
|
setIndexCreationinitialize@Deprecated default boolean isAlreadyExecuted(String changeSetId, String author)
default List<ChangeEntryExecuted> getExecuted() throws MongockException
MongockExceptiondefault List<ChangeEntry> getAllEntriesWithCurrentState() throws MongockException
MongockExceptiondefault Map<ChangeKey,List<ChangeEntry>> getEntriesMap()
List<ChangeEntry> getEntriesLog()
void saveOrUpdate(ChangeEntry changeEntry) throws MongockException
changeEntry - Entry to be upsertMongockException - if any i/o exception occursdefault void ensureAllFields()
void ensureField(Field field)
field - Field to be ensured or createdvoid deleteAll()
Copyright © 2025. All rights reserved.