public interface KernelDatabaseSaverI extends KernelDatabaseAccessorI
DBMan
class due to compile dependencies, providing some of the methods in DBManLocalI.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
$0 |
static org.apache.log4j.Logger |
log |
static int |
SAVE_RETRIES |
static int |
SAVE_RETRY_DELAY_MS_MAX |
static int |
SAVE_RETRY_DELAY_MS_MIN |
Modifier and Type | Method and Description |
---|---|
static boolean |
handleSaveResultForRetry(int retry,
SaveResultI saveResult)
To be called in the loop that controls the save retries.
|
SaveResultI |
save(Benutzer user,
java.lang.String desc,
groovy.lang.Closure cl)
Method to save a transaction which is handled by a closure in the parameter.
|
SaveResultI |
save(Benutzer user,
java.lang.String desc,
java.util.function.Consumer<Transaction> fn) |
SaveResultI |
save(Benutzer user,
java.lang.String desc,
java.util.function.Function<Transaction,? extends java.lang.Object> fn) |
SaveResultI |
save(Benutzer user,
java.lang.String desc,
ThrowingFunction<Transaction,? extends java.lang.Object,? extends java.lang.Throwable> fn) |
SaveResultI |
save(groovy.lang.Closure cl)
Wrapper method to call
save(String, Closure) without a description for the transaction. |
SaveResultI |
save(java.util.function.Consumer<Transaction> fn) |
SaveResultI |
save(java.util.function.Function<Transaction,? extends java.lang.Object> fn) |
SaveResultI |
save(java.lang.String desc,
groovy.lang.Closure cl)
Same as
save(Benutzer, String, Closure) , but without a Benutzer. |
SaveResultI |
save(java.lang.String desc,
java.util.function.Consumer<Transaction> fn) |
SaveResultI |
save(java.lang.String desc,
java.util.function.Function<Transaction,? extends java.lang.Object> fn) |
SaveResultI |
save(java.lang.String desc,
ThrowingFunction<Transaction,? extends java.lang.Object,? extends java.lang.Throwable> fn) |
SaveResultI |
save(ThrowingFunction<Transaction,? extends java.lang.Object,? extends java.lang.Throwable> fn) |
getJDBCConnection, getNodeNumber, getSchema, isAuthoritativeSyncServer, loadBO, loadBO, query, query, query, query, query
static final java.lang.String $0
static final org.apache.log4j.Logger log
static final int SAVE_RETRIES
static final int SAVE_RETRY_DELAY_MS_MIN
static final int SAVE_RETRY_DELAY_MS_MAX
static boolean handleSaveResultForRetry(int retry, SaveResultI saveResult)
java.lang.RuntimeException
- if the SaveResultI represents a failure and the contained exception is not a MightSucceedIfRetriedLaterIServerSideException
- if the SaveResultI represents a failure and the contained exception is a MightSucceedIfRetriedLaterI
but all save retries failedSaveResultI save(groovy.lang.Closure cl)
save(String, Closure)
without a description for the transaction.cl
- Closure which manipulates the transactionSaveResult
containing the resulting values of the save-procedure.SaveResultI save(java.lang.String desc, groovy.lang.Closure cl)
save(Benutzer, String, Closure)
, but without a Benutzer.desc
- Description of the transactioncl
- Closure which manipulates the transactionSaveResult
containing the resulting values of the save-procedure.SaveResultI save(Benutzer user, java.lang.String desc, groovy.lang.Closure cl)
user
- Benutzer object on whose behalf the transaction shall be saveddesc
- Description of the transactioncl
- Closure which manipulates the transactionSaveResult
containing the resulting values of the save-procedure.SaveResultI save(java.util.function.Consumer<Transaction> fn)
SaveResultI save(java.lang.String desc, java.util.function.Consumer<Transaction> fn)
SaveResultI save(Benutzer user, java.lang.String desc, java.util.function.Consumer<Transaction> fn)
SaveResultI save(java.util.function.Function<Transaction,? extends java.lang.Object> fn)
SaveResultI save(java.lang.String desc, java.util.function.Function<Transaction,? extends java.lang.Object> fn)
SaveResultI save(Benutzer user, java.lang.String desc, java.util.function.Function<Transaction,? extends java.lang.Object> fn)
SaveResultI save(ThrowingFunction<Transaction,? extends java.lang.Object,? extends java.lang.Throwable> fn)
SaveResultI save(java.lang.String desc, ThrowingFunction<Transaction,? extends java.lang.Object,? extends java.lang.Throwable> fn)
SaveResultI save(Benutzer user, java.lang.String desc, ThrowingFunction<Transaction,? extends java.lang.Object,? extends java.lang.Throwable> fn)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.