net.sf.farrago.catalog
Class FarragoTransientStorage
java.lang.Object
org.netbeans.mdr.persistence.memoryimpl.StorageImpl
net.sf.farrago.catalog.FarragoTransientStorage
- All Implemented Interfaces:
- org.netbeans.mdr.persistence.Storage
class FarragoTransientStorage
- extends org.netbeans.mdr.persistence.memoryimpl.StorageImpl
FarragoTransientStorage provides storage for transient MDR objects. Adapted
from org.netbeans.mdr.persistence.memoryimpl.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/catalog/FarragoTransientStorage.java#12 $
- Author:
- John V. Sichi
Nested classes/interfaces inherited from interface org.netbeans.mdr.persistence.Storage |
org.netbeans.mdr.persistence.Storage.EntryType |
Method Summary |
private void |
addIndex(String name,
org.netbeans.mdr.persistence.Index index)
|
void |
close()
|
void |
commitChanges()
|
void |
create(boolean replace,
org.netbeans.mdr.persistence.ObjectResolver resolver)
|
org.netbeans.mdr.persistence.MultivaluedIndex |
createMultivaluedIndex(String name,
org.netbeans.mdr.persistence.Storage.EntryType keyType,
org.netbeans.mdr.persistence.Storage.EntryType valueType,
boolean unique)
|
org.netbeans.mdr.persistence.MultivaluedOrderedIndex |
createMultivaluedOrderedIndex(String name,
org.netbeans.mdr.persistence.Storage.EntryType keyType,
org.netbeans.mdr.persistence.Storage.EntryType valueType,
boolean unique)
|
private void |
createPrimaryIndex()
|
org.netbeans.mdr.persistence.SinglevaluedIndex |
createSinglevaluedIndex(String name,
org.netbeans.mdr.persistence.Storage.EntryType keyType,
org.netbeans.mdr.persistence.Storage.EntryType valueType)
|
boolean |
delete()
|
void |
dropIndex(String name)
|
boolean |
exists()
|
org.netbeans.mdr.persistence.Index |
getIndex(String name)
|
org.netbeans.mdr.persistence.MultivaluedIndex |
getMultivaluedIndex(String name)
|
org.netbeans.mdr.persistence.MultivaluedOrderedIndex |
getMultivaluedOrderedIndex(String name)
|
org.netbeans.mdr.persistence.SinglevaluedIndex |
getPrimaryIndex()
|
org.netbeans.mdr.persistence.SinglevaluedIndex |
getSinglevaluedIndex(String name)
|
void |
objectStateChanged(Object key)
|
void |
objectStateWillChange(Object key)
|
void |
open(boolean createOnNoExist,
org.netbeans.mdr.persistence.ObjectResolver resolver)
|
void |
rollBackChanges()
|
void |
shutDown()
|
Methods inherited from class org.netbeans.mdr.persistence.memoryimpl.StorageImpl |
getName, getSerialNumber, getStorageId, readMOFID, writeMOFID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ignoreCommit
static boolean ignoreCommit
maps
private final HashMap maps
primaryIndex
private FarragoTransientStorage.PVIndex primaryIndex
newIndexes
private Set newIndexes
removedIndexes
private HashMap removedIndexes
FarragoTransientStorage
FarragoTransientStorage()
create
public void create(boolean replace,
org.netbeans.mdr.persistence.ObjectResolver resolver)
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
create
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
create
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
close
public void close()
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
close
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
close
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
delete
public boolean delete()
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
delete
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
delete
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
exists
public boolean exists()
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
exists
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
exists
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
open
public void open(boolean createOnNoExist,
org.netbeans.mdr.persistence.ObjectResolver resolver)
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
open
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
open
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
objectStateWillChange
public void objectStateWillChange(Object key)
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
objectStateWillChange
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
objectStateWillChange
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
objectStateChanged
public void objectStateChanged(Object key)
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
objectStateChanged
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
objectStateChanged
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
rollBackChanges
public void rollBackChanges()
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
rollBackChanges
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
rollBackChanges
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
shutDown
public void shutDown()
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
shutDown
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
shutDown
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
commitChanges
public void commitChanges()
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
commitChanges
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
commitChanges
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
getSinglevaluedIndex
public org.netbeans.mdr.persistence.SinglevaluedIndex getSinglevaluedIndex(String name)
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
getSinglevaluedIndex
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
getSinglevaluedIndex
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
getMultivaluedIndex
public org.netbeans.mdr.persistence.MultivaluedIndex getMultivaluedIndex(String name)
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
getMultivaluedIndex
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
getMultivaluedIndex
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
getMultivaluedOrderedIndex
public org.netbeans.mdr.persistence.MultivaluedOrderedIndex getMultivaluedOrderedIndex(String name)
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
getMultivaluedOrderedIndex
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
getMultivaluedOrderedIndex
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
dropIndex
public void dropIndex(String name)
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
dropIndex
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
dropIndex
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
addIndex
private void addIndex(String name,
org.netbeans.mdr.persistence.Index index)
throws org.netbeans.mdr.persistence.StorageException
- Throws:
org.netbeans.mdr.persistence.StorageException
createSinglevaluedIndex
public org.netbeans.mdr.persistence.SinglevaluedIndex createSinglevaluedIndex(String name,
org.netbeans.mdr.persistence.Storage.EntryType keyType,
org.netbeans.mdr.persistence.Storage.EntryType valueType)
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
createSinglevaluedIndex
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
createSinglevaluedIndex
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
createMultivaluedOrderedIndex
public org.netbeans.mdr.persistence.MultivaluedOrderedIndex createMultivaluedOrderedIndex(String name,
org.netbeans.mdr.persistence.Storage.EntryType keyType,
org.netbeans.mdr.persistence.Storage.EntryType valueType,
boolean unique)
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
createMultivaluedOrderedIndex
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
createMultivaluedOrderedIndex
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
createMultivaluedIndex
public org.netbeans.mdr.persistence.MultivaluedIndex createMultivaluedIndex(String name,
org.netbeans.mdr.persistence.Storage.EntryType keyType,
org.netbeans.mdr.persistence.Storage.EntryType valueType,
boolean unique)
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
createMultivaluedIndex
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
createMultivaluedIndex
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
getPrimaryIndex
public org.netbeans.mdr.persistence.SinglevaluedIndex getPrimaryIndex()
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
getPrimaryIndex
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
getPrimaryIndex
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException
createPrimaryIndex
private void createPrimaryIndex()
throws org.netbeans.mdr.persistence.StorageException
- Throws:
org.netbeans.mdr.persistence.StorageException
getIndex
public org.netbeans.mdr.persistence.Index getIndex(String name)
throws org.netbeans.mdr.persistence.StorageException
- Specified by:
getIndex
in interface org.netbeans.mdr.persistence.Storage
- Overrides:
getIndex
in class org.netbeans.mdr.persistence.memoryimpl.StorageImpl
- Throws:
org.netbeans.mdr.persistence.StorageException