public class BOSaver extends java.lang.Object implements SaveBOImplementationI
| Constructor and Description |
|---|
BOSaver(DBManLocalI _dbm) |
BOSaver(DBManLocalI _dbm,
Benutzer _user) |
| Modifier and Type | Method and Description |
|---|---|
Transaction |
getNewTransaction()
Convenience method for getting a new
Transaction instance. |
Transaction |
getNewTransaction(java.lang.String desc)
Convenience method for getting a new
Transaction instance. |
SchemaI |
getSchema()
Convenience method for getting the current
SchemaI. |
boolean |
isStubCloneOnSave() |
TransactionAnswer |
saveBO(Transaction tx)
Saves (the BOs of) a Transaction.
|
TransactionAnswer |
saveBO(Transaction tx,
boolean ignoreConflicts) |
static TransactionAnswer |
saveBO(Transaction tx,
SaveBOImplementationI sbi) |
static TransactionAnswer |
saveBO(Transaction tx,
SaveBOImplementationI sbi,
boolean ignoreConflicts) |
static TransactionAnswer |
saveBO(Transaction tx,
SaveBOImplementationI sbi,
boolean ignoreConflicts,
Benutzer onBehalfOf) |
static TransactionAnswer |
saveBO(Transaction tx,
SaveBOImplementationI sbi,
SaveBOListenerI sbl)
Saves (the BOs of) a Transaction.
|
static TransactionAnswer |
saveBO(Transaction tx,
SaveBOImplementationI sbi,
SaveBOListenerI sbl,
boolean ignoreConflicts) |
static TransactionAnswer |
saveBO(Transaction tx,
SaveBOImplementationI sbi,
SaveBOListenerI sbl,
boolean ignoreConflicts,
int lockTimeout) |
static TransactionAnswer |
saveBO(Transaction tx,
SaveBOImplementationI sbi,
SaveBOListenerI sbl,
boolean ignoreConflicts,
int lockTimeout,
int retries) |
static TransactionAnswer |
saveBO(Transaction tx,
SaveBOImplementationI sbi,
SaveBOListenerI sbl,
boolean ignoreConflicts,
int lockTimeout,
int retries,
Benutzer onBehalfOf) |
TransactionAnswer |
saveBOImpl(Transaction tx)
Persists the changes recorded in the passed Transaction tx to the database.
|
TransactionAnswer |
saveBOImpl(Transaction tx,
int lockTimeout)
Persists the changes recorded in the passed Transaction tx to the database.
|
TransactionAnswer |
saveBOImpl(Transaction tx,
int lockTimeout,
int retries)
Persists the changes recorded in the passed Transaction tx to the database.
|
TransactionAnswer |
saveBOImpl(Transaction tx,
int lockTimeout,
int retries,
Benutzer onBehalfOf)
Persists the changes recorded in the passed Transaction tx to the database.
|
void |
setStubCloneOnSave(boolean $13) |
public BOSaver(DBManLocalI _dbm)
public BOSaver(DBManLocalI _dbm, Benutzer _user)
public static TransactionAnswer saveBO(Transaction tx, SaveBOImplementationI sbi) throws TransactionConflictException
TransactionConflictExceptionpublic static TransactionAnswer saveBO(Transaction tx, SaveBOImplementationI sbi, boolean ignoreConflicts) throws TransactionConflictException
TransactionConflictExceptionpublic static TransactionAnswer saveBO(Transaction tx, SaveBOImplementationI sbi, boolean ignoreConflicts, Benutzer onBehalfOf) throws TransactionConflictException
TransactionConflictExceptionpublic static TransactionAnswer saveBO(Transaction tx, SaveBOImplementationI sbi, SaveBOListenerI sbl) throws TransactionConflictException
Saves (the BOs of) a Transaction.
TransactionConflictExceptionpublic static TransactionAnswer saveBO(Transaction tx, SaveBOImplementationI sbi, SaveBOListenerI sbl, boolean ignoreConflicts) throws TransactionConflictException
TransactionConflictExceptionpublic static TransactionAnswer saveBO(Transaction tx, SaveBOImplementationI sbi, SaveBOListenerI sbl, boolean ignoreConflicts, int lockTimeout) throws TransactionConflictException
TransactionConflictExceptionpublic static TransactionAnswer saveBO(Transaction tx, SaveBOImplementationI sbi, SaveBOListenerI sbl, boolean ignoreConflicts, int lockTimeout, int retries) throws TransactionConflictException
TransactionConflictExceptionpublic static TransactionAnswer saveBO(Transaction tx, SaveBOImplementationI sbi, SaveBOListenerI sbl, boolean ignoreConflicts, int lockTimeout, int retries, Benutzer onBehalfOf) throws TransactionConflictException
TransactionConflictExceptionpublic Transaction getNewTransaction()
SaveBOImplementationITransaction instance.getNewTransaction in interface SaveBOImplementationIpublic Transaction getNewTransaction(java.lang.String desc)
SaveBOImplementationITransaction instance.getNewTransaction in interface SaveBOImplementationIdesc - the description to use for the new Transactionpublic SchemaI getSchema()
SaveBOImplementationISchemaI.getSchema in interface SaveBOImplementationISchemaI.public TransactionAnswer saveBO(Transaction tx) throws TransactionConflictException
Saves (the BOs of) a Transaction.
Does some stuff normally done by the *Clients but we have to do it ourselves because we're using the "low-level" DBManLocalI.
TransactionConflictExceptionpublic TransactionAnswer saveBO(Transaction tx, boolean ignoreConflicts) throws TransactionConflictException
TransactionConflictExceptionpublic TransactionAnswer saveBOImpl(Transaction tx)
SaveBOImplementationIsaveBOImpl in interface SaveBOImplementationItx - the Transaction to savepublic TransactionAnswer saveBOImpl(Transaction tx, int lockTimeout)
SaveBOImplementationIsaveBOImpl in interface SaveBOImplementationItx - the Transaction to savelockTimeout - 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 saveBOImpl(Transaction tx, int lockTimeout, int retries)
SaveBOImplementationIsaveBOImpl in interface SaveBOImplementationItx - the Transaction to savelockTimeout - 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 saveBOImpl(Transaction tx, int lockTimeout, int retries, Benutzer onBehalfOf)
SaveBOImplementationIsaveBOImpl in interface SaveBOImplementationItx - the Transaction to savelockTimeout - 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 abortedonBehalfOf - the Benutzer on whose behalf to savepublic boolean isStubCloneOnSave()
public void setStubCloneOnSave(boolean $13)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.