public class DBMan extends java.lang.Object implements DBManI, DBManLocalI, DBManEventProviderI, ExpiringTokenStorageProviderI, FeatureListenerI, LogListenerI, L10nPackProviderI
| Modifier and Type | Class and Description |
|---|---|
static class |
DBMan.DefaultExpiringTokenStore |
static class |
DBMan.SaveResult |
static class |
DBMan.SaveResultException |
BOQueryLoaderI.InternalHelper| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
log |
static java.lang.String |
my_name |
static java.lang.String |
my_version |
rootPaneToLockOnConnectionInterrupt| Constructor and Description |
|---|
DBMan()
Dummy empty constructor, only used for the unit tests :-(
|
DBMan(DBManBootstrapHelper _proconf)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Benutzer |
_login(Anmeldung anmeldung,
boolean testOnly,
boolean resetProcedure,
boolean localConnection) |
void |
_setLocked(boolean _lock) |
void |
addEventListener(DBManEventListenerI l)
Just forwards to subscribeEvents().
|
void |
addEventListener(DBManEventListenerI l,
DBManEventFilter filter) |
void |
addFeatureListener(FeatureListenerI fl) |
void |
addNewIdRange(KeyRange range) |
boolean |
areGratuitousLocalConnectionsAvailable() |
void |
backToTheFuture(Transaction tx)
Adjusts a past transaction to incorporate subsequent Business Procedures (BPs) into its BP list,
effectively "catching up" the transaction to the present state.
|
void |
bumpLastSuccessfulSync() |
void |
bumpLastSuccessfulSync(long ts) |
void |
cancelForcedClientDisconnect(DBManUserContextI utx) |
void |
cancelForcedClientDisconnect(DBManUserContextI utx,
java.util.Map msgClients) |
void |
checkServerBN(BOLoaderI _bol)
Checks if the given _id belongs to exactly one BN.
|
void |
checkServerBN(BOLoaderI _bol,
java.lang.Long _id) |
java.lang.String |
createExpiringToken(java.lang.String serviceName,
byte[] value,
long expiryms)
Works like @see #createExpiringToken(String,String,byte[],long), but creates a non-conflicting tokenName
within the store, stores the value and returns the chosen tokenName.
|
void |
createExpiringToken(java.lang.String serviceName,
java.lang.String tokenName,
byte[] value,
long expiryms)
Creates a time limited association of the given service and token name to a byte array value (usually a key).
|
void |
demandForcedClientDisconnect(DBManUserContextI utx) |
void |
demandForcedClientDisconnect(DBManUserContextI utx,
int cSecsDelay) |
void |
demandForcedClientDisconnect(DBManUserContextI utx,
int cSecsDelay,
java.lang.String msg) |
void |
demandForcedClientDisconnect(DBManUserContextI utx,
int cSecsDelay,
java.lang.String msg,
java.util.Map msgClients) |
byte[] |
destroyExpiringToken(java.lang.String serviceName,
java.lang.String tokenName)
Destroys a time limited token immediately
|
void |
drain()
If this BOLoader has a cache, we request it to empty it.
|
void |
execute(BatchedBackendRequestI[] srs) |
boolean |
exists(java.lang.Long id)
wrapper for exists(id, null).
|
boolean |
exists(java.lang.Long id,
java.lang.Class<? extends BOI> classtip)
Returns true if a BO with the given id exists.
|
void |
featureBecameAvailable(java.lang.String _feature)
Called when _feature has become available.
|
void |
featureNoLongerAvailable(java.lang.String _feature)
Called when _feature has become no longer available.
|
void |
fireDBManEvent(DBManEvent evt) |
void |
fireDebugEvent(java.lang.String context,
java.lang.String text) |
void |
fireInfoEvent(java.lang.String context,
java.lang.String text) |
void |
fireLogEvent(int severity,
java.lang.String context,
java.lang.String text) |
void |
fireWarnEvent(java.lang.String context,
java.lang.String text) |
BO |
frapFromCache(BO bo)
Put a BO instance to further use in this BOLoader, cloning it in case it's unknown,
giving back a cached instance in case it's cached,
in any way returning an instance without making further reloads (which would make
the effort of caching it useless).
|
AlarmModule |
getAlarmModule() |
long |
getAvailableIds() |
byte[] |
getBLOB(Benutzer user,
java.lang.Long id) |
long |
getBLOB(Benutzer user,
java.lang.Long id,
java.io.DataOutput os) |
long |
getBLOB(Benutzer user,
java.lang.Long id,
java.io.DataOutput os,
boolean closeOS) |
long |
getBLOB(Benutzer user,
java.lang.Long id,
java.io.DataOutput os,
boolean closeOS,
java.lang.Long backuppingBPId) |
byte[] |
getBLOB(Benutzer user,
java.lang.Long id,
java.lang.Long backuppingBPId) |
long |
getBLOB(Benutzer user,
java.lang.Long id,
java.io.OutputStream os) |
long |
getBLOB(Benutzer user,
java.lang.Long id,
java.io.OutputStream os,
boolean closeOS) |
long |
getBLOB(Benutzer user,
java.lang.Long id,
java.io.OutputStream os,
boolean closeOS,
java.lang.Long backuppingBPId) |
byte[] |
getBLOB(java.lang.Long id)
get the BLOB belonging to BO[id].
|
long |
getBLOB(java.lang.Long id,
java.io.DataOutput os)
Writes the BLOB belonging to BO[id] to the passed DataOutput.
|
long |
getBLOB(java.lang.Long id,
java.io.DataOutput os,
boolean closeOS)
Writes the BLOB belonging to BO[id] to the passed DataOutput.
|
long |
getBLOB(java.lang.Long id,
java.io.DataOutput os,
boolean closeOS,
java.lang.Long backuppingBPId)
Writes the BLOB belonging to BO[id] to the passed DataOutput.
|
byte[] |
getBLOB(java.lang.Long id,
java.lang.Long backuppingBPId)
get the BLOB belonging to BO[id].
|
long |
getBLOB(java.lang.Long id,
java.io.OutputStream os)
Writes the BLOB belonging to BO[id] to the passed OutputStream.
|
long |
getBLOB(java.lang.Long id,
java.io.OutputStream os,
boolean closeOS)
Writes the BLOB belonging to BO[id] to the passed OutputStream.
|
long |
getBLOB(java.lang.Long id,
java.io.OutputStream os,
boolean closeOS,
java.lang.Long backuppingBPId)
Writes the BLOB belonging to BO[id] to the passed OutputStream.
|
InputStreamWrapper |
getBLOBAsStream(Benutzer user,
java.lang.Long id) |
InputStreamWrapper |
getBLOBAsStream(Benutzer user,
java.lang.Long id,
java.lang.Long backuppingBPId) |
InputStreamWrapper |
getBLOBAsStream(java.lang.Long id) |
InputStreamWrapper |
getBLOBAsStream(java.lang.Long id,
java.lang.Long backuppingBPId) |
InitialBLOBTransferMetaDataContainer |
getBLOBBOIdsForIntitialBLOBCopy(java.util.Map idsAndVFilesOnSyncNode,
java.util.List pendingBLOBChangeBOIdsOnSyncNode,
java.util.List pendingBLOBChangeBOIdsOnAuthNode) |
VFile |
getBLOBInfo(Benutzer user,
java.lang.Long id) |
VFile |
getBLOBInfo(Benutzer user,
java.lang.Long id,
java.lang.Long backuppingBPId) |
VFile |
getBLOBInfo(java.lang.Long id)
gathers information about the BLOB belonging to BO[i].
|
VFile |
getBLOBInfo(java.lang.Long id,
java.lang.Long backuppingBPId)
gathers information about the BLOB belonging to BO[i].
|
BO |
getBO(java.lang.Long id)
wrapper for getBO(id, null).
|
BO |
getBO(java.lang.Long id,
java.lang.Class<? extends BOI> classtip)
Returns the BO with the given id.
|
java.lang.String |
getBootJdbcDriver() |
java.lang.String |
getBootJdbcPass() |
java.lang.String |
getBootJdbcUrl() |
java.lang.String |
getBootJdbcUser() |
BO[] |
getBOs(long[] ids)
wrapper for getBOs(ids, null)
|
BO[] |
getBOs(java.lang.Long[] ids)
wrapper for getBOs(ids, null)
|
BO[] |
getBOs(long[] ids,
java.lang.Class<? extends BOI> classtip)
returns the BOs with the given ids.
|
BO[] |
getBOs(java.lang.Long[] ids,
java.lang.Class<? extends BOI> classtip)
returns the BOs with the given ids.
|
BOT |
getBOT(java.lang.Class<? extends BOI> clazz) |
BO |
getBOUncached(java.lang.Long id) |
BO |
getBOUncached(java.lang.Long id,
java.lang.Class<? extends BOI> classtip)
Loads and returns the BO with this Id with a non caching BOLoader.
|
CryptoHandlerI |
getClientCryptoHandler() |
java.util.Set<java.lang.String> |
getClientsCountingAgainstLimit()
Returns a set of string identifiers with the "origins keys" of the existing sessions that actually count
against a possible
maxClients limit. |
int |
getClientsOfAdministratorUsersCount()
Counts and returns the number of sessions of admin users.
|
DBManConfigurationHelper |
getConfiguration() |
CryptoHandlerI |
getCryptoHandler()
get a reference to the CryptoHandler used.
|
long |
getCurrentSyncLag() |
java.lang.String |
getDatabaseName() |
java.lang.String |
getDateKernelBuild() |
java.lang.String |
getDbType() |
DBManEventProviderI |
getEventProvider()
Returns the DBManEventProviderI of this BOLoader, if any.
|
FeatureManagerI |
getFeatureManager() |
FileVaultI |
getFileVault() |
CompassFTSModule |
getFtsModule() |
FulltextSearcherI |
getFulltextSearcher() |
KeyRange |
getIdRange(long size) |
java.lang.String |
getInstanceName() |
static DBManLocalI[] |
getInstances() |
java.lang.String |
getJdbcDriver()
Custom class for an exception which sould be signalled in the closure of a save-procedure of cauldron.
|
java.lang.String |
getJdbcPass() |
java.lang.String |
getJdbcUrl() |
java.lang.String |
getJdbcUrlFromConf() |
java.lang.String |
getJdbcUser() |
L10nPack |
getL10nPack(java.lang.String bundleName,
java.lang.String locale)
Retrieves a specific
L10nPack by its bundle name and locale. |
L10nPack[] |
getL10nPacks(java.lang.String[] bundleNames,
java.lang.String locale)
Retrieves an array of
L10nPack objects for multiple specified bundle names and a single locale. |
L10nPathEntry[] |
getL10nPath()
Retrieves the localization path entries provided by this pack provider.
|
BackendL10nProviderI |
getL10nProvider() |
java.lang.String |
getL10nViaString()
Provides a descriptive string indicating the means by which localization (L10n) data was delivered.
|
DBManUserContextI |
getNewUserContext()
Fabrik-Routine fuer Sicherheits-Manager.
|
java.lang.Long |
getNextId()
get a unique Long id from the backend.
|
java.lang.String |
getNodeLocalStatusValue(java.lang.String _key)
Returns the value set for the given key or null if no matching entry does exist from the table for "status values"
(see
StatusValueManager for a bit more info). |
java.lang.Long |
getNodeNumber() |
NotificationModule |
getNotificationModule() |
BOLoaderI |
getParentLoader()
returns the BOLoader which this BOLoader uses to load its objects.
|
PersistenceHandlerI |
getPersistenceHandler() |
PersistenceHandlerI |
getPersistenceHandlerForSaving() |
DBManBootstrapHelper |
getProjectConfiguration() |
java.lang.String |
getProjectId() |
java.util.ArrayList |
getProtocolDrivers() |
BO[] |
getRelationBOs(java.lang.Long id,
java.lang.Class<? extends BOI> classtip,
java.lang.String attName)
this method is used by the lazy loading map/list implementation to load related
objects when needed.
|
BO[] |
getRelationBOs(java.lang.Long id,
java.lang.Class<? extends BOI> classtip,
java.lang.String attName,
BOLoaderI injectedBOLoader) |
BOLoaderI |
getRootLoader()
Returns the root BOLoader of this BOLoader or this if there is no more parent loader.
|
SchemaI |
getSchema()
gets a reference to the schema which is used by this BOLoader.
|
ServerConnectionInfo |
getServerConnectionInfo() |
ServerCryptoHandlerI |
getServerCryptoHandler() |
ServerFileVaultI |
getServerFileVault() |
ServerLocalTransactionI |
getServerLocalTransaction()
Convenience method for getting a new
ServerLocalTransactionI instance
which is prepared for saving on server-side. |
ServerLocalTransactionI |
getServerLocalTransaction(Benutzer user,
BackendSessionI session)
Convenience method for getting a new
ServerLocalTransactionI instance
for the passed Benutzer and BackendSessionI which is prepared for saving on
server-side. |
ServerLocalTransactionI |
getServerLocalTransaction(Benutzer user,
BackendSessionI session,
java.lang.String desc)
Convenience method for getting a new
ServerLocalTransactionI instance
for the passed Benutzer and BackendSessionI which is prepared for saving on
server-side. |
ServerLocalTransactionI |
getServerLocalTransaction(Benutzer user,
BackendSessionI session,
java.lang.String desc,
int lockTimeout)
Convenience method for getting a new
ServerLocalTransactionI instance
for the passed Benutzer and BackendSessionI which is prepared for saving on
server-side. |
ServerLocalTransactionI |
getServerLocalTransaction(Benutzer user,
BackendSessionI session,
java.lang.String desc,
int lockTimeout,
TemporaryIdSupplierI temporaryIdSupplier)
Convenience method for getting a new
ServerLocalTransactionI instance
for the passed Benutzer and BackendSessionI which is prepared for saving on
server-side. |
ServerLocalTransactionI |
getServerLocalTransaction(Benutzer user,
BackendSessionI session,
java.lang.String desc,
int lockTimeout,
TemporaryIdSupplierI temporaryIdSupplier,
boolean withInstrumentedSchema)
Convenience method for getting a new
ServerLocalTransactionI instance
for the passed Benutzer and BackendSessionI which is prepared for saving on
server-side. |
ServerLocalTransactionI |
getServerLocalTransaction(Benutzer user,
BackendSessionI session,
java.lang.String desc,
int lockTimeout,
TemporaryIdSupplierI temporaryIdSupplier,
boolean withInstrumentedSchema,
boolean intendedForSaving)
Convenience method for getting a new
ServerLocalTransactionI instance
for the passed Benutzer and BackendSessionI which is prepared for saving on
server-side. |
ServerLocalTransactionI |
getServerLocalTransaction(java.lang.String desc)
Convenience method for getting a new
ServerLocalTransactionI instance
which is prepared for saving on server-side. |
ServerLocalTransactionI |
getServerLocalTransaction(java.lang.String desc,
int lockTimeout)
Convenience method for getting a new
ServerLocalTransactionI instance
which is prepared for saving on server-side. |
ServerLocalTransactionI |
getServerLocalTransaction(java.lang.String desc,
int lockTimeout,
TemporaryIdSupplierI temporaryIdSupplier)
Convenience method for getting a new
ServerLocalTransactionI instance
which is prepared for saving on server-side. |
ServerLocalTransactionI |
getServerLocalTransaction(java.lang.String desc,
int lockTimeout,
TemporaryIdSupplierI temporaryIdSupplier,
boolean withInstrumentedSchema)
Convenience method for getting a new
ServerLocalTransactionI instance
which is prepared for saving on server-side. |
ServerLocalTransactionI |
getServerLocalTransaction(java.lang.String desc,
int lockTimeout,
TemporaryIdSupplierI temporaryIdSupplier,
boolean withInstrumentedSchema,
boolean intendedForSaving)
Convenience method for getting a new
ServerLocalTransactionI instance
which is prepared for saving on server-side. |
BackendSessionI[] |
getSessions() |
java.util.Date |
getShutdownDate() |
DefaultServiceManager |
getSrvman() |
void |
handleLoggingEvent(org.apache.log4j.spi.LoggingEvent _event) |
boolean |
hasBLOB(Benutzer user,
java.lang.Long id) |
boolean |
hasBLOB(Benutzer user,
java.lang.Long id,
java.lang.Long backuppingBPId) |
boolean |
hasBLOB(java.lang.Long id) |
boolean |
hasBLOB(java.lang.Long id,
java.lang.Long backuppingBPId) |
java.util.BitSet |
haveBLOB(Benutzer user,
long[] ids) |
java.util.BitSet |
haveBLOB(long[] ids) |
void |
initialize(DBManConfigurationHelper _conf,
java.lang.String _section)
Actual startup, initialization and configuration of this instance and all
the associated drivers, modules and other parts that make up the "MyTISM
server".
|
void |
initializeLogger()
Initializes logger.
|
void |
initiateShutdown(DBManUserContextI _utx) |
void |
initiateShutdown(DBManUserContextI _utx,
int _cSecsDelay) |
void |
initiateShutdown(DBManUserContextI _utx,
int _cSecsDelay,
java.lang.String _msg) |
void |
initPurger()
Initializes the task responsible for purging business objects that have surpassed their earliest deletion date.
|
boolean |
isAuthoritativeSyncServer() |
boolean |
isAvailable(java.lang.String feature) |
boolean |
isAvailableWithNoise(java.lang.String feature) |
boolean |
isCaching()
If true, then this BOLoaderI uses an internal cache, holding all BOs hat were loaded or frapped into it.
|
boolean |
isLocked()
Tells if the server is in the "locked" state.
|
java.lang.Boolean |
isLoggedIn(Benutzer _ben)
Tells if the given Benutzer is currently logged in.
|
boolean |
isLoggedInNN(Benutzer _ben)
Tells if the given Benutzer is currently logged in.
|
boolean |
isNotificationSystemActivated()
Returns true if the notification system is available and activated, false
otherwise.
|
boolean |
isOperational()
Checks if this L10n pack provider is currently operational and ready to serve requests.
|
boolean |
isRecording()
Returns true if this BOLoaderI records changes.
|
boolean |
isServerstartLicenseExpired() |
boolean |
isShutdownInitiated() |
BO |
loadBO(Benutzer user,
java.lang.Long id) |
BO |
loadBO(Benutzer user,
java.lang.Long id,
java.lang.Class<? extends BOI> classtip) |
BO |
loadBO(Benutzer user,
java.lang.Long id,
java.lang.Class<? extends BOI> classtip,
BOLoaderI injectedBOLoader) |
BO |
loadBO(java.lang.Long id) |
BO |
loadBO(java.lang.Long id,
java.lang.Class<? extends BOI> classtip) |
BO |
loadBO(java.lang.Long id,
java.lang.Class<? extends BOI> classtip,
BOLoaderI injectedBOLoader) |
BO[] |
loadBOs(Benutzer user,
java.lang.Long[] ids) |
BO[] |
loadBOs(Benutzer user,
java.lang.Long[] ids,
java.lang.Class<? extends BOI> classtip) |
BO[] |
loadBOs(Benutzer user,
java.lang.Long[] ids,
java.lang.Class<? extends BOI> classtip,
BOLoaderI injectedBOLoader) |
BO[] |
loadBOs(long[] ids) |
BO[] |
loadBOs(java.lang.Long[] ids) |
BO[] |
loadBOs(long[] ids,
java.lang.Class<? extends BOI> classtip) |
BO[] |
loadBOs(java.lang.Long[] ids,
java.lang.Class<? extends BOI> classtip) |
BO[] |
loadBOs(long[] ids,
java.lang.Class<? extends BOI> classtip,
BOLoaderI injectedBOLoader) |
BO[] |
loadBOs(java.lang.Long[] ids,
java.lang.Class<? extends BOI> classtip,
BOLoaderI injectedBOLoader) |
Benutzer |
login(Anmeldung anmeldung,
boolean localConnection)
Checks if Benutzer with given anmeldung.getName() exists, checks if
anmeldung.getPasswort() is correct, checks if server is not locked (or
Benutzer is allowed to log in to locked server) and returns Benutzer.
|
static void |
main(java.lang.String[] args) |
boolean |
ping() |
BatchedBackendRequestI |
prepareQuery(java.lang.String s) |
BatchedBackendRequestI |
prepareQuery(java.lang.String s,
java.lang.Object[] o) |
de.ipcon.db.core.QueryResultsI |
query(Benutzer user,
java.lang.String query) |
de.ipcon.db.core.QueryResultsI |
query(Benutzer user,
java.lang.String query,
java.lang.Object[] params) |
de.ipcon.db.core.QueryResultsI |
query(Benutzer user,
java.lang.String query,
java.lang.Object[] params,
BOLoaderI injectedBOLoader) |
de.ipcon.db.core.QueryResultsI |
query(BOQuery boQuery)
query objects in an iterative way to hide backend processing time.
|
de.ipcon.db.core.QueryResultsI |
query(java.lang.String query)
wrapper for query(t, Object[0])
|
de.ipcon.db.core.QueryResultsI |
query(java.lang.String query,
java.lang.Object[] params)
query objects in an iterative way to hide backend processing time.
|
de.ipcon.db.core.QueryResultsI |
query(java.lang.String query,
java.lang.Object[] params,
BOLoaderI injectedBOLoader) |
java.util.List |
queryBO(Benutzer user,
java.lang.String query) |
java.util.List |
queryBO(Benutzer user,
java.lang.String query,
java.lang.Object[] params) |
java.util.List |
queryBO(BOQuery boQuery)
query objects and block until all objects are transferred, returns Objects as a List.
|
java.util.List |
queryBO(java.lang.String query)
wrapper for queryBO(String, Object[0])
|
java.util.List |
queryBO(java.lang.String query,
java.lang.Object[] params)
query objects and block until all objects are transferred, returns Objects as a List.
|
de.ipcon.db.core.QueryResultsI |
queryRelation(Benutzer user,
long id,
java.lang.Class<? extends BOI> classtip,
java.lang.String attributeName) |
de.ipcon.db.core.QueryResultsI |
queryRelation(Benutzer user,
long id,
java.lang.Class<? extends BOI> classtip,
java.lang.String attributeName,
BOLoaderI injectedBOLoader) |
de.ipcon.db.core.QueryResultsI |
queryRelation(long id,
java.lang.Class<? extends BOI> classtip,
java.lang.String attributeName)
does the same as @see #getRelationBOs, but returns a QueryResultsI like @see #query.
|
de.ipcon.db.core.QueryResultsI |
queryRelation(long id,
java.lang.Class<? extends BOI> classtip,
java.lang.String attributeName,
BOLoaderI injectedBOLoader) |
void |
removeEventListener(DBManEventListenerI l)
Just forwards to unsubscribeEvents().
|
void |
removeFeatureListener(FeatureListenerI fl) |
void |
rescheduleHealthEventFirer() |
void |
rescheduleHealthEventFirer(int interval) |
void |
resetPassword(java.lang.String username)
Sends a mail to the user with a new password - the old one will remain valid until the new one is used
|
void |
restartDBMan() |
byte[] |
retrieveExpiringToken(java.lang.String serviceName,
java.lang.String tokenName)
Retrieves a time limited token
|
void |
retryFailedNotifications(java.lang.Long mbaId)
Triggers retry of failed notifications for the
MyTISMBenachrichtigungsAuftrag with the given Id. |
SaveResultI |
save(Benutzer user,
BackendSessionI session,
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,
BackendSessionI session,
java.lang.String desc,
java.util.function.Consumer<Transaction> fn) |
SaveResultI |
save(Benutzer user,
BackendSessionI session,
java.lang.String desc,
java.util.function.Function<Transaction,? extends java.lang.Object> fn) |
SaveResultI |
save(Benutzer user,
BackendSessionI session,
java.lang.String desc,
ThrowingFunction<Transaction,? extends java.lang.Object,? extends java.lang.Throwable> fn) |
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
DBManLocalI.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) |
TransactionAnswer |
saveBO(Benutzer user,
Transaction tx)
Persists the changes recorded in the passed Transaction tx to the database.
|
TransactionAnswer |
saveBO(Benutzer user,
Transaction tx,
PersistenceHandlerI _ph)
Persists the changes recorded in the passed Transaction tx to the database.
|
TransactionAnswer |
saveBO(Benutzer user,
Transaction tx,
PersistenceHandlerI _ph,
DBManVetoHandlerI vetoHandler)
Persists the changes recorded in the passed Transaction tx to the database.
|
TransactionAnswer |
saveBO(Benutzer user,
Transaction tx,
PersistenceHandlerI _ph,
DBManVetoHandlerI vetoHandler,
int lockTimeout)
Persists the changes recorded in the passed Transaction tx to the database.
|
TransactionAnswer |
saveBO(Benutzer user,
Transaction tx,
PersistenceHandlerI _ph,
DBManVetoHandlerI vetoHandler,
int lockTimeout,
int retries)
Persists the changes recorded in the passed Transaction tx to the database.
|
TransactionAnswer |
saveBO(Benutzer user,
Transaction tx,
PersistenceHandlerI _ph,
DBManVetoHandlerI vetoHandler,
int lockTimeout,
int retries,
SerializedTransaction stxFromBackendRequestSave)
Persists the changes recorded in the passed Transaction tx to the database.
|
TransactionAnswer |
saveBO(Benutzer user,
Transaction tx,
PersistenceHandlerI _ph,
DBManVetoHandlerI vetoHandler,
int lockTimeout,
int retries,
SerializedTransaction stxFromBackendRequestSave,
SecureObjectOutputI out)
Persists the changes recorded in the passed Transaction tx to the database.
|
TransactionAnswer |
saveBO(Benutzer user,
Transaction tx,
PersistenceHandlerI _ph,
DBManVetoHandlerI vetoHandler,
int lockTimeout,
int retries,
SerializedTransaction stxFromBackendRequestSave,
SecureObjectOutputI out,
boolean suppressLogs) |
TransactionAnswer |
saveBO(Transaction tx)
Speichert mehrere BO's wieder zurueck in die Datenbank.
|
TransactionAnswer |
saveBO(Transaction tx,
PersistenceHandlerI _ph) |
TransactionAnswer |
saveBO(Transaction tx,
PersistenceHandlerI _ph,
int lockTimeout) |
TransactionAnswer |
saveServerLocalTransaction(Benutzer user,
Transaction tx,
PersistenceHandlerI ph,
int lockTimeout,
boolean suppressLogs)
Persists the changes recorded in the passed Transaction tx, that is part of a
ServerLocalTransactionI to the database. |
void |
sendSystemMessage(DBManUserContextI _utx,
java.lang.String _msg) |
void |
sendSystemMessage(DBManUserContextI _utx,
java.lang.String _msg,
java.util.Map _msgClients) |
void |
sendUsernameHint(Benutzer user)
Sends a mail to the user with his username
|
void |
sessionAdded(BackendSessionI _securityContext) |
void |
sessionRemoved(BackendSessionI _securityContext) |
void |
setAlarmModule(AlarmModule $141) |
void |
setBootJdbcDriver(java.lang.String $134) |
void |
setBootJdbcPass(java.lang.String $137) |
void |
setBootJdbcUrl(java.lang.String $135) |
void |
setBootJdbcUser(java.lang.String $136) |
void |
setDbType(java.lang.String $138) |
void |
setFeatureManager(FeatureManagerI _fm) |
void |
setFtsModule(CompassFTSModule $143) |
void |
setJdbcDriver(java.lang.String $129) |
void |
setJdbcPass(java.lang.String $133) |
void |
setJdbcUrl(java.lang.String $131) |
void |
setJdbcUrlFromConf(java.lang.String $130) |
void |
setJdbcUser(java.lang.String $132) |
void |
setLocked(boolean _lock,
DBManUserContextI _utx)
Sets the "locked/unlocked" state of the server.
|
void |
setNodeLocalStatusValue(java.lang.String _key,
java.lang.String _value)
Sets (inserts or updates) the given value for the given key in the table for "status values" (see
StatusValueManager for a bit more info). |
void |
setNotificationModule(NotificationModule $142) |
void |
setProtocolDrivers(java.util.ArrayList $140) |
void |
setSrvman(DefaultServiceManager $139) |
void |
shutdownPurger()
Shuts down the purger task, stopping its data purging operations.
|
void |
stopHealthEventFirer() |
void |
stopShutdown(DBManUserContextI _utx) |
void |
subscribeEvents(DBManEventListenerI listener) |
void |
subscribeEvents(DBManEventListenerI listener,
DBManEventFilter filter)
Subscribe a listener to events matching the filter
|
java.lang.Long |
testAuth(Anmeldung anmeldung)
Tests if the infos in the passed Anmeldung are valid for authenticating / logging in.
|
boolean |
testAuth(de.ipcon.db.core.PasswortUeberpruefung pwc)
Tests if the credentials in the passed PasswortUeberpruefung do exist and are valid.
|
void |
triggerInitialDataCheck() |
void |
triggerIntegrityCheck() |
void |
triggerMetaDataCheck() |
void |
unsubscribeEvents(DBManEventListenerI listener)
Unsubscribe the given listener from event notification
|
void |
unsubscribeEvents(DBManEventListenerI listener,
DBManEventFilter filter) |
void |
updateHealthUpdateInterval(int interval) |
void |
updateStructureReadAccessStatistics(java.util.Map<java.lang.Long,java.lang.Integer> statistics,
Benutzer user)
Updates the read access statistics for Struktur-s.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindDBManOrFail, getNodefind, isServerSidefrapBOArrayFromCache, frapBOIArrayFromCache, frapBOsFromCache, frapFromCache, isAncestorOf, isRootLoader, isServerSide, isTesting, prepareQueryhaveBLOB, haveBLOBgetBOByAttr, getBOByAttr, getBOByAttr, getBOByAttrs, getBOByAttrs, getBOByAttrs, getBOsByAttrs, getBOsByAttrs, getBOsByAttrs, getBOsByAttrs, getOneBOByAttr, getUniqueBOByAttrprefetchL10nPackspublic static final java.lang.String my_name
public static final java.lang.String my_version
public static final org.apache.log4j.Logger log
public DBMan()
public DBMan(DBManBootstrapHelper _proconf)
public static void main(java.lang.String[] args)
public void setFeatureManager(FeatureManagerI _fm)
public void updateHealthUpdateInterval(int interval)
public void rescheduleHealthEventFirer()
public void rescheduleHealthEventFirer(int interval)
public void stopHealthEventFirer()
public void initializeLogger()
public void initialize(DBManConfigurationHelper _conf, java.lang.String _section)
_conf - helper class instance for access to the configuration file
(currently called "mytism.ini")_section - the name/key of the DBMan configuration section
in the init file (currently "DBMan")public java.lang.String getDatabaseName()
public void initPurger()
This method sets up and configures the purging task, which is typically used for GDPR compliance. The task identifies and removes business objects that are no longer needed according to their retention policies.
GDPRRetentionPurgeServicepublic void checkServerBN(BOLoaderI _bol)
checkServerBN in interface DBManLocalISyncServiceTools.InvalidSyncAccountConfigurationException - when no matching BN was found.DataIntegrityException - if more than one matching BN was found.public void checkServerBN(BOLoaderI _bol, java.lang.Long _id)
public boolean isNotificationSystemActivated()
isNotificationSystemActivated in interface DBManLocalIpublic void retryFailedNotifications(java.lang.Long mbaId)
DBManLocalIMyTISMBenachrichtigungsAuftrag with the given Id.retryFailedNotifications in interface DBManLocalIpublic FulltextSearcherI getFulltextSearcher()
getFulltextSearcher in interface DBManLocalIpublic java.lang.Long getNextId()
BOLoaderIpublic KeyRange getIdRange(long size)
getIdRange in interface DBManIgetIdRange in interface DBManLocalIpublic long getAvailableIds()
getAvailableIds in interface DBManLocalIpublic void addNewIdRange(KeyRange range)
addNewIdRange in interface DBManLocalIpublic BO loadBO(Benutzer user, java.lang.Long id)
loadBO in interface DBManLocalIpublic BO loadBO(Benutzer user, java.lang.Long id, java.lang.Class<? extends BOI> classtip)
loadBO in interface DBManLocalIpublic BO loadBO(Benutzer user, java.lang.Long id, java.lang.Class<? extends BOI> classtip, BOLoaderI injectedBOLoader)
loadBO in interface DBManLocalIpublic BO getBO(java.lang.Long id)
BOLoaderIgetBO in interface BOLoaderIBOLoaderI.getBO(Long, Class)public BO getBO(java.lang.Long id, java.lang.Class<? extends BOI> classtip)
BOLoaderIpublic BO getBOUncached(java.lang.Long id)
getBOUncached in interface BOLoaderIpublic BO getBOUncached(java.lang.Long id, java.lang.Class<? extends BOI> classtip)
BOLoaderIBOLoaderI.isCaching() BOLoaderI instances.getBOUncached in interface BOLoaderIpublic boolean exists(java.lang.Long id)
BOLoaderIexists in interface BOLoaderIBOLoaderI.exists(Long, Class)public boolean exists(java.lang.Long id,
java.lang.Class<? extends BOI> classtip)
BOLoaderIpublic BO loadBO(java.lang.Long id, java.lang.Class<? extends BOI> classtip, BOLoaderI injectedBOLoader)
public BO[] loadBOs(Benutzer user, java.lang.Long[] ids)
loadBOs in interface DBManLocalIpublic BO[] loadBOs(Benutzer user, java.lang.Long[] ids, java.lang.Class<? extends BOI> classtip)
loadBOs in interface DBManLocalIpublic BO[] loadBOs(Benutzer user, java.lang.Long[] ids, java.lang.Class<? extends BOI> classtip, BOLoaderI injectedBOLoader)
loadBOs in interface DBManLocalIpublic BO[] getBOs(java.lang.Long[] ids)
BOLoaderIgetBOs in interface BOLoaderIBOLoaderI.getBOs(Long[],Class)public BO[] getBOs(java.lang.Long[] ids, java.lang.Class<? extends BOI> classtip)
BOLoaderIgetBOs in interface BOLoaderIids - array of Longs with ids for the requested BOs.classtip - guess for classes which the BOs belong to, may be null.Transactionpublic BO[] getBOs(long[] ids)
BOLoaderIgetBOs in interface BOLoaderIBOLoaderI.getBOs(long[],Class)public BO[] getBOs(long[] ids, java.lang.Class<? extends BOI> classtip)
BOLoaderIgetBOs in interface BOLoaderIids - array of longs with ids for the requested BOs.classtip - guess for classes which the BOs belong to, may be null.Transactionpublic BO[] loadBOs(java.lang.Long[] ids, java.lang.Class<? extends BOI> classtip, BOLoaderI injectedBOLoader)
public BO[] loadBOs(long[] ids)
public BO[] loadBOs(long[] ids, java.lang.Class<? extends BOI> classtip, BOLoaderI injectedBOLoader)
public BO[] getRelationBOs(java.lang.Long id, java.lang.Class<? extends BOI> classtip, java.lang.String attName)
BOLoaderIgetRelationBOs in interface BOLoaderIid - id of the BO which the requested BOs has a relation toclasstip - common superclass of the requested bosattName - name of the relation from the BO to the requested onespublic BO[] getRelationBOs(java.lang.Long id, java.lang.Class<? extends BOI> classtip, java.lang.String attName, BOLoaderI injectedBOLoader)
public BackendL10nProviderI getL10nProvider()
getL10nProvider in interface DBManLocalIpublic byte[] getBLOB(Benutzer user, java.lang.Long id)
getBLOB in interface DBManLocalIpublic byte[] getBLOB(Benutzer user, java.lang.Long id, java.lang.Long backuppingBPId)
getBLOB in interface DBManLocalIpublic InputStreamWrapper getBLOBAsStream(Benutzer user, java.lang.Long id)
getBLOBAsStream in interface DBManLocalIpublic InputStreamWrapper getBLOBAsStream(Benutzer user, java.lang.Long id, java.lang.Long backuppingBPId)
getBLOBAsStream in interface DBManLocalIpublic long getBLOB(Benutzer user, java.lang.Long id, java.io.OutputStream os)
getBLOB in interface DBManLocalIpublic long getBLOB(Benutzer user, java.lang.Long id, java.io.OutputStream os, boolean closeOS)
getBLOB in interface DBManLocalIpublic long getBLOB(Benutzer user, java.lang.Long id, java.io.OutputStream os, boolean closeOS, java.lang.Long backuppingBPId)
getBLOB in interface DBManLocalIpublic long getBLOB(Benutzer user, java.lang.Long id, java.io.DataOutput os)
getBLOB in interface DBManLocalIpublic long getBLOB(Benutzer user, java.lang.Long id, java.io.DataOutput os, boolean closeOS)
getBLOB in interface DBManLocalIpublic long getBLOB(Benutzer user, java.lang.Long id, java.io.DataOutput os, boolean closeOS, java.lang.Long backuppingBPId)
getBLOB in interface DBManLocalIpublic VFile getBLOBInfo(Benutzer user, java.lang.Long id)
getBLOBInfo in interface DBManLocalIpublic VFile getBLOBInfo(Benutzer user, java.lang.Long id, java.lang.Long backuppingBPId)
getBLOBInfo in interface DBManLocalIpublic boolean hasBLOB(Benutzer user, java.lang.Long id)
hasBLOB in interface DBManLocalIpublic boolean hasBLOB(Benutzer user, java.lang.Long id, java.lang.Long backuppingBPId)
hasBLOB in interface DBManLocalIpublic java.util.BitSet haveBLOB(Benutzer user, long[] ids)
haveBLOB in interface DBManLocalIpublic InitialBLOBTransferMetaDataContainer getBLOBBOIdsForIntitialBLOBCopy(java.util.Map idsAndVFilesOnSyncNode, java.util.List pendingBLOBChangeBOIdsOnSyncNode, java.util.List pendingBLOBChangeBOIdsOnAuthNode) throws java.io.IOException
getBLOBBOIdsForIntitialBLOBCopy in interface DBManLocalIjava.io.IOExceptionpublic byte[] getBLOB(java.lang.Long id)
BLOBLoaderIgetBLOB in interface BLOBLoaderIgetBLOB in interface DBManIid - the id of the BO the BLOB belongs to.public byte[] getBLOB(java.lang.Long id,
java.lang.Long backuppingBPId)
BLOBLoaderIgetBLOB in interface BLOBLoaderIid - the id of the BO the BLOB belongs to.backuppingBPId - instead of the current BLOB get and stream
the backup-BLOB that was stored because of this BP-Id from the backup-dirpublic InputStreamWrapper getBLOBAsStream(java.lang.Long id)
getBLOBAsStream in interface DBManIpublic InputStreamWrapper getBLOBAsStream(java.lang.Long id, java.lang.Long backuppingBPId)
public long getBLOB(java.lang.Long id,
java.io.OutputStream os)
BLOBLoaderIgetBLOB in interface BLOBLoaderIgetBLOB in interface DBManIid - the id of the BO the BLOB belongs toos - the OutputStream to write the BLOB-bytes topublic long getBLOB(java.lang.Long id,
java.io.OutputStream os,
boolean closeOS)
BLOBLoaderIgetBLOB in interface BLOBLoaderIgetBLOB in interface DBManIid - the id of the BO the BLOB belongs toos - the OutputStream to write the BLOB-bytes tocloseOS - a boolean designating if the OutputStream shall be closed afterwards or not.public long getBLOB(java.lang.Long id,
java.io.OutputStream os,
boolean closeOS,
java.lang.Long backuppingBPId)
BLOBLoaderIgetBLOB in interface BLOBLoaderIid - the id of the BO the BLOB belongs toos - the OutputStream to write the BLOB-bytes tocloseOS - a boolean designating if the OutputStream shall be closed afterwards or not.backuppingBPId - instead of the current BLOB get and stream
the backup-BLOB that was stored because of this BP-Id from the backup-dirpublic long getBLOB(java.lang.Long id,
java.io.DataOutput os)
BLOBLoaderIgetBLOB in interface BLOBLoaderIgetBLOB in interface DBManIid - the id of the BO the BLOB belongs toos - the DataOutput to write the BLOB-bytes topublic long getBLOB(java.lang.Long id,
java.io.DataOutput os,
boolean closeOS)
BLOBLoaderIgetBLOB in interface BLOBLoaderIgetBLOB in interface DBManIid - the id of the BO the BLOB belongs toos - the DataOutput to write the BLOB-bytes tocloseOS - a boolean designating if the DataOutput shall be closed afterwards or not.public long getBLOB(java.lang.Long id,
java.io.DataOutput os,
boolean closeOS,
java.lang.Long backuppingBPId)
BLOBLoaderIgetBLOB in interface BLOBLoaderIid - the id of the BO the BLOB belongs toos - the DataOutput to write the BLOB-bytes tocloseOS - a boolean designating if the DataOutput shall be closed afterwards or not.backuppingBPId - instead of the current BLOB get and stream
the backup-BLOB that was stored because of this BP-Id from the backup-dirpublic VFile getBLOBInfo(java.lang.Long id)
BLOBLoaderIgetBLOBInfo in interface BLOBLoaderIgetBLOBInfo in interface DBManIid - the id of the BO the BLOB-info belongs to.public VFile getBLOBInfo(java.lang.Long id, java.lang.Long backuppingBPId)
BLOBLoaderIgetBLOBInfo in interface BLOBLoaderIid - the id of the BO the BLOB-info belongs to.backuppingBPId - instead of the current BLOB get the VFile for
the backup-BLOB that was stored because of this BP-Id from the backup-dirpublic boolean hasBLOB(java.lang.Long id)
hasBLOB in interface BLOBLoaderIhasBLOB in interface DBManIid - the id of the BO the check for existence of a BLOB.public boolean hasBLOB(java.lang.Long id,
java.lang.Long backuppingBPId)
hasBLOB in interface BLOBLoaderIid - the id of the BO the check for existence of a BLOB on the server.backuppingBPId - instead of the current BLOB get the VFile for
the backup-BLOB that was stored because of this BP-Id from
the backup-dirpublic java.util.BitSet haveBLOB(long[] ids)
haveBLOB in interface BLOBLoaderIhaveBLOB in interface DBManIids - an array of ids of BOs the check for existence of a BLOB.public TransactionAnswer saveBO(Transaction tx)
public TransactionAnswer saveBO(Transaction tx, PersistenceHandlerI _ph)
public TransactionAnswer saveBO(Transaction tx, PersistenceHandlerI _ph, int lockTimeout)
public TransactionAnswer saveBO(Benutzer user, Transaction tx)
DBManLocalIsaveBO in interface DBManLocalIuser - the Benutzer on whose behalf to savetx - the Transaction to savepublic TransactionAnswer saveBO(Benutzer user, Transaction tx, PersistenceHandlerI _ph)
DBManLocalIsaveBO in interface DBManLocalIuser - the Benutzer on whose behalf to savetx - the Transaction to save_ph - the PersistenceHandlerI to use for persisting the changespublic TransactionAnswer saveBO(Benutzer user, Transaction tx, PersistenceHandlerI _ph, DBManVetoHandlerI vetoHandler)
DBManLocalIsaveBO in interface DBManLocalIuser - the Benutzer on whose behalf to savetx - the Transaction to save_ph - the PersistenceHandlerI to use for persisting the changesvetoHandler - the DBManVetoHandlerI to use while persisting the changespublic TransactionAnswer saveBO(Benutzer user, Transaction tx, PersistenceHandlerI _ph, DBManVetoHandlerI vetoHandler, int lockTimeout)
DBManLocalIsaveBO in interface DBManLocalIuser - the Benutzer on whose behalf to savetx - the Transaction to save_ph - the PersistenceHandlerI to use for persisting the changesvetoHandler - the DBManVetoHandlerI to use while persisting the changeslockTimeout - time to wait in seconds until a locking error is reported in case some
object is already locked by another thread; defaults to -1.
Zero or less for no waiting, i.e. immediate timeout (or rather the defined lock-timeout
of JDO, which defaults to 30s), an infinite value for no timeout.public TransactionAnswer saveBO(Benutzer user, Transaction tx, PersistenceHandlerI _ph, DBManVetoHandlerI vetoHandler, int lockTimeout, int retries)
DBManLocalIsaveBO in interface DBManLocalIuser - the Benutzer on whose behalf to savetx - the Transaction to save_ph - the PersistenceHandlerI to use for persisting the changesvetoHandler - the DBManVetoHandlerI to use while persisting the changeslockTimeout - time to wait in seconds until a locking error is reported in case some
object is already locked by another thread; defaults to -1.
Zero or less for no waiting, i.e. immediate timeout (or rather the defined lock-timeout
of JDO, which defaults to 30s), an infinite value for no timeout.retries - an int reflecting the number of retries that shall be attempted
before saving is abortedpublic TransactionAnswer saveBO(Benutzer user, Transaction tx, PersistenceHandlerI _ph, DBManVetoHandlerI vetoHandler, int lockTimeout, int retries, SerializedTransaction stxFromBackendRequestSave)
DBManLocalIsaveBO in interface DBManLocalIuser - the Benutzer on whose behalf to savetx - the Transaction to save_ph - the PersistenceHandlerI to use for persisting the changesvetoHandler - the DBManVetoHandlerI to use while persisting the changeslockTimeout - time to wait in seconds until a locking error is reported in case some
object is already locked by another thread; defaults to -1.
Zero or less for no waiting, i.e. immediate timeout (or rather the defined lock-timeout
of JDO, which defaults to 30s), an infinite value for no timeout.retries - an int reflecting the number of retries that shall be attempted
before saving is abortedstxFromBackendRequestSave - a SerializedTransaction that shall be closed
additionally after successful savingpublic TransactionAnswer saveBO(Benutzer user, Transaction tx, PersistenceHandlerI _ph, DBManVetoHandlerI vetoHandler, int lockTimeout, int retries, SerializedTransaction stxFromBackendRequestSave, SecureObjectOutputI out)
DBManLocalIsaveBO in interface DBManLocalIuser - the Benutzer on whose behalf to savetx - the Transaction to save_ph - the PersistenceHandlerI to use for persisting the changesvetoHandler - the DBManVetoHandlerI to use while persisting the changeslockTimeout - time to wait in seconds until a locking error is reported in case some
object is already locked by another thread; defaults to -1.
Zero or less for no waiting, i.e. immediate timeout (or rather the defined lock-timeout
of JDO, which defaults to 30s), an infinite value for no timeout.retries - an int reflecting the number of retries that shall be attempted
before saving is abortedstxFromBackendRequestSave - a SerializedTransaction that shall be closed
additionally after successful savingout - a SecureObjectOutputI the TransactionAnswer shall be written topublic TransactionAnswer saveBO(Benutzer user, Transaction tx, PersistenceHandlerI _ph, DBManVetoHandlerI vetoHandler, int lockTimeout, int retries, SerializedTransaction stxFromBackendRequestSave, SecureObjectOutputI out, boolean suppressLogs)
public TransactionAnswer saveServerLocalTransaction(Benutzer user, Transaction tx, PersistenceHandlerI ph, int lockTimeout, boolean suppressLogs)
DBManLocalIServerLocalTransactionI to the database.saveServerLocalTransaction in interface DBManLocalIuser - the Benutzer on whose behalf to savetx - the Transaction to saveph - the PersistenceHandlerI to use for persisting the changeslockTimeout - time to wait in seconds until a locking error is reported in case some
object is already locked by another thread; defaults to -1.
Zero or less for no waiting, i.e. immediate timeout (or rather the defined lock-timeout
of JDO, which defaults to 30s), an infinite value for no timeout.suppressLogs - if true, no BT nor ary BP
instances will be created from a TransactionConflictReport.
Retries are not supported, as a failed save is broken and can and must not be retried.
You need to recreate the Transaction and try saving again with a fresh ServerLocalTransactionI.
It is discouraged to retry saving the same procs again, as they were based on outdated data.
Simply saving those procs would probably be wrong, as operating on a different state will most
probably yield a different result to save. So it is much better and safer to operate on the
obviously modified new database state. Thus the core does not support retries and you need
to care for that in your own code.public void backToTheFuture(Transaction tx)
This method is crucial for maintaining data consistency and preventing the loss or overwriting of changes. By integrating BPs that occurred after the transaction's original time, it ensures that all relevant modifications are properly accounted for and applied. This process helps to reconcile discrepancies that might arise from out-of-order operations or delayed synchronization, ultimately contributing to the accurate and consistent state of objects in the database.
tx - The Transaction instance to catch up within the present context.public de.ipcon.db.core.QueryResultsI query(java.lang.String query)
BOLoaderIquery in interface BOLoaderIquery in interface BOQueryLoaderIquery in interface DBManIBOLoaderI.query(String, Object[])public de.ipcon.db.core.QueryResultsI query(java.lang.String query,
java.lang.Object[] params)
BOLoaderIThis sample shows how to query bla BOs though this method
do
it = bol.query("bla from pack.bo bla where not Ldel limit 2")
loop while it.hasNext()
bo = BO it.getCurrentObject() -- hopefully this IS a BO, depends on the query.
-- do whatever you have to do with the bo
finally
it.close()
end
The finally clause is very important to free up database and backend resources,
so please don't forget this step!query in interface BOLoaderIquery in interface BOQueryLoaderIquery in interface DBManIquery in interface GrooqlBOLoaderIquery - the query to fetch, written in OQLparams - an object array corresponding with $n entries, $1 is pvals[0] and so forth. Must not be null.public de.ipcon.db.core.QueryResultsI query(java.lang.String query,
java.lang.Object[] params,
BOLoaderI injectedBOLoader)
public de.ipcon.db.core.QueryResultsI query(Benutzer user, java.lang.String query)
query in interface DBManLocalIpublic de.ipcon.db.core.QueryResultsI query(Benutzer user, java.lang.String query, java.lang.Object[] params)
query in interface DBManLocalIpublic de.ipcon.db.core.QueryResultsI query(Benutzer user, java.lang.String query, java.lang.Object[] params, BOLoaderI injectedBOLoader)
public de.ipcon.db.core.QueryResultsI queryRelation(long id,
java.lang.Class<? extends BOI> classtip,
java.lang.String attributeName)
BOLoaderIqueryRelation in interface BOLoaderIpublic de.ipcon.db.core.QueryResultsI queryRelation(long id,
java.lang.Class<? extends BOI> classtip,
java.lang.String attributeName,
BOLoaderI injectedBOLoader)
public de.ipcon.db.core.QueryResultsI queryRelation(Benutzer user, long id, java.lang.Class<? extends BOI> classtip, java.lang.String attributeName)
public de.ipcon.db.core.QueryResultsI queryRelation(Benutzer user, long id, java.lang.Class<? extends BOI> classtip, java.lang.String attributeName, BOLoaderI injectedBOLoader)
public de.ipcon.db.core.QueryResultsI query(BOQuery boQuery)
BOLoaderIpublic java.util.List queryBO(java.lang.String query)
BOLoaderIqueryBO in interface BOLoaderIqueryBO in interface BOQueryLoaderIqueryBO in interface DBManIBOLoaderI.queryBO(String, Object[])public java.util.List queryBO(java.lang.String query,
java.lang.Object[] params)
BOLoaderIqueryBO in interface BOLoaderIqueryBO in interface BOQueryLoaderIqueryBO in interface DBManIqueryBO in interface GrooqlBOLoaderIquery - the query to fetch, written in OQLparams - an object array corresponding with $n entries, $1 is pvals[0] and so forth. Must not be null.BOLoaderI.query(String, Object[])public java.util.List queryBO(Benutzer user, java.lang.String query)
queryBO in interface DBManLocalIpublic java.util.List queryBO(Benutzer user, java.lang.String query, java.lang.Object[] params)
queryBO in interface DBManLocalIpublic java.util.List queryBO(BOQuery boQuery)
BOLoaderIpublic DBManUserContextI getNewUserContext()
getNewUserContext in interface DBManLocalIpublic Benutzer login(Anmeldung anmeldung, boolean localConnection) throws AuthenticationException
DBManLocalIlogin in interface DBManIlogin in interface DBManLocalIanmeldung - Anmeldung instance with name of the Benutzer as which one wants to log in and passwordlocalConnection - tell whether the connection is regarded as 'local'AuthenticationExceptionpublic Benutzer _login(Anmeldung anmeldung, boolean testOnly, boolean resetProcedure, boolean localConnection) throws AuthenticationException
AuthenticationExceptionpublic void resetPassword(java.lang.String username)
throws AuthenticationException
DBManLocalIresetPassword in interface DBManIresetPassword in interface DBManLocalIAuthenticationExceptionpublic void sendUsernameHint(Benutzer user)
DBManLocalIsendUsernameHint in interface DBManLocalIpublic boolean areGratuitousLocalConnectionsAvailable()
areGratuitousLocalConnectionsAvailable in interface DBManLocalIpublic int getClientsOfAdministratorUsersCount()
public java.util.Set<java.lang.String> getClientsCountingAgainstLimit()
maxClients limit. Sessions from the same user and same origin will only have one
entry in this set. This is used to be lenient for cases where the same user has more than one login from the
same machine as these multiple logins are only counting as one against a possible limit.maxClients limitpublic void updateStructureReadAccessStatistics(java.util.Map<java.lang.Long,java.lang.Integer> statistics,
Benutzer user)
DBManLocalIThis method updates the internal access statistics using the provided map, where the keys are structure Ids and the values are read access counts. The user parameter, although not currently utilized beyond the transaction description, is included to facilitate potential future enhancements for a detailed audit log per user.
updateStructureReadAccessStatistics in interface DBManLocalIstatistics - a map containing Struktur Ids as keys and their read access counts as values.user - the user that triggered the update. Currently, this parameter is used only for the transaction description, but it is included
for potential future use in creating detailed audit logs.public java.lang.Long testAuth(Anmeldung anmeldung)
testAuth in interface BOLoaderItestAuth in interface DBManLocalIpublic boolean testAuth(de.ipcon.db.core.PasswortUeberpruefung pwc)
testAuth in interface BOLoaderItestAuth in interface DBManLocalIpublic BackendSessionI[] getSessions()
getSessions in interface DBManLocalIpublic void sessionAdded(BackendSessionI _securityContext)
sessionAdded in interface DBManLocalIpublic void sessionRemoved(BackendSessionI _securityContext)
sessionRemoved in interface DBManLocalIpublic java.lang.Boolean isLoggedIn(Benutzer _ben)
BOLoaderIisLoggedIn in interface BOLoaderI_ben - the Benutzer for which the logged in state should be checkedpublic boolean isLoggedInNN(Benutzer _ben)
BOLoaderIisLoggedInNN in interface BOLoaderI_ben - the Benutzer for which the logged in state should be checkedpublic boolean isLocked()
DBManLocalIisLocked in interface DBManLocalIpublic void setLocked(boolean _lock,
DBManUserContextI _utx)
DBManLocalIsetLocked in interface DBManLocalI_lock - the state to set, true to lock, false to unlock the server_utx - the current DBManUserContextIpublic void _setLocked(boolean _lock)
public static DBManLocalI[] getInstances()
public boolean isAuthoritativeSyncServer()
isAuthoritativeSyncServer in interface DBManIisAuthoritativeSyncServer in interface DBManLocalIpublic java.lang.String getInstanceName()
getInstanceName in interface DBManLocalIpublic java.lang.String getProjectId()
public java.lang.Long getNodeNumber()
getNodeNumber in interface DBManIgetNodeNumber in interface DBManLocalIpublic DBManConfigurationHelper getConfiguration()
getConfiguration in interface DBManLocalIpublic DBManBootstrapHelper getProjectConfiguration()
getProjectConfiguration in interface DBManLocalIpublic SchemaI getSchema()
BOLoaderIgetSchema in interface BOLoaderIgetSchema in interface DBManIgetSchema in interface DBManLocalIgetSchema in interface SchemaProviderIpublic CryptoHandlerI getCryptoHandler()
BOLoaderIgetCryptoHandler in interface BOLoaderIpublic FileVaultI getFileVault()
getFileVault in interface BOLoaderIpublic ServerFileVaultI getServerFileVault()
getServerFileVault in interface DBManLocalIpublic CryptoHandlerI getClientCryptoHandler()
getClientCryptoHandler in interface DBManLocalIpublic ServerCryptoHandlerI getServerCryptoHandler()
getServerCryptoHandler in interface DBManLocalIpublic PersistenceHandlerI getPersistenceHandler()
getPersistenceHandler in interface DBManLocalIpublic PersistenceHandlerI getPersistenceHandlerForSaving()
getPersistenceHandlerForSaving in interface DBManLocalIpublic java.lang.String getDateKernelBuild()
getDateKernelBuild in interface DBManLocalIpublic void bumpLastSuccessfulSync()
bumpLastSuccessfulSync in interface DBManLocalIpublic void bumpLastSuccessfulSync(long ts)
bumpLastSuccessfulSync in interface DBManLocalIpublic long getCurrentSyncLag()
getCurrentSyncLag in interface DBManLocalIpublic void addEventListener(DBManEventListenerI l)
addEventListener in interface DBManLocalIpublic void addEventListener(DBManEventListenerI l, DBManEventFilter filter)
addEventListener in interface DBManLocalIpublic void removeEventListener(DBManEventListenerI l)
removeEventListener in interface DBManLocalIpublic void subscribeEvents(DBManEventListenerI listener)
public void subscribeEvents(DBManEventListenerI listener, DBManEventFilter filter)
DBManEventProviderIsubscribeEvents in interface DBManEventProviderIpublic void unsubscribeEvents(DBManEventListenerI listener)
DBManEventProviderIunsubscribeEvents in interface DBManEventProviderIpublic void unsubscribeEvents(DBManEventListenerI listener, DBManEventFilter filter)
unsubscribeEvents in interface DBManEventProviderIpublic void fireDebugEvent(java.lang.String context,
java.lang.String text)
public void fireInfoEvent(java.lang.String context,
java.lang.String text)
public void fireWarnEvent(java.lang.String context,
java.lang.String text)
public void fireLogEvent(int severity,
java.lang.String context,
java.lang.String text)
public void fireDBManEvent(DBManEvent evt)
fireDBManEvent in interface DBManLocalIpublic void handleLoggingEvent(org.apache.log4j.spi.LoggingEvent _event)
handleLoggingEvent in interface LogListenerIpublic java.lang.String getNodeLocalStatusValue(java.lang.String _key)
DBManLocalIStatusValueManager for a bit more info).
BE AWARE THAT THESE VALUES ARE ONLY SET ON THE NODE WHERE THIS METHOD IS CALLED! They are NOT synchronized by the
normal MyTISM sync mechanism.getNodeLocalStatusValue in interface DBManLocalI_key - the key for which the value should be retrievedpublic void setNodeLocalStatusValue(java.lang.String _key,
java.lang.String _value)
DBManLocalIStatusValueManager for a bit more info).
BE AWARE THAT THESE VALUES ARE ONLY SET ON THE NODE WHERE THIS METHOD IS CALLED! They are NOT synchronized by the
normal MyTISM sync mechanism.setNodeLocalStatusValue in interface DBManLocalI_key - the key for which the value should be retrieved_value - the value to set for the given keypublic void featureBecameAvailable(java.lang.String _feature)
featureBecameAvailable in interface FeatureListenerIpublic void featureNoLongerAvailable(java.lang.String _feature)
featureNoLongerAvailable in interface FeatureListenerIpublic boolean isServerstartLicenseExpired()
public boolean isAvailable(java.lang.String feature)
isAvailable in interface DBManLocalIpublic boolean isAvailableWithNoise(java.lang.String feature)
isAvailableWithNoise in interface DBManLocalIpublic void addFeatureListener(FeatureListenerI fl)
addFeatureListener in interface DBManLocalIpublic void removeFeatureListener(FeatureListenerI fl)
removeFeatureListener in interface DBManLocalIpublic void createExpiringToken(java.lang.String serviceName,
java.lang.String tokenName,
byte[] value,
long expiryms)
ExpiringTokenStorageProviderIcreateExpiringToken in interface ExpiringTokenStorageProviderIserviceName - name (fqn) of the service who provided the valuetokenName - name of the token variable which in conjunction with the service name provides a key to the valuevalue - the actual value, as byte arrayexpiryms - the time the value will be valid. After that time, the value is removed from the storepublic java.lang.String createExpiringToken(java.lang.String serviceName,
byte[] value,
long expiryms)
ExpiringTokenStorageProviderIcreateExpiringToken in interface ExpiringTokenStorageProviderIserviceName - name (fqn) of the service who provided the valuevalue - the actual value, as byte arrayexpiryms - the time the value will be valid. After that time, the value is removed from the storepublic byte[] retrieveExpiringToken(java.lang.String serviceName,
java.lang.String tokenName)
ExpiringTokenStorageProviderIretrieveExpiringToken in interface ExpiringTokenStorageProviderIserviceName - name (fqn) of the service who provided the valuetokenName - name of the token variable which in conjunction with the service name provides a key to the valuepublic byte[] destroyExpiringToken(java.lang.String serviceName,
java.lang.String tokenName)
ExpiringTokenStorageProviderIdestroyExpiringToken in interface ExpiringTokenStorageProviderIserviceName - name (fqn) of the service who provided the valuetokenName - name of the token variable which in conjunction with the service name provides a key to the valuepublic void initiateShutdown(DBManUserContextI _utx)
initiateShutdown in interface DBManLocalIpublic void initiateShutdown(DBManUserContextI _utx, int _cSecsDelay)
initiateShutdown in interface DBManLocalIpublic void initiateShutdown(DBManUserContextI _utx, int _cSecsDelay, java.lang.String _msg)
initiateShutdown in interface DBManLocalIpublic boolean isShutdownInitiated()
public java.util.Date getShutdownDate()
getShutdownDate in interface DBManLocalIpublic void stopShutdown(DBManUserContextI _utx)
stopShutdown in interface DBManLocalIpublic void shutdownPurger()
This method gracefully terminates the purging task, preventing it from further identifying and removing business objects. It is typically called when the task is no longer needed or when its operation needs to be paused or stopped.
public void sendSystemMessage(DBManUserContextI _utx, java.lang.String _msg)
sendSystemMessage in interface DBManLocalIpublic void sendSystemMessage(DBManUserContextI _utx, java.lang.String _msg, java.util.Map _msgClients)
sendSystemMessage in interface DBManLocalIpublic void demandForcedClientDisconnect(DBManUserContextI utx)
demandForcedClientDisconnect in interface DBManLocalIpublic void demandForcedClientDisconnect(DBManUserContextI utx, int cSecsDelay)
demandForcedClientDisconnect in interface DBManLocalIpublic void demandForcedClientDisconnect(DBManUserContextI utx, int cSecsDelay, java.lang.String msg)
demandForcedClientDisconnect in interface DBManLocalIpublic void demandForcedClientDisconnect(DBManUserContextI utx, int cSecsDelay, java.lang.String msg, java.util.Map msgClients)
demandForcedClientDisconnect in interface DBManLocalIpublic void cancelForcedClientDisconnect(DBManUserContextI utx)
cancelForcedClientDisconnect in interface DBManLocalIpublic void cancelForcedClientDisconnect(DBManUserContextI utx, java.util.Map msgClients)
cancelForcedClientDisconnect in interface DBManLocalIpublic void triggerInitialDataCheck()
triggerInitialDataCheck in interface DBManLocalIpublic void triggerIntegrityCheck()
triggerIntegrityCheck in interface DBManLocalIpublic void triggerMetaDataCheck()
triggerMetaDataCheck in interface DBManLocalIpublic BatchedBackendRequestI prepareQuery(java.lang.String s)
prepareQuery in interface BOLoaderIpublic BatchedBackendRequestI prepareQuery(java.lang.String s, java.lang.Object[] o)
prepareQuery in interface BOLoaderIpublic void execute(BatchedBackendRequestI[] srs)
public void restartDBMan()
public void drain()
BOLoaderIBOLoaderI.isCaching() returns false, this is a nop.public boolean isCaching()
BOLoaderIpublic boolean isRecording()
BOLoaderIisRecording in interface BOLoaderIpublic BO frapFromCache(BO bo)
BOLoaderIfrapFromCache in interface BOLoaderIpublic BOLoaderI getParentLoader()
BOLoaderIgetParentLoader in interface BOLoaderIpublic BOLoaderI getRootLoader()
BOLoaderIgetRootLoader in interface BOLoaderIpublic DBManEventProviderI getEventProvider()
BOLoaderIgetEventProvider in interface BOLoaderIpublic ServerConnectionInfo getServerConnectionInfo()
getServerConnectionInfo in interface DBManLocalIpublic ServerLocalTransactionI getServerLocalTransaction()
DBManLocalIServerLocalTransactionI instance
which is prepared for saving on server-side.getServerLocalTransaction in interface DBManLocalIServerLocalTransactionIpublic ServerLocalTransactionI getServerLocalTransaction(java.lang.String desc)
DBManLocalIServerLocalTransactionI instance
which is prepared for saving on server-side.getServerLocalTransaction in interface DBManLocalIdesc - the description to use in the contained Transaction within the ServerLocalTransactionIServerLocalTransactionI having a Transaction with the given description
(if one was given)public ServerLocalTransactionI getServerLocalTransaction(java.lang.String desc, int lockTimeout)
DBManLocalIServerLocalTransactionI instance
which is prepared for saving on server-side.getServerLocalTransaction in interface DBManLocalIdesc - the description to use in the contained Transaction within the ServerLocalTransactionIlockTimeout - time to wait in seconds until a locking error is reported in case some
object is already locked by another thread; defaults to -1.
Zero or less for no waiting, i.e. immediate timeout (or rather the defined lock-timeout
of JDO, which defaults to 30s), an infinite value for no timeout.ServerLocalTransactionI having a Transaction with the given description
(if one was given)public ServerLocalTransactionI getServerLocalTransaction(java.lang.String desc, int lockTimeout, TemporaryIdSupplierI temporaryIdSupplier)
DBManLocalIServerLocalTransactionI instance
which is prepared for saving on server-side.getServerLocalTransaction in interface DBManLocalIdesc - the description to use in the contained Transaction within the ServerLocalTransactionIlockTimeout - time to wait in seconds until a locking error is reported in case some
object is already locked by another thread; defaults to -1.
Zero or less for no waiting, i.e. immediate timeout (or rather the defined lock-timeout
of JDO, which defaults to 30s), an infinite value for no timeout.temporaryIdSupplier - a TemporaryIdSupplier supplying temporary Ids
for our Transaction; if null is passed, the Transaction will manage that on its ownServerLocalTransactionI having a Transaction with the given description
(if one was given)public ServerLocalTransactionI getServerLocalTransaction(java.lang.String desc, int lockTimeout, TemporaryIdSupplierI temporaryIdSupplier, boolean withInstrumentedSchema)
DBManLocalIServerLocalTransactionI instance
which is prepared for saving on server-side.getServerLocalTransaction in interface DBManLocalIdesc - the description to use in the contained Transaction within the ServerLocalTransactionIlockTimeout - time to wait in seconds until a locking error is reported in case some
object is already locked by another thread; defaults to -1.
Zero or less for no waiting, i.e. immediate timeout (or rather the defined lock-timeout
of JDO, which defaults to 30s), an infinite value for no timeout.temporaryIdSupplier - a TemporaryIdSupplier supplying temporary Ids
for our Transaction; if null is passed, the Transaction will manage that on its ownwithInstrumentedSchema - if true, the SchemaI of the SLTX's Transaction will be wrapped as an InstrumentingSchemaServerLocalTransactionI having a Transaction with the given description
(if one was given)public ServerLocalTransactionI getServerLocalTransaction(java.lang.String desc, int lockTimeout, TemporaryIdSupplierI temporaryIdSupplier, boolean withInstrumentedSchema, boolean intendedForSaving)
DBManLocalIServerLocalTransactionI instance
which is prepared for saving on server-side.getServerLocalTransaction in interface DBManLocalIdesc - the description to use in the contained Transaction within the ServerLocalTransactionIlockTimeout - time to wait in seconds until a locking error is reported in case some
object is already locked by another thread; defaults to -1.
Zero or less for no waiting, i.e. immediate timeout (or rather the defined lock-timeout
of JDO, which defaults to 30s), an infinite value for no timeout.temporaryIdSupplier - a TemporaryIdSupplier supplying temporary Ids
for our Transaction; if null is passed, the Transaction will manage that on its ownwithInstrumentedSchema - if true, the SchemaI of the SLTX's Transaction will be wrapped as an InstrumentingSchemaintendedForSaving - if true, a PersistenceHandlerI for saving will be acquired from the passed DBManLocalI,
otherwise only loading objects will be supportedServerLocalTransactionI having a Transaction with the given description
(if one was given)public ServerLocalTransactionI getServerLocalTransaction(Benutzer user, BackendSessionI session)
DBManLocalIServerLocalTransactionI instance
for the passed Benutzer and BackendSessionI which is prepared for saving on
server-side.getServerLocalTransaction in interface DBManLocalIuser - the Benutzer to save on behalf ofsession - the relevant BackendSessionI of the passed BenutzerServerLocalTransactionI having a Transaction.public ServerLocalTransactionI getServerLocalTransaction(Benutzer user, BackendSessionI session, java.lang.String desc)
DBManLocalIServerLocalTransactionI instance
for the passed Benutzer and BackendSessionI which is prepared for saving on
server-side.getServerLocalTransaction in interface DBManLocalIuser - the Benutzer to save on behalf ofsession - the relevant BackendSessionI of the passed Benutzerdesc - the description to use in the contained Transaction within the ServerLocalTransactionIServerLocalTransactionI having a Transaction with the given description
(if one was given).public ServerLocalTransactionI getServerLocalTransaction(Benutzer user, BackendSessionI session, java.lang.String desc, int lockTimeout)
DBManLocalIServerLocalTransactionI instance
for the passed Benutzer and BackendSessionI which is prepared for saving on
server-side.getServerLocalTransaction in interface DBManLocalIuser - the Benutzer to save on behalf ofsession - the relevant BackendSessionI of the passed Benutzerdesc - the description to use in the contained Transaction within the ServerLocalTransactionIlockTimeout - time to wait in seconds until a locking error is reported in case some
object is already locked by another thread; defaults to -1.
Zero or less for no waiting, i.e. immediate timeout (or rather the defined lock-timeout
of JDO, which defaults to 30s), an infinite value for no timeout.ServerLocalTransactionI having a Transaction with the given description
(if one was given).public ServerLocalTransactionI getServerLocalTransaction(Benutzer user, BackendSessionI session, java.lang.String desc, int lockTimeout, TemporaryIdSupplierI temporaryIdSupplier)
DBManLocalIServerLocalTransactionI instance
for the passed Benutzer and BackendSessionI which is prepared for saving on
server-side.getServerLocalTransaction in interface DBManLocalIuser - the Benutzer to save on behalf ofsession - the relevant BackendSessionI of the passed Benutzerdesc - the description to use in the contained Transaction within the ServerLocalTransactionIlockTimeout - time to wait in seconds until a locking error is reported in case some
object is already locked by another thread; defaults to -1.
Zero or less for no waiting, i.e. immediate timeout (or rather the defined lock-timeout
of JDO, which defaults to 30s), an infinite value for no timeout.temporaryIdSupplier - a TemporaryIdSupplier supplying temporary Ids
for our Transaction; if null is passed, the passed session will be used instead, if that is null
as well, the Transaction will manage that on its ownServerLocalTransactionI having a Transaction with the given description
(if one was given).public ServerLocalTransactionI getServerLocalTransaction(Benutzer user, BackendSessionI session, java.lang.String desc, int lockTimeout, TemporaryIdSupplierI temporaryIdSupplier, boolean withInstrumentedSchema)
DBManLocalIServerLocalTransactionI instance
for the passed Benutzer and BackendSessionI which is prepared for saving on
server-side.getServerLocalTransaction in interface DBManLocalIuser - the Benutzer to save on behalf ofsession - the relevant BackendSessionI of the passed Benutzerdesc - the description to use in the contained Transaction within the ServerLocalTransactionIlockTimeout - time to wait in seconds until a locking error is reported in case some
object is already locked by another thread; defaults to -1.
Zero or less for no waiting, i.e. immediate timeout (or rather the defined lock-timeout
of JDO, which defaults to 30s), an infinite value for no timeout.temporaryIdSupplier - a TemporaryIdSupplier supplying temporary Ids
for our Transaction; if null is passed, the passed session will be used instead, if that is null
as well, the Transaction will manage that on its ownwithInstrumentedSchema - if true, the SchemaI of the SLTX's Transaction will be wrapped as an InstrumentingSchemaServerLocalTransactionI having a Transaction with the given description
(if one was given).public ServerLocalTransactionI getServerLocalTransaction(Benutzer user, BackendSessionI session, java.lang.String desc, int lockTimeout, TemporaryIdSupplierI temporaryIdSupplier, boolean withInstrumentedSchema, boolean intendedForSaving)
DBManLocalIServerLocalTransactionI instance
for the passed Benutzer and BackendSessionI which is prepared for saving on
server-side.getServerLocalTransaction in interface DBManLocalIuser - the Benutzer to save on behalf ofsession - the relevant BackendSessionI of the passed Benutzerdesc - the description to use in the contained Transaction within the ServerLocalTransactionIlockTimeout - time to wait in seconds until a locking error is reported in case some
object is already locked by another thread; defaults to -1.
Zero or less for no waiting, i.e. immediate timeout (or rather the defined lock-timeout
of JDO, which defaults to 30s), an infinite value for no timeout.temporaryIdSupplier - a TemporaryIdSupplier supplying temporary Ids
for our Transaction; if null is passed, the passed session will be used instead, if that is null
as well, the Transaction will manage that on its ownwithInstrumentedSchema - if true, the SchemaI of the SLTX's Transaction will be wrapped as an InstrumentingSchemaintendedForSaving - if true, a PersistenceHandlerI for saving will be acquired from the passed DBManLocalI,
otherwise only loading objects will be supportedServerLocalTransactionI having a Transaction with the given description
(if one was given).public SaveResultI save(groovy.lang.Closure cl)
DBManLocalIsave(String, Closure) without a description for the transaction.save in interface DBManLocalIcl - Closure which manipulates the transactionSaveResult containing the resulting values of the save-procedure.public SaveResultI save(java.lang.String desc, groovy.lang.Closure cl)
DBManLocalIDBManLocalI.save(Benutzer, String, Closure), but without a Benutzer.save in interface DBManLocalIdesc - Description of the transactioncl - Closure which manipulates the transactionSaveResult containing the resulting values of the save-procedure.public SaveResultI save(Benutzer user, java.lang.String desc, groovy.lang.Closure cl)
DBManLocalIsave in interface DBManLocalIuser - 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.public SaveResultI save(Benutzer user, BackendSessionI session, java.lang.String desc, groovy.lang.Closure cl)
DBManLocalIsave in interface DBManLocalIuser - Benutzer object on whose behalf the transaction shall be savedsession - the BackendSessionI of the Benutzer to use as TemporaryIdSupplierI during savingdesc - Description of the transactioncl - Closure which manipulates the transactionSaveResult containing the resulting values of the save-procedure.public SaveResultI save(java.util.function.Consumer<Transaction> fn)
save in interface DBManLocalIpublic SaveResultI save(java.lang.String desc, java.util.function.Consumer<Transaction> fn)
save in interface DBManLocalIpublic SaveResultI save(Benutzer user, java.lang.String desc, java.util.function.Consumer<Transaction> fn)
save in interface DBManLocalIpublic SaveResultI save(Benutzer user, BackendSessionI session, java.lang.String desc, java.util.function.Consumer<Transaction> fn)
save in interface DBManLocalIpublic SaveResultI save(java.util.function.Function<Transaction,? extends java.lang.Object> fn)
save in interface DBManLocalIpublic SaveResultI save(java.lang.String desc, java.util.function.Function<Transaction,? extends java.lang.Object> fn)
save in interface DBManLocalIpublic SaveResultI save(Benutzer user, java.lang.String desc, java.util.function.Function<Transaction,? extends java.lang.Object> fn)
save in interface DBManLocalIpublic SaveResultI save(Benutzer user, BackendSessionI session, java.lang.String desc, java.util.function.Function<Transaction,? extends java.lang.Object> fn)
save in interface DBManLocalIpublic SaveResultI save(ThrowingFunction<Transaction,? extends java.lang.Object,? extends java.lang.Throwable> fn)
save in interface DBManLocalIpublic SaveResultI save(java.lang.String desc, ThrowingFunction<Transaction,? extends java.lang.Object,? extends java.lang.Throwable> fn)
save in interface DBManLocalIpublic SaveResultI save(Benutzer user, java.lang.String desc, ThrowingFunction<Transaction,? extends java.lang.Object,? extends java.lang.Throwable> fn)
save in interface DBManLocalIpublic SaveResultI save(Benutzer user, BackendSessionI session, java.lang.String desc, ThrowingFunction<Transaction,? extends java.lang.Object,? extends java.lang.Throwable> fn)
save in interface DBManLocalIpublic boolean isOperational()
L10nPackProviderIisOperational in interface L10nPackProviderItrue if the provider is operational, false otherwise.public java.lang.String getL10nViaString()
L10nPackProviderIgetL10nViaString in interface L10nPackProviderIpublic L10nPack getL10nPack(java.lang.String bundleName, java.lang.String locale)
L10nPackProviderIL10nPack by its bundle name and locale.getL10nPack in interface L10nPackProviderIbundleName - The name of the L10n bundle to retrieve.locale - The name of the Locale for which to retrieve the pack.L10nPack, or null if not found.public L10nPack[] getL10nPacks(java.lang.String[] bundleNames, java.lang.String locale)
L10nPackProviderIL10nPack objects for multiple specified bundle names and a single locale.getL10nPacks in interface L10nPackProviderIbundleNames - An array of String names of the L10n bundles to retrieve.locale - The name of the Locale for which to retrieve the packs.L10nPacks corresponding to the requested bundle names,
or an empty array if none are found.public L10nPathEntry[] getL10nPath()
L10nPackProviderIThese path entries define the locations or priorities for searching localization resources within the overall L10n system.
getL10nPath in interface L10nPackProviderIL10nPathEntry objects.public java.lang.String getJdbcDriver()
getJdbcDriver in interface DBManLocalIpublic void setJdbcDriver(java.lang.String $129)
public java.lang.String getJdbcUrlFromConf()
public void setJdbcUrlFromConf(java.lang.String $130)
public java.lang.String getJdbcUrl()
getJdbcUrl in interface DBManLocalIpublic void setJdbcUrl(java.lang.String $131)
public java.lang.String getJdbcUser()
getJdbcUser in interface DBManLocalIpublic void setJdbcUser(java.lang.String $132)
public java.lang.String getJdbcPass()
getJdbcPass in interface DBManLocalIpublic void setJdbcPass(java.lang.String $133)
public java.lang.String getBootJdbcDriver()
public void setBootJdbcDriver(java.lang.String $134)
public java.lang.String getBootJdbcUrl()
public void setBootJdbcUrl(java.lang.String $135)
public java.lang.String getBootJdbcUser()
public void setBootJdbcUser(java.lang.String $136)
public java.lang.String getBootJdbcPass()
public void setBootJdbcPass(java.lang.String $137)
public java.lang.String getDbType()
public void setDbType(java.lang.String $138)
public DefaultServiceManager getSrvman()
public void setSrvman(DefaultServiceManager $139)
public java.util.ArrayList getProtocolDrivers()
public void setProtocolDrivers(java.util.ArrayList $140)
public AlarmModule getAlarmModule()
public void setAlarmModule(AlarmModule $141)
public NotificationModule getNotificationModule()
public void setNotificationModule(NotificationModule $142)
public CompassFTSModule getFtsModule()
public void setFtsModule(CompassFTSModule $143)
public FeatureManagerI getFeatureManager()
getFeatureManager in interface BOLoaderICopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.