public interface MssqlTransactionDefinition extends TransactionDefinition
TransactionDefinition for a SQL Server database.| Modifier and Type | Field and Description |
|---|---|
static Option<String> |
MARK
The
WITH MARK description is a string that marks the transaction in the transaction log and being stored in the msdb.dbo.logmarkhistory table. |
ISOLATION_LEVEL, LOCK_WAIT_TIMEOUT, NAME, READ_ONLYgetAttributestatic MssqlTransactionDefinition from(IsolationLevel isolationLevel)
MssqlTransactionDefinition given IsolationLevel.isolationLevel - the isolation level to use during the transaction.MssqlTransactionDefinition using IsolationLevel.IllegalArgumentException - if isolationLevel is null.static MssqlTransactionDefinition named(String name)
MssqlTransactionDefinition specifying the transaction name.name - the transaction name. Must not exceed 32 characters. The name is always case sensitive, even when the instance of SQL Server is not case sensitiveMssqlTransactionDefinition using transaction name.MssqlTransactionDefinition isolationLevel(IsolationLevel isolationLevel)
MssqlTransactionDefinition retaining all configured options and applying IsolationLevel.isolationLevel - the isolation level to use during the transaction.MssqlTransactionDefinition retaining all configured options and applying IsolationLevel.IllegalArgumentException - if isolationLevel is null.MssqlTransactionDefinition lockTimeout(Duration timeout)
MssqlTransactionDefinition retaining all configured options and applying lock timeout.timeout - the lock timeout.MssqlTransactionDefinition retaining all configured options and applying lock timeout.IllegalArgumentException - if timeout is null.MssqlTransactionDefinition name(String name)
MssqlTransactionDefinition retaining all configured options and using the given transaction name.name - the transaction name. Must not exceed 32 characters. The name is always case sensitive, even when the instance of SQL Server is not case sensitiveMssqlTransactionDefinition retaining all configured options and using the given transaction name.IllegalArgumentException - if name is null.MssqlTransactionDefinition mark(String mark)
MssqlTransactionDefinition retaining all configured options and using the given transaction mark.
Specifies that the transaction is marked in the log. This method updates the transaction name to mark if no name was set.
If WITH MARK is used, a transaction name must be specified. WITH MARK allows for restoring a transaction log to a named mark.
mark - describes the mark. A description longer than 128 characters is truncated
to 128 characters before being stored in the msdb.dbo.logmarkhistory table.MssqlTransactionDefinition retaining all configured options and using the given transaction mark.IllegalArgumentException - if mark is null.Copyright © 2023. All rights reserved.