org.hypergraphdb.transaction
Class VanillaTransaction

java.lang.Object
  extended by org.hypergraphdb.transaction.VanillaTransaction
All Implemented Interfaces:
HGTransaction

public class VanillaTransaction
extends java.lang.Object
implements HGTransaction

This is a HGTransaction implementation that only maintains the attribute map. It is for use when transactions are disabled.

Author:
Borislav Iordanov

Constructor Summary
VanillaTransaction()
           
 
Method Summary
 void abort()
           
 void commit()
           
 java.lang.Object getAttribute(java.lang.String name)
           
 java.util.Iterator<java.lang.String> getAttributeNames()
           
 void removeAttribute(java.lang.String name)
           
 void setAttribute(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VanillaTransaction

public VanillaTransaction()
Method Detail

abort

public void abort()
           throws HGTransactionException
Specified by:
abort in interface HGTransaction
Throws:
HGTransactionException

commit

public void commit()
            throws HGTransactionException
Specified by:
commit in interface HGTransaction
Throws:
HGTransactionException

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Specified by:
getAttribute in interface HGTransaction

getAttributeNames

public java.util.Iterator<java.lang.String> getAttributeNames()
Specified by:
getAttributeNames in interface HGTransaction

removeAttribute

public void removeAttribute(java.lang.String name)
Specified by:
removeAttribute in interface HGTransaction

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Specified by:
setAttribute in interface HGTransaction