Module graph

Class PersistenceManager

java.lang.Object
de.grogra.util.LockableImpl
de.grogra.persistence.PersistenceManager
All Implemented Interfaces:
Lockable
Direct Known Subclasses:
GraphManager

public abstract class PersistenceManager extends LockableImpl
  • Field Details

    • makeLock

      protected final Object makeLock
  • Constructor Details

  • Method Details

    • initNonlocalTransactionNotifier

      public void initNonlocalTransactionNotifier(Runnable notifier)
    • close

      public void close()
    • createXAApplier

      protected abstract TransactionApplier createXAApplier()
    • createTransaction

      protected abstract Transaction createTransaction(Thread thread)
    • getTransactions

      public final void getTransactions(List<? super Transaction> list)
    • getActiveTransaction

      public final Transaction getActiveTransaction()
    • getTransaction

      public final Transaction getTransaction(boolean create)
    • beginTransaction

      protected void beginTransaction(Transaction t)
    • prepareCompletion

      protected void prepareCompletion(Transaction t, boolean commit)
    • completeTransaction

      protected void completeTransaction(Transaction t, boolean commit)
    • transactionCommitted

      public final void transactionCommitted(Transaction.Data xa, long stamp)
    • localTransactionCommitted

      public final void localTransactionCommitted(Transaction.Key key, long stamp)
    • localTransactionRolledBack

      public final void localTransactionRolledBack(Transaction.Key key, long stamp)
    • getTransactionData

      public final Transaction.Data getTransactionData(Transaction.Key key)
    • getLog

      public final LogStore getLog()
    • getConnection

      public final PersistenceConnection getConnection()
    • getBindings

      public final PersistenceBindings getBindings()
    • getId

      public final short getId()
    • addXAListener

      public final void addXAListener(XAListener l)
    • removeXAListener

      public final void removeXAListener(XAListener l)
    • getStamp

      public int getStamp()
    • transactionApplied

      protected void transactionApplied(Transaction.Data xa, boolean rollback, Transaction t)
    • makePersistent

      public final void makePersistent(Object o, Transaction t)
    • prepareId

      public abstract long prepareId(PersistenceCapable pc)
    • makePersistent

      public final void makePersistent(PersistenceCapable o, long id, Transaction t)
    • makeTransient

      public final void makeTransient(PersistenceCapable o, Transaction t)
    • nextId

      protected final long nextId()
    • idUsed

      protected final void idUsed(long id)
    • makePersistentImpl

      protected abstract void makePersistentImpl(PersistenceCapable o, long id, Transaction t)
    • makeTransientImpl

      protected abstract void makeTransientImpl(PersistenceCapable o, Transaction t)
    • getObject

      public abstract PersistenceCapable getObject(long id)
    • writeExtent

      public abstract void writeExtent(PersistenceOutputStream out) throws IOException
      Throws:
      IOException
    • readExtent

      public abstract void readExtent(PersistenceInputStream in) throws IOException
      Throws:
      IOException
    • allocateBitMark

      public abstract int allocateBitMark(boolean resetOnDispose)
    • disposeBitMark

      public abstract void disposeBitMark(int handle, boolean resetAll)
    • allocateObjectMark

      public abstract int allocateObjectMark(boolean resetOnDispose)
    • disposeObjectMark

      public abstract void disposeObjectMark(int handle, boolean resetAll)
    • undo

      public boolean undo(Transaction t) throws IOException
      Throws:
      IOException