de.uplanet.server.transaction
Interface ITransaction


@Scriptable
public interface ITransaction

Interface for transactions managed by the transaction manager.

Version:
$Revision: 76946 $

Method Summary
 void commit()
          Commit Transaction
 boolean delistResource(java.sql.Connection p_conn)
          Convencience method for delisting JDBC connections.
 boolean delistResource(ITransactionResource p_res)
          Removes a transaction resource from this transaction.
 void end()
          End Transaction
 boolean enlistResource(java.sql.Connection p_conn)
          Convencience method for enlisting JDBC connections.
 boolean enlistResource(ITransactionResource p_res)
          Adds a transaction resource to this transaction.
 boolean isRollbackOnly()
          Get the end mode for this transaction.
 void rollback()
          Rollback Transaction
 void setRollbackOnly()
          Sets the end mode for this transaction.
 

Method Detail

end

void end()
         throws java.lang.Exception
End Transaction

Throws:
java.lang.Exception

commit

void commit()
            throws java.lang.Exception
Commit Transaction

Throws:
java.lang.Exception

rollback

void rollback()
              throws java.lang.Exception
Rollback Transaction

Throws:
java.lang.Exception

setRollbackOnly

void setRollbackOnly()
Sets the end mode for this transaction. If true, a rollback is performed on calling end().


isRollbackOnly

boolean isRollbackOnly()
Get the end mode for this transaction.

Returns:
The end mode.

enlistResource

boolean enlistResource(ITransactionResource p_res)
Adds a transaction resource to this transaction.

Parameters:
p_res - transaction resource
Returns:
true, if enlisting is successfull, otherwise false

delistResource

boolean delistResource(ITransactionResource p_res)
Removes a transaction resource from this transaction.

Parameters:
p_res - transaction resource
Returns:
true, if delisting is successfull, otherwise false

enlistResource

boolean enlistResource(java.sql.Connection p_conn)
Convencience method for enlisting JDBC connections.

Parameters:
p_conn - connection to enlist
Returns:
true, if enlisting is successfull, otherwise false

delistResource

boolean delistResource(java.sql.Connection p_conn)
Convencience method for delisting JDBC connections.

Parameters:
p_conn - connection to delist
Returns:
true, if delisting is successfull, otherwise false


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.