org.openorb.pss.connector.database

Class DatabaseResource

public class DatabaseResource extends ResourcePOA

This class is a very simple resource. It is only used to received the prepare statement of the 2.P.C. By this way, we will be able to call 'end' on the transaction session.

Author: Jerome Daniel

Constructor Summary
DatabaseResource(TransactionalSession session, Coordinator coordinator)
Constructor
Method Summary
voidcommit()
voidcommit_one_phase()
voidforget()
Voteprepare()
This operation is called in the first phase of the 2.P.C
voidremoveItself()
This operation is used to remove this resource.
voidrollback()

Constructor Detail

DatabaseResource

public DatabaseResource(TransactionalSession session, Coordinator coordinator)
Constructor

Method Detail

commit

public void commit()

commit_one_phase

public void commit_one_phase()

forget

public void forget()

prepare

public Vote prepare()
This operation is called in the first phase of the 2.P.C

removeItself

public void removeItself()
This operation is used to remove this resource. It unregister itself from the POA.

rollback

public void rollback()