public interface IAutoSaveAware
| Modifier and Type | Method and Description |
|---|---|
void |
beginWithoutAutoSave()
Start doing something without auto save.
|
void |
endWithoutAutoSave()
End doing something without auto save.
|
boolean |
isAutoSaveEnabled() |
void |
performWithoutAutoSave(Runnable aRunnable)
This method is used for batch processing of instructions (like the initial
read).
|
<RETURNTYPE> |
performWithoutAutoSave(Supplier<RETURNTYPE> aCallable)
This method is used for batch processing of instructions (like the initial
read).
|
boolean isAutoSaveEnabled()
true if auto save is enabled, false
otherwise.void beginWithoutAutoSave()
void endWithoutAutoSave()
beginWithoutAutoSave() is always correctly ended with a call to
this method.void performWithoutAutoSave(@Nonnull Runnable aRunnable)
aRunnable - The runnable to be executed. May not be null.@Nullable <RETURNTYPE> RETURNTYPE performWithoutAutoSave(@Nonnull Supplier<RETURNTYPE> aCallable)
RETURNTYPE - Return type of the callableaCallable - The runnable to be executed. May not be null.Copyright © 2014–2017 Philip Helger. All rights reserved.