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.String
assemblyFullName
Fully assembly qualified name: System.Transactions.Local, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.String
assemblyShortName
Assembly name: System.Transactions.Localstatic java.lang.String
className
Qualified class name: System.Transactions.Transactionstatic JCType
classType
The 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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOAssemblyName
in interfaceISerializable
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOClassName
in interfaceISerializable
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOObjectName
in interfaceISerializable
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Specified by:
getJCOInstance
in interfaceISerializable
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Specified by:
getJCOType
in interfaceISerializable
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Transaction cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoTransaction
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Transaction
instance- 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.Throwable
PlatformNotSupportedException
NotSupportedException
InvalidOperationException
ArgumentException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
TransactionException
-
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.Throwable
NotSupportedException
PlatformNotSupportedException
IndexOutOfRangeException
OutOfMemoryException
InvalidOperationException
ArgumentOutOfRangeException
OverflowException
FormatException
ArgumentException
EventSourceException
ObjectDisposedException
ArgumentNullException
CultureNotFoundException
TransactionException
-
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.Throwable
PlatformNotSupportedException
NotSupportedException
InvalidOperationException
ArgumentException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
TransactionException
RankException
ArrayTypeMismatchException
-
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.Throwable
PlatformNotSupportedException
NotSupportedException
InvalidOperationException
ArgumentException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
TransactionException
-
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.Throwable
PlatformNotSupportedException
NotSupportedException
InvalidOperationException
ArgumentException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
TransactionException
-
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.Throwable
PlatformNotSupportedException
NotSupportedException
InvalidOperationException
ArgumentException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
TransactionException
-
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.Throwable
PlatformNotSupportedException
NotSupportedException
InvalidOperationException
ArgumentException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
TransactionException
-
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.Throwable
PlatformNotSupportedException
NotSupportedException
InvalidOperationException
ArgumentException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
TransactionException
-
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.Throwable
PlatformNotSupportedException
NotSupportedException
InvalidOperationException
ArgumentException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
TransactionException
-
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.Throwable
PlatformNotSupportedException
NotSupportedException
InvalidOperationException
ArgumentException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
TransactionException
-
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.Throwable
PlatformNotSupportedException
NotSupportedException
InvalidOperationException
ArgumentException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
TransactionException
-
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.Throwable
PlatformNotSupportedException
NotSupportedException
InvalidOperationException
ArgumentException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
TransactionException
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in 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
-
-