Package org.dizitart.no2.store
Class StoreCatalog
java.lang.Object
org.dizitart.no2.store.StoreCatalog
The nitrite store catalog containing the name of all collections,
repositories and keyed-repositories.
- Since:
- 4.0
- Author:
- Anindya Chatterjee
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a set of all collection names in the Nitrite database.Returns a set of all keyed-repository names in the Nitrite database.Returns a set of all repository names in the Nitrite database.booleanChecks if the store catalog contains an entry with the given name.voidRemoves the entry from the catalog specified by a name.voidwriteCollectionEntry(String name) Writes a new entry for a collection with the given name to the store catalog.voidWrites a keyed repository entry to the store catalog.voidwriteRepositoryEntry(String name) Writes a repository entry with the given name to the store catalog.
-
Constructor Details
-
StoreCatalog
Instantiates a newStoreCatalog.- Parameters:
nitriteStore- the nitrite store
-
-
Method Details
-
hasEntry
Checks if the store catalog contains an entry with the given name.- Parameters:
name- the name- Returns:
- `true` if the store catalog contains an entry with the given name; `false` otherwise
-
writeCollectionEntry
Writes a new entry for a collection with the given name to the store catalog.- Parameters:
name- the name of the collection to add to the catalog
-
writeRepositoryEntry
Writes a repository entry with the given name to the store catalog.- Parameters:
name- the name of the repository to be added to the catalog
-
writeKeyedRepositoryEntry
Writes a keyed repository entry to the store catalog.- Parameters:
name- the name of the keyed repository to be added
-
getCollectionNames
Returns a set of all collection names in the Nitrite database.- Returns:
- a set of all collection names in the Nitrite database
-
getRepositoryNames
Returns a set of all repository names in the Nitrite database.- Returns:
- a set of all repository names in the Nitrite database
-
getKeyedRepositoryNames
Returns a set of all keyed-repository names in the Nitrite database.- Returns:
- a set of all keyed-repository names in the Nitrite database
-
remove
Removes the entry from the catalog specified by a name.- Parameters:
name- the name
-