Uses of Class
org.netbeans.mdr.persistence.StorageException

Packages that use StorageException
org.netbeans.mdr.persistence   
org.netbeans.mdr.persistence.btreeimpl.btreeindex Together, the btreestorage and btreeindex packages provide the btree storage implementation for the NetBeans meta-data repository. 
org.netbeans.mdr.persistence.btreeimpl.btreestorage Together, the btreestorage and btreeindex packages provide the btree storage implementation for the NetBeans meta-data repository. 
 

Uses of StorageException in org.netbeans.mdr.persistence
 

Subclasses of StorageException in org.netbeans.mdr.persistence
 class StorageBadRequestException
          This is thrown when an error caused by an invalid request from another layer occurs in the storage layer.
 class StorageIOException
          This is thrown when an IO error occurs in the storage layer.
 class StoragePersistentDataException
          This is thrown when an error caused by invalid persistent data occurs in the storage layer.
 class StorageTransientDataException
          This is thrown when an error caused by invalid in-memory data occurs in the storage layer.
 

Methods in org.netbeans.mdr.persistence that throw StorageException
 java.lang.Object ObjectResolver.resolve(java.lang.String storageID, java.lang.Object key)
          Resolves object specified by storage id and key.
 boolean SinglevaluedIndex.put(java.lang.Object key, java.lang.Object value)
          Associates the specified value with the specified key in this index.
 void SinglevaluedIndex.replace(java.lang.Object key, java.lang.Object value)
          Replaces the original value associated with the specified key in this index with new value.
 java.lang.Object SinglevaluedIndex.get(java.lang.Object key)
          Returns the value to which this index maps the specified key.
 java.lang.Object SinglevaluedIndex.getObject(java.lang.Object key, SinglevaluedIndex repos)
          Like get, but if the index contains keys, this returns the object corresponding to the key
 java.lang.Object SinglevaluedIndex.getIfExists(java.lang.Object key)
          Returns the value to which this index maps the specified key or null if there is no value for this key.
 java.lang.Object SinglevaluedIndex.getObjectIfExists(java.lang.Object key, SinglevaluedIndex repos)
          Like getIfExists, but if the index contains keys, this returns the object corresponding to the key
 java.util.Collection SinglevaluedIndex.values()
          Returns a collection view of the values contained in this index.
 java.util.Collection SinglevaluedIndex.queryByKeyPrefix(java.lang.Object prefix, SinglevaluedIndex repos)
          Returns a collection view of Map.Entry key-value pairs in the index, where key matches the queried prefix.
 java.util.Collection MultivaluedIndex.getItems(java.lang.Object key)
          Returns a collection view of the values associated in the index with specified key.
 java.util.Collection MultivaluedIndex.getObjects(java.lang.Object key, SinglevaluedIndex repos)
          Like getItems, but if the index contains keys, this returns the objects corresponding to the key
 boolean MultivaluedIndex.isUnique()
          If true, the collection of values is contrained to hold no more than one of any value.
 boolean MultivaluedIndex.remove(java.lang.Object key, java.lang.Object value)
          Removes the first occurrence of the specified element in the list of values associated with the specified key.
 java.util.Collection MultivaluedIndex.queryByKeyPrefix(java.lang.Object prefix, SinglevaluedIndex repos)
          Returns a collection of Map.Entry key-value pairs in the index, where key matches the queried prefix.
 Storage StorageFactory.createStorage(java.util.Map properties)
          Creates instance of class that implements Storage interface.
 MOFID StorageFactory.createNullMOFID()
          Creates a NULL MOFID in the format used by this Storage implementation
 MOFID Storage.readMOFID(java.io.InputStream inputStream)
          Reads a MOFID from Storage, must be called in the streamable read context.
 void Storage.writeMOFID(java.io.OutputStream outputStream, MOFID mofid)
          Writes a MOFID into Storage, must be called in the streamable write context.
 SinglevaluedIndex Storage.getPrimaryIndex()
          Returns the primary index in this Storage.
 boolean Storage.exists()
           
 boolean Storage.delete()
          Delete any persistent resources associated with the Storage.
 void Storage.create(boolean replace, ObjectResolver resolver)
           
 void Storage.open(boolean createOnNoExist, ObjectResolver resolver)
           
 void Storage.close()
           
 SinglevaluedIndex Storage.createSinglevaluedIndex(java.lang.String name, Storage.EntryType keyType, Storage.EntryType valueType)
          Create index that holds exactly one value for each key.
 MultivaluedOrderedIndex Storage.createMultivaluedOrderedIndex(java.lang.String name, Storage.EntryType keyType, Storage.EntryType valueType, boolean unique)
          Create index that holds sorted set of values for each key.
 MultivaluedIndex Storage.createMultivaluedIndex(java.lang.String name, Storage.EntryType keyType, Storage.EntryType valueType, boolean unique)
          Create index that hold a set of values for each key.
 Index Storage.getIndex(java.lang.String name)
          Retrieve index by name.
 SinglevaluedIndex Storage.getSinglevaluedIndex(java.lang.String name)
          Retrieve index by name.
 MultivaluedIndex Storage.getMultivaluedIndex(java.lang.String name)
          Retrieve index by name.
 MultivaluedOrderedIndex Storage.getMultivaluedOrderedIndex(java.lang.String name)
          Retrieve index by name.
 void Storage.dropIndex(java.lang.String name)
          Delete index.
 void Storage.objectStateWillChange(java.lang.Object key)
          Notify the Storage that state of the object associated with this key will be changed.
 void Storage.objectStateChanged(java.lang.Object key)
          Notify the Storage that state of the object associated with this key was changed.
 void Storage.commitChanges()
          Save all objects changed since this method was last call.
 void Storage.rollBackChanges()
          Discard all changes since commitChanges() method was last call.
 void Storage.shutDown()
          Performs operations needed on exit.
 java.lang.String Index.getName()
          Returns the unique name of the index in the Storage.
 Storage.EntryType Index.getValueType()
          Returns the type of values indexed by this index.
 Storage.EntryType Index.getKeyType()
          Returns the type of keys in index.
 java.util.Set Index.keySet()
          Returns a set view of the keys contained in this index.
 void Index.add(java.lang.Object key, java.lang.Object value)
          Adds the specified value to values associated in this index with the specified key.
 boolean Index.remove(java.lang.Object key)
          Removes all values assosiated in the index with specified key.
 void Streamable.write(java.io.OutputStream outputStream)
          This method will be used to move changed object from storage cache to the persistent part of storage.
 void Streamable.read(java.io.InputStream inputStream)
          Restore state of the Storable object from the stream.
 java.util.List MultivaluedOrderedIndex.getItemsOrdered(java.lang.Object key)
          Returns a list view of the values assosiated in the index with specified key.
 java.util.Collection MultivaluedOrderedIndex.getObjectsOrdered(java.lang.Object key, SinglevaluedIndex repos)
          Like getItemsOrdered, but if the index contains keys, this returns the objects corresponding to the key
 void MultivaluedOrderedIndex.add(java.lang.Object key, int index, java.lang.Object value)
          Inserts the specified element at the specified position in the list of values associated with the specified key.
 boolean MultivaluedOrderedIndex.remove(java.lang.Object key, int index)
          Removes the element at the specified position in the list of values associated with the specified key.
 void MultivaluedOrderedIndex.replace(java.lang.Object key, int index, java.lang.Object element)
          Replaces the element at the specified position in the list of values associated with the specified key with the specified element.
 

Constructors in org.netbeans.mdr.persistence with parameters of type StorageException
RuntimeStorageException(StorageException err)
          this constructs a RuntimeStorageException from an StorageException
 

Uses of StorageException in org.netbeans.mdr.persistence.btreeimpl.btreeindex
 

Methods in org.netbeans.mdr.persistence.btreeimpl.btreeindex that throw StorageException
 void ShrinkablePage.init(Btree btree, byte[] pageId, byte[] pageBuffer, boolean isNew)
          Initialize a newly-instantiated or recycled ShrinkablePage.
protected  void SinglevaluedBtree.init()
           
 java.lang.Object SinglevaluedBtree.getIfExists(java.lang.Object key)
          Return a single object associated with the specified key.
 java.lang.Object SinglevaluedBtree.getObjectIfExists(java.lang.Object key, SinglevaluedIndex repos)
          Like getIfExists, but if the index contains keys, this returns the object corresponding to the key
 java.lang.Object SinglevaluedBtree.get(java.lang.Object key)
          Return a single object associated with the specified key.
 java.lang.Object SinglevaluedBtree.getObject(java.lang.Object key, SinglevaluedIndex repos)
          Like get, but if the index contains keys, this returns the object corresponding to the key
 boolean SinglevaluedBtree.put(java.lang.Object key, java.lang.Object data)
          Add a new entry to the index.
 void SinglevaluedBtree.replace(java.lang.Object key, java.lang.Object data)
          Replace an index entry.
 java.util.Collection SinglevaluedBtree.values()
          Return a collection view of this btree's values.
 java.util.Collection SinglevaluedBtree.queryByKeyPrefix(java.lang.Object prefix, SinglevaluedIndex primaryIndex)
          Returns BtreeEntryImpl key-value pairs, where the key contains the queried prefix.
 java.util.List MultivaluedOrderedBtree.getItemsOrdered(java.lang.Object key)
          Returns a list view of the values associated in the index with specified key.
 java.util.Collection MultivaluedOrderedBtree.getObjectsOrdered(java.lang.Object key, SinglevaluedIndex repos)
          Like getItemsOrdered, but if the index contains keys, this returns the objects corresponding to the key
 void MultivaluedOrderedBtree.add(java.lang.Object key, int index, java.lang.Object data)
          Inserts the specified element at the specified position in the list of values associated with the specified key.
 void MultivaluedOrderedBtree.add(java.lang.Object key, java.lang.Object data)
          Add an item to the end of the list of values for this key.
 boolean MultivaluedOrderedBtree.remove(java.lang.Object key, int index)
          Removes the element at the specified position in the list of values associated with the specified key.
 void MultivaluedOrderedBtree.replace(java.lang.Object key, int index, java.lang.Object data)
          Replaces the element at the specified position in the list of values associated with the specified key with the specified element.
 BtreePage BtreeCacheSource.getPage(byte[] pageId, Btree btree)
           
 BigKeyPage BtreeCacheSource.newBigKeyPage(Btree btree)
           
 BtreePage BtreeCacheSource.newPage(Btree btree)
           
 void BtreeCacheSource.dirtyPage(BtreePage page)
           
 BtreePage BtreeCacheSource.getRootPage(Btree btree)
           
protected  void MultivaluedBtree.init()
           
 java.util.Collection MultivaluedBtree.getItems(java.lang.Object key)
          Returns a collection view of the values associated in the index with specified key.
 java.util.Collection MultivaluedBtree.getObjects(java.lang.Object key, SinglevaluedIndex repos)
          Like getItems, but if the values in the index are a key type, returns the objects associated with the keys.
 boolean MultivaluedBtree.remove(java.lang.Object key, java.lang.Object value)
          Removes the first occurrence of the specified element in the list of values associated with the specified key.
 void MultivaluedBtree.add(java.lang.Object key, java.lang.Object data)
           
 boolean MultivaluedBtree.remove(java.lang.Object key)
           
 java.util.Collection MultivaluedBtree.queryByKeyPrefix(java.lang.Object prefix, SinglevaluedIndex primaryIndex)
          Returns list of BtreeEntryImpl key-value pairs, where key contains the queried prefix.
 void BtreePage.init(Btree btree, byte[] pageId, byte[] pageBuffer, boolean isNew)
          Initialize a newly-instantiated or recycled BtreePage.
 void BtreePage.read(java.io.InputStream in)
          (Streamable Interface) Populate the pageBuffer from the InputStream.
 void BtreePage.write(java.io.OutputStream out)
          (Streamable Interface) Write this page to the OutputStream.
 void BtreePage.put(byte[] key, byte[] data, byte operation, int index)
          Add an entry to the btree, navigating down from this page.
 void BtreePage.put(byte[] key, byte[] data, byte operation, int index, org.netbeans.mdr.persistence.btreeimpl.btreeindex.SearchResult resultPosition)
          Add an entry to the btree, navigating down from this page.
 byte[] BtreePage.get(byte[] key)
          Retrieves the value associated with the given key.
 org.netbeans.mdr.persistence.btreeimpl.btreeindex.SearchResult BtreePage.getLocation(byte[] key)
          Finds the first entry associated with the given key, navigating down the btree from this page.
 boolean BtreePage.remove(byte[] key)
          Remove all entries from the btree that match the given key.
 boolean BtreePage.remove(byte[] key, byte[] data)
          Remove the first entry encountered that matches the key/value pair.
 boolean BtreePage.remove(byte[] key, int index)
          Remove the item matching the key at the indexed position.
protected  org.netbeans.mdr.persistence.btreeimpl.btreeindex.BtreePage.BtreeEntry BtreePage.split(org.netbeans.mdr.persistence.btreeimpl.btreeindex.BtreePage.BtreeEntry entry, int entryNum, org.netbeans.mdr.persistence.btreeimpl.btreeindex.SearchResult resultPosition)
           
 void BtreePage.dumpPage(java.io.PrintWriter out)
          Print BtreePage contents for debugging.
 void BtreePage.dumpPageEntries(java.io.PrintWriter out)
          Print BtreePage entries for debugging.
 void BtreePage.dumpTree(java.io.PrintWriter out)
          Print tree starting from this page for debugging.
 int BtreePage.consistencyCheck(java.io.PrintWriter out)
           
 void BigKeyPage.init(Btree btree, byte[] pageId, byte[] pageBuffer, boolean isNew)
          Initialize a newly-instantiated or recycled BigKeyPage.
 void BigKeyPage.dumpPageEntries(java.io.PrintWriter out)
           
protected  void Btree.init()
           
 void Btree.write(java.io.OutputStream outputStream)
          Write the state of this Btree to the OutputStream.
 void Btree.read(java.io.InputStream inputStream)
          Populate this Btree from the InputStream.
 java.util.Set Btree.keySet()
          Returns a set view of the keys contained in this index.
 void Btree.add(java.lang.Object key, java.lang.Object data)
          Add a new entry to the index.
 boolean Btree.remove(java.lang.Object key)
          Remove all entries associated with the specified key.
protected  void Btree.btreePut(java.lang.Object key, java.lang.Object data, byte operation, int index)
           
 void Btree.dumpTree(java.io.PrintWriter out)
          Print the contents of the btree for debugging purposes.
 int Btree.consistencyCheck(java.io.PrintWriter out)
          Check the btree for consistency, for testing and debugging.
 void VarKeyPage.init(Btree btree, byte[] pageId, byte[] pageBuffer, boolean isNew)
          Initialize a newly-instantiated or recycled VarKeyPage.
 BtreePage BtreePageSource.getPage(byte[] pageId, Btree btree)
          Retrieve a page.
 BtreePage BtreePageSource.newPage(Btree btree)
          Creates a new page and returns it.
 BigKeyPage BtreePageSource.newBigKeyPage(Btree btree)
          Creates a new oversize-key page and returns it.
 BtreePage BtreePageSource.getRootPage(Btree btree)
          Retrieve the root page for this btree.
 void BtreePageSource.unpinPage(BigKeyPage page)
          Notify the BtreePageSource that the caller is done using this page.
 void BtreePageSource.dirtyPage(BtreePage page)
          Notify the BtreePageSource that the caller is going to modify this page.
 void VarRecordPage.init(Btree btree, byte[] pageId, byte[] pageBuffer, boolean isNew)
           
 void FixedKeyPage.init(Btree btree, byte[] pageId, byte[] pageBuffer, boolean isNew)
          Initialize a newly-instantiated or recycled FixedKeyPage.
 

Constructors in org.netbeans.mdr.persistence.btreeimpl.btreeindex that throw StorageException
SinglevaluedBtree(java.lang.String name, Storage.EntryType keyType, Storage.EntryType dataType, BtreePageSource pageSource)
           
MultivaluedOrderedBtree(java.lang.String name, Storage.EntryType keyType, Storage.EntryType dataType, boolean uniqueValues, BtreePageSource pageSource)
           
BtreeCacheSource(MDRCache cache, int pageSize, BtreeStorage storage)
           
MultivaluedBtree(java.lang.String name, Storage.EntryType keyType, Storage.EntryType dataType, boolean uniqueValues, BtreePageSource pageSource)
           
Btree(java.lang.String name, Storage.EntryType keyType, Storage.EntryType dataType, BtreePageSource pageSource)
           
 

Uses of StorageException in org.netbeans.mdr.persistence.btreeimpl.btreestorage
 

Methods in org.netbeans.mdr.persistence.btreeimpl.btreestorage that throw StorageException
 boolean BtreeStorage.delete()
          delete the btree repository.
 void BtreeStorage.create(boolean replace, ObjectResolver resolver)
          Create btree repository
 void BtreeStorage.open(boolean createIfNoExist, ObjectResolver resolver)
          Open a btree MDR
 void BtreeStorage.close()
          close the btree repository.
 SinglevaluedIndex BtreeStorage.getPrimaryIndex()
          Return the primary index (the BtreeDatabase)
 SinglevaluedIndex BtreeStorage.createSinglevaluedIndex(java.lang.String name, Storage.EntryType keyType, Storage.EntryType valueType)
          Create index that holds exactly one value for each key.
 MultivaluedOrderedIndex BtreeStorage.createMultivaluedOrderedIndex(java.lang.String name, Storage.EntryType keyType, Storage.EntryType valueType, boolean unique)
          Create index that holds sorted set of values for each key.
 MultivaluedIndex BtreeStorage.createMultivaluedIndex(java.lang.String name, Storage.EntryType keyType, Storage.EntryType valueType, boolean unique)
          Create index that hold a set of values for each key.
 Index BtreeStorage.getIndex(java.lang.String name)
          Retrieve index by name.
 SinglevaluedIndex BtreeStorage.getSinglevaluedIndex(java.lang.String name)
          Retrieve index by name.
 MultivaluedIndex BtreeStorage.getMultivaluedIndex(java.lang.String name)
          Retrieve index by name.
 MultivaluedOrderedIndex BtreeStorage.getMultivaluedOrderedIndex(java.lang.String name)
          Retrieve index by name.
 void BtreeStorage.dropIndex(java.lang.String name)
          Delete index.
 void BtreeStorage.objectStateWillChange(java.lang.Object key)
          Notify the Storage that state of the object will be changed.
 void BtreeStorage.objectStateChanged(java.lang.Object key)
          Notify the Storage that state of the object was changed.
 void BtreeStorage.commitChanges()
          Save all objects changed since this method was last call.
 void BtreeStorage.rollBackChanges()
          Discard all changes since commitChanges() method was last called.
 void BtreeStorage.shutDown()
          Shutdowns btree databes (i.e.
 void BtreeStorage.writeMOFID(java.io.OutputStream outputStream, MOFID mofId)
           
 void BtreeStorage.writeMOFIDData(java.io.OutputStream out, MOFID mofid)
           
 byte[] BtreeStorage.getMOFIDData(MOFID mofid)
           
 MOFID BtreeStorage.readMOFID(java.io.InputStream inputStream)
           
 MOFID BtreeStorage.readMOFIDData(java.io.InputStream in)
           
 int BtreeStorage.storageIdToNumber(java.lang.String storageId)
          Maps an external storage prefix to integer.
 java.lang.String BtreeStorage.numberToStorageId(int number)
          Resolves external storage number coded by an integer.
 java.lang.Object BtreeStorage.resolveObject(MOFID key)
          Delegates resolving of external mof ids on the object resolver.
 MOFID MofidIndex.get(java.lang.String name)
          get a MOFID by its name.
 void MofidIndex.add(java.lang.String name, MOFID id)
          Add a name-MOFID pair to the MofidIndex.
protected  void MofidIndex.writeObjectToStream(java.lang.Object obj, java.io.DataOutputStream strm)
          write object to stream.
protected  java.lang.Object MofidIndex.readObjectFromStream(java.io.DataInputStream strm)
          read object from stream.
 void CachedPage.setWritable()
          Make this page writable.
 void CachedPage.unpin()
          client calls this when it is done with the page
 void MDRCache.OverflowHandler.cacheThreshholdReached(MDRCache cache, int size)
          Notify handler that the cache has reached its threshhold
 BigKeyPage BtreeMDRSource.newBigKeyPage(Btree btree)
           
 BtreePage BtreeMDRSource.newPage(Btree btree)
           
 BtreePage BtreeMDRSource.getPage(byte[] pageId, Btree btree)
           
 BtreePage BtreeMDRSource.getRootPage(Btree btree)
           
 void BtreeMDRSource.dirtyPage(BtreePage page)
           
 int CounterIndex.get(java.lang.String name)
          get an integer by its name.
 java.lang.Integer CounterIndex.getIf(java.lang.String name)
          get an integer by its name.
 int CounterIndex.add(java.lang.String name)
          Add a name-MOFID pair to the MofidIndex.
 void CounterIndex.write(java.io.DataOutputStream dstrm)
           
 void CounterIndex.read(java.io.DataInputStream dstrm)
          read from a DataOutputStream
protected  void CounterIndex.writeObjectToStream(java.lang.Object obj, java.io.DataOutputStream strm)
          write object to stream.
protected  java.lang.Object CounterIndex.readObjectFromStream(java.io.DataInputStream strm)
          read object from stream.
 void MDRCache.put(java.lang.Object m, java.lang.Object o)
          add a new object to the cache
 void MDRCache.replace(java.lang.Object m, java.lang.Object o)
          replace an object in the cache
 void MDRCache.setNew(java.lang.Object key)
          mark that the object with the given MOF ID is new
 void MDRCache.setDirty(java.lang.Object key)
          mark that the object with the given MOF ID is dirty
 void FileCache.NotifyOnCommit.prepareToCommit()
          a callback method called before the cache commits.
 void BtreeFileSource.prepareToCommit()
          Prepares all cached modified pages to be written out.
 BtreePage BtreeFileSource.getRootPage(Btree btree)
          Return the root page if it already exists, otherwise create it.
 BtreePage BtreeFileSource.getPage(byte[] pageId, Btree btree)
          Get a BtreePage by its pageId.
 BtreePage BtreeFileSource.newPage(Btree btree)
          Returns a newly allocated btree page.
 BigKeyPage BtreeFileSource.newBigKeyPage(Btree btree)
          Returns a newly allocated BigKeyPage.
 void BtreeFileSource.unpinPage(BigKeyPage page)
           
 void BtreeFileSource.dirtyPage(BtreePage page)
          Notifies the btree that the caller is going to modify this page.
 void BtreeDatabase.compress()
          Compress repository.
 void BtreeDatabase.cacheThreshholdReached(MDRCache cach, int size)
          cache has reached threshhold
 void BtreeDatabase.commitChanges()
          Commits changes to transaction cache, if cache treshold is reached, flushes cache to disk.
 void BtreeDatabase.shutDown()
          Called on exit, commited data cached in transaction cache need to be written to disk.
 void BtreeDatabase.saveChanges()
          save all changes to disk without comitting
 void BtreeDatabase.rollbackChanges()
          roll back all changes
 boolean BtreeDatabase.remove(java.lang.Object key)
          Deletes a repository record
 boolean BtreeDatabase.remove(MOFID mKey)
          Deletes a repository record based on a MOFID
 void BtreeDatabase.add(java.lang.Object key, java.lang.Object value)
          Adds a repository record, throwing an exception if it already exists
 void BtreeDatabase.add(MOFID mKey, java.lang.Object value)
          Adds a repository record, throwing an exception if it already exists
 void BtreeDatabase.replace(java.lang.Object key, java.lang.Object value)
          Replaces the original value associated with the specified key in this index with new value.
 void BtreeDatabase.replace(MOFID mKey, java.lang.Object value)
          Replaces the original value associated with the specified key in this index with new value.
 boolean BtreeDatabase.put(java.lang.Object key, java.lang.Object value)
          Adds or replaces a repository record
 java.lang.Object BtreeDatabase.getIfExists(java.lang.Object key)
          Gets a record from the repository.
 java.lang.Object BtreeDatabase.getObjectIfExists(java.lang.Object key, SinglevaluedIndex dummy)
          Like getIfExists, since we don't return keys
 java.lang.Object BtreeDatabase.getIfExists(MOFID mKey)
          Gets a record from the repository.
 java.lang.Object BtreeDatabase.get(java.lang.Object key)
          Gets a record from the repository.
 java.lang.Object BtreeDatabase.getObject(java.lang.Object key, SinglevaluedIndex dummy)
          Like get, since we don't return keys
 java.lang.Object BtreeDatabase.get(MOFID mKey)
          Gets a record from the repository.
 void BtreeDatabase.objectStateChanged(java.lang.Object key)
          Mark that the object has changed, and so needs to be saved on commit
 void BtreeDatabase.objectStateChanged(MOFID mKey)
          Mark that the object has changed, and so needs to be saved on commit
 java.lang.String[] BtreeDatabase.listIndexes()
          List all index names
 java.util.Set BtreeDatabase.keySet()
          Returns a set view of the keys contained in this index.
 java.util.Collection BtreeDatabase.values()
          Returns a collection view of the values contained in the repository.
 int BtreeDatabase.checkConsistency(java.io.PrintWriter strm)
          Check consistency of btree database
 void FileCache.abort()
          close all files without comitting
 void FileCache.close()
          commit all changes and close all cached files
 void FileCache.commit()
          commit all changes
 void FileCache.unpin(CachedPage[] pages)
          unpin a set of pages.
 void FileCache.unpin(CachedPage page)
          unpin a page.
 CachedPage[] FileCache.getPages(int fileidx, int first, int size)
          Get the pages which contain the desired bytes from the file This implicitly pins these pages.
 CachedPage FileCache.getPage(int fileidx, int pageNum)
          Get the single page at the desired offset into the file This implicitly pins that pages.
 void FileCache.setWritable(CachedPage page)
          Make the specified page writable.
 void FileCache.setWritable(CachedPage[] pages)
          Make the specified pages writable.
 void FileHeader.addFiles(java.lang.String[] names, int size, boolean replace)
          Create new files with a given header
static FileHeader FileHeader.createFiles(java.lang.String[] names, int size, boolean replace)
          Create a set of files with a common header
 Storage BtreeFactory.createStorage(java.util.Map properties)
          Creates BtreeStorage
protected  void CachedPageInputStream.finalize()
          if the stream was never closed, unpin the pages now
 

Constructors in org.netbeans.mdr.persistence.btreeimpl.btreestorage that throw StorageException
BtreeMDRSource(BtreeStorage storage, int pageSize)
           
BtreeFileSource(int fileId, FileCache fileCache, int pageSize, boolean isNew, MofidGenerator mGen, BtreeStorage storage)
          Constructor for a BtreeFileSource from a new or existing index file.
FileCache(int pgSize, int numBufs, java.lang.String[] names, java.lang.String logName)
          Create the cache and open the files.
 



Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.