Package system.transactions
Class Transaction
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.transactions.Transaction
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected,ISerializable
- Direct Known Subclasses:
CommittableTransaction,DependentTransaction,SubordinateTransaction
public class Transaction extends NetObject implements ISerializable, java.lang.AutoCloseable
The base .NET class managing System.Transactions.Transaction, System.Transactions.Local, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Transactions.Transaction
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Transactions.Local, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.StringassemblyShortNameAssembly name: System.Transactions.Localstatic java.lang.StringclassNameQualified class name: System.Transactions.Transactionstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description Transaction()Transaction(java.lang.Object instance)Internal constructor.
-
Method Summary
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.runtime.serialization.ISerializable
GetObjectData
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Transactions.Local, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Transactions.Local- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Transactions.Transaction- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Specified by:
getJCOAssemblyNamein interfaceISerializable- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Specified by:
getJCOClassNamein interfaceISerializable- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Specified by:
getJCOObjectNamein interfaceISerializable- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Specified by:
getJCOInstancein interfaceISerializable- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Specified by:
getJCOTypein interfaceISerializable- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Transaction cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoTransaction, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Transactioninstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
EnlistPromotableSinglePhase
public boolean EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification promotableSinglePhaseNotification, Guid promoterType) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, TransactionException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionInvalidOperationExceptionArgumentExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionOverflowExceptionFormatExceptionEventSourceExceptionArgumentNullExceptionObjectDisposedExceptionTransactionException
-
EnlistPromotableSinglePhase
public boolean EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification promotableSinglePhaseNotification) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, FormatException, ArgumentException, EventSourceException, ObjectDisposedException, ArgumentNullException, CultureNotFoundException, TransactionException
- Throws:
java.lang.ThrowableNotSupportedExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOverflowExceptionFormatExceptionArgumentExceptionEventSourceExceptionObjectDisposedExceptionArgumentNullExceptionCultureNotFoundExceptionTransactionException
-
GetPromotedToken
public byte[] GetPromotedToken() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, TransactionException, RankException, ArrayTypeMismatchException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionInvalidOperationExceptionArgumentExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionOverflowExceptionFormatExceptionEventSourceExceptionArgumentNullExceptionObjectDisposedExceptionTransactionExceptionRankExceptionArrayTypeMismatchException
-
DependentClone
public DependentTransaction DependentClone(DependentCloneOption cloneOption) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, TransactionException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionInvalidOperationExceptionArgumentExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionOverflowExceptionFormatExceptionEventSourceExceptionArgumentNullExceptionObjectDisposedExceptionTransactionException
-
EnlistDurable
public Enlistment EnlistDurable(Guid resourceManagerIdentifier, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, TransactionException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionInvalidOperationExceptionArgumentExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionOverflowExceptionFormatExceptionEventSourceExceptionArgumentNullExceptionObjectDisposedExceptionTransactionException
-
EnlistDurable
public Enlistment EnlistDurable(Guid resourceManagerIdentifier, ISinglePhaseNotification singlePhaseNotification, EnlistmentOptions enlistmentOptions) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, TransactionException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionInvalidOperationExceptionArgumentExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionOverflowExceptionFormatExceptionEventSourceExceptionArgumentNullExceptionObjectDisposedExceptionTransactionException
-
EnlistVolatile
public Enlistment EnlistVolatile(IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, TransactionException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionInvalidOperationExceptionArgumentExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionOverflowExceptionFormatExceptionEventSourceExceptionArgumentNullExceptionObjectDisposedExceptionTransactionException
-
EnlistVolatile
public Enlistment EnlistVolatile(ISinglePhaseNotification singlePhaseNotification, EnlistmentOptions enlistmentOptions) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, TransactionException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionInvalidOperationExceptionArgumentExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionOverflowExceptionFormatExceptionEventSourceExceptionArgumentNullExceptionObjectDisposedExceptionTransactionException
-
PromoteAndEnlistDurable
public Enlistment PromoteAndEnlistDurable(Guid resourceManagerIdentifier, IPromotableSinglePhaseNotification promotableNotification, ISinglePhaseNotification enlistmentNotification, EnlistmentOptions enlistmentOptions) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, TransactionException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionInvalidOperationExceptionArgumentExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionOverflowExceptionFormatExceptionEventSourceExceptionArgumentNullExceptionObjectDisposedExceptionTransactionException
-
Clone
public Transaction Clone() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException
-
Dispose
public void Dispose() throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, FormatException, ArgumentException, EventSourceException
-
Rollback
public void Rollback() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, TransactionException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionInvalidOperationExceptionArgumentExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionOverflowExceptionFormatExceptionEventSourceExceptionArgumentNullExceptionObjectDisposedExceptionTransactionException
-
Rollback
public void Rollback(NetException e) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, TransactionException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionInvalidOperationExceptionArgumentExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionOverflowExceptionFormatExceptionEventSourceExceptionArgumentNullExceptionObjectDisposedExceptionTransactionException
-
SetDistributedTransactionIdentifier
public void SetDistributedTransactionIdentifier(IPromotableSinglePhaseNotification promotableNotification, Guid distributedTransactionIdentifier) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, TransactionException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionInvalidOperationExceptionArgumentExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionOverflowExceptionFormatExceptionEventSourceExceptionArgumentNullExceptionObjectDisposedExceptionTransactionException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getPromoterType
public Guid getPromoterType() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException
-
getIsolationLevel
public IsolationLevel getIsolationLevel() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException
-
getCurrent
public static Transaction getCurrent() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, InvalidOperationException, ArgumentException, NotSupportedException, EventSourceException, ArgumentNullException, CultureNotFoundException
-
setCurrent
public static void setCurrent(Transaction Current) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, InvalidOperationException, ArgumentException, NotSupportedException, EventSourceException, ArgumentNullException, CultureNotFoundException
-
getTransactionInformation
public TransactionInformation getTransactionInformation() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException
-
addTransactionCompleted
public void addTransactionCompleted(TransactionCompletedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeTransactionCompleted
public void removeTransactionCompleted(TransactionCompletedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-