Interface ParticipantStore

  • All Superinterfaces:
    BaseStore, TxLog
    All Known Subinterfaces:
    ObjectStoreAPI
    All Known Implementing Classes:
    ObjectStore, ParticipantStoreProxy

    public interface ParticipantStore
    extends TxLog
    Transactional participants MUST use this type of ObjectStore. It allows them to be driven through 2PC.
    Since:
    JTS 1.0.
    Version:
    $Id: ObjectStore.java 2342 2006-03-30 13:06:17Z $
    Author:
    Mark Little (mark@arjuna.com)
    • Method Detail

      • commit_state

        boolean commit_state​(Uid u,
                             java.lang.String tn)
                      throws ObjectStoreException
        Commit the object's state in the object store.
        Parameters:
        u - The object to work on.
        tn - The type of the object to work on.
        Returns:
        true if no errors occurred, false otherwise.
        Throws:
        ObjectStoreException
      • remove_uncommitted

        boolean remove_uncommitted​(Uid u,
                                   java.lang.String tn)
                            throws ObjectStoreException
        Remove the object's uncommitted state.
        Parameters:
        u - The object to work on.
        tn - The type of the object to work on.
        Returns:
        true if no errors occurred, false otherwise.
        Throws:
        ObjectStoreException
      • write_uncommitted

        boolean write_uncommitted​(Uid u,
                                  java.lang.String tn,
                                  OutputObjectState buff)
                           throws ObjectStoreException
        Write a copy of the object's uncommitted state.
        Parameters:
        u - The object to work on.
        tn - The type of the object to work on.
        buff - The state to write.
        Returns:
        true if no errors occurred, false otherwise.
        Throws:
        ObjectStoreException
      • fullCommitNeeded

        boolean fullCommitNeeded()