public class CommittableTransaction extends Transaction
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Transactions.CommittableTransaction
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Transactions.Local, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Transactions.Local
|
static java.lang.String |
className
Qualified class name: System.Transactions.CommittableTransaction
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
CommittableTransaction()
Initializes a new instance by invoking the .NET constructor.
|
CommittableTransaction(java.lang.Object instance)
Internal constructor.
|
CommittableTransaction(TimeSpan timeout)
Initializes a new instance by invoking the .NET constructor.
|
CommittableTransaction(TransactionOptions options)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IAsyncResult |
BeginCommit(AsyncCallback asyncCallback,
NetObject asyncState)
Invokes the .NET member BeginCommit.
|
static CommittableTransaction |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into CommittableTransaction, a cast assert is made to check if types are compatible. |
void |
Commit()
Invokes the .NET member Commit.
|
void |
EndCommit(IAsyncResult asyncResult)
Invokes the .NET member EndCommit.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
addTransactionCompleted, Clone, close, DependentClone, Dispose, EnlistDurable, EnlistDurable, EnlistPromotableSinglePhase, EnlistPromotableSinglePhase, EnlistVolatile, EnlistVolatile, getCurrent, getIsolationLevel, GetPromotedToken, getPromoterType, getTransactionInformation, PromoteAndEnlistDurable, removeTransactionCompleted, Rollback, Rollback, setCurrent, SetDistributedTransactionIdentifierpublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public CommittableTransaction()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
OverflowException,
FormatException,
InvalidOperationException,
ArgumentException,
EventSourceException,
ObjectDisposedException,
AbandonedMutexException
java.lang.Throwable - if the .NET constructor failsPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itFormatException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itEventSourceException - if the .NET member raises itObjectDisposedException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itpublic CommittableTransaction(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic CommittableTransaction(TimeSpan timeout) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, InvalidOperationException, ArgumentException, EventSourceException, ObjectDisposedException, AbandonedMutexException
timeout - the argument of type TimeSpanjava.lang.Throwable - if the .NET constructor failsPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itFormatException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itEventSourceException - if the .NET member raises itObjectDisposedException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itpublic CommittableTransaction(TransactionOptions options) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, OverflowException, FormatException, EventSourceException, ObjectDisposedException, AbandonedMutexException
options - the argument of type TransactionOptionsjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOverflowException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itObjectDisposedException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itpublic IAsyncResult BeginCommit(AsyncCallback asyncCallback, NetObject asyncState) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, TransactionException
asyncCallback - the argument of type AsyncCallbackasyncState - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itTransactionException - if the .NET member raises itpublic static CommittableTransaction cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into CommittableTransaction, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedCommittableTransaction instancejava.lang.Throwable - in case of error during cast operationpublic void Commit()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
InvalidOperationException,
ArgumentException,
ArgumentOutOfRangeException,
OutOfMemoryException,
IndexOutOfRangeException,
OverflowException,
FormatException,
EventSourceException,
ArgumentNullException,
ObjectDisposedException,
TransactionException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itTransactionException - if the .NET member raises itpublic void EndCommit(IAsyncResult asyncResult) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, TransactionException
asyncResult - the argument of type IAsyncResultjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itArgumentNullException - if the .NET member raises itTransactionException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class Transactionpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class Transactionpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class Transactionnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class Transactionpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class Transactionpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class Transactioninstance - the new underlying object