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=9.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=9.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 org.mases.jcobridge.JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description Transaction()
Transaction(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTransactionCompleted(TransactionCompletedEventHandler handler)
static Transaction
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoTransaction
, a cast assert is made to check if types are compatible.Transaction
Clone()
void
close()
DependentTransaction
DependentClone(DependentCloneOption cloneOption)
void
Dispose()
Enlistment
EnlistDurable(Guid resourceManagerIdentifier, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions)
Enlistment
EnlistDurable(Guid resourceManagerIdentifier, ISinglePhaseNotification singlePhaseNotification, EnlistmentOptions enlistmentOptions)
boolean
EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification promotableSinglePhaseNotification)
boolean
EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification promotableSinglePhaseNotification, Guid promoterType)
Enlistment
EnlistVolatile(IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions)
Enlistment
EnlistVolatile(ISinglePhaseNotification singlePhaseNotification, EnlistmentOptions enlistmentOptions)
static Transaction
getCurrent()
IsolationLevel
getIsolationLevel()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectorg.mases.jcobridge.JCType
getJCOType()
Returns the instantiated class Typebyte[]
GetPromotedToken()
Guid
getPromoterType()
TransactionInformation
getTransactionInformation()
Enlistment
PromoteAndEnlistDurable(Guid resourceManagerIdentifier, IPromotableSinglePhaseNotification promotableNotification, ISinglePhaseNotification enlistmentNotification, EnlistmentOptions enlistmentOptions)
void
removeTransactionCompleted(TransactionCompletedEventHandler handler)
void
Rollback()
void
Rollback(NetException e)
static void
setCurrent(Transaction Current)
void
SetDistributedTransactionIdentifier(IPromotableSinglePhaseNotification promotableNotification, Guid distributedTransactionIdentifier)
void
setJCOInstance(org.mases.jcobridge.JCObject instance)
-
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=9.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
-
classType
public static org.mases.jcobridge.JCType classType
The type managed from JCOBridge. SeeJCType
-
-
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(org.mases.jcobridge.JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public org.mases.jcobridge.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, ArgumentException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, CultureNotFoundException, InvalidOperationException, TransactionException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
OutOfMemoryException
ArgumentOutOfRangeException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
CultureNotFoundException
InvalidOperationException
TransactionException
-
EnlistPromotableSinglePhase
public boolean EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification promotableSinglePhaseNotification) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ArgumentOutOfRangeException, OverflowException, FormatException, InvalidOperationException, EventSourceException, ObjectDisposedException, ArgumentNullException, CultureNotFoundException, TransactionException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
PlatformNotSupportedException
IndexOutOfRangeException
OutOfMemoryException
ArgumentOutOfRangeException
OverflowException
FormatException
InvalidOperationException
EventSourceException
ObjectDisposedException
ArgumentNullException
CultureNotFoundException
TransactionException
-
GetPromotedToken
public byte[] GetPromotedToken() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, CultureNotFoundException, InvalidOperationException, TransactionException, RankException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
OutOfMemoryException
ArgumentOutOfRangeException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
CultureNotFoundException
InvalidOperationException
TransactionException
RankException
ArrayTypeMismatchException
InvalidCastException
-
DependentClone
public DependentTransaction DependentClone(DependentCloneOption cloneOption) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, CultureNotFoundException, InvalidOperationException, TransactionException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
OutOfMemoryException
ArgumentOutOfRangeException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
CultureNotFoundException
InvalidOperationException
TransactionException
-
EnlistDurable
public Enlistment EnlistDurable(Guid resourceManagerIdentifier, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, CultureNotFoundException, InvalidOperationException, TransactionException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
OutOfMemoryException
ArgumentOutOfRangeException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
CultureNotFoundException
InvalidOperationException
TransactionException
-
EnlistDurable
public Enlistment EnlistDurable(Guid resourceManagerIdentifier, ISinglePhaseNotification singlePhaseNotification, EnlistmentOptions enlistmentOptions) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, CultureNotFoundException, InvalidOperationException, TransactionException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
OutOfMemoryException
ArgumentOutOfRangeException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
CultureNotFoundException
InvalidOperationException
TransactionException
-
EnlistVolatile
public Enlistment EnlistVolatile(IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, CultureNotFoundException, InvalidOperationException, TransactionException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
OutOfMemoryException
ArgumentOutOfRangeException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
CultureNotFoundException
InvalidOperationException
TransactionException
-
EnlistVolatile
public Enlistment EnlistVolatile(ISinglePhaseNotification singlePhaseNotification, EnlistmentOptions enlistmentOptions) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, CultureNotFoundException, InvalidOperationException, TransactionException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
OutOfMemoryException
ArgumentOutOfRangeException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
CultureNotFoundException
InvalidOperationException
TransactionException
-
PromoteAndEnlistDurable
public Enlistment PromoteAndEnlistDurable(Guid resourceManagerIdentifier, IPromotableSinglePhaseNotification promotableNotification, ISinglePhaseNotification enlistmentNotification, EnlistmentOptions enlistmentOptions) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, CultureNotFoundException, InvalidOperationException, TransactionException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
OutOfMemoryException
ArgumentOutOfRangeException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
CultureNotFoundException
InvalidOperationException
TransactionException
-
Clone
public Transaction Clone() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, CultureNotFoundException, InvalidOperationException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
OutOfMemoryException
ArgumentOutOfRangeException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
CultureNotFoundException
InvalidOperationException
-
Dispose
public void Dispose() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ArgumentOutOfRangeException, OverflowException, FormatException, InvalidOperationException, EventSourceException
-
Rollback
public void Rollback() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, InvalidOperationException, ObjectDisposedException, CultureNotFoundException, TransactionException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
OutOfMemoryException
ArgumentOutOfRangeException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
InvalidOperationException
ObjectDisposedException
CultureNotFoundException
TransactionException
-
Rollback
public void Rollback(NetException e) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, InvalidOperationException, ObjectDisposedException, CultureNotFoundException, TransactionException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
OutOfMemoryException
ArgumentOutOfRangeException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
InvalidOperationException
ObjectDisposedException
CultureNotFoundException
TransactionException
-
SetDistributedTransactionIdentifier
public void SetDistributedTransactionIdentifier(IPromotableSinglePhaseNotification promotableNotification, Guid distributedTransactionIdentifier) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException, CultureNotFoundException, InvalidOperationException, TransactionException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
NotSupportedException
ArgumentException
OutOfMemoryException
ArgumentOutOfRangeException
IndexOutOfRangeException
OverflowException
FormatException
EventSourceException
ArgumentNullException
ObjectDisposedException
CultureNotFoundException
InvalidOperationException
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, ArgumentException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException
-
getIsolationLevel
public IsolationLevel getIsolationLevel() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, EventSourceException, ArgumentNullException, ObjectDisposedException
-
getCurrent
public static Transaction getCurrent() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, ArgumentException, EventSourceException, ArgumentNullException, InvalidOperationException, CultureNotFoundException
-
setCurrent
public static void setCurrent(Transaction Current) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, OverflowException, FormatException, ArgumentException, EventSourceException, ArgumentNullException, CultureNotFoundException, InvalidOperationException
-
getTransactionInformation
public TransactionInformation getTransactionInformation() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, OutOfMemoryException, ArgumentOutOfRangeException, 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
-
-