On Mon, Jul 25, 2011 at 11:35 AM, Eranda Sooriyabandara
<0704...@gmail.com> wrote:
> Hi devs,
> I am creating a NoSQL datastore component for some NoSQL databases.
> Here I used my own API to generalize all the databases. In my datastore
> there are 4 interfaces as follows(with method signatures),
> 1. SessionFactory - Manage sessions
> 2. Session - Manage Databases
>
> Database createDatabase(String databaseName) throws SessionException;
> Database getDatabase(String databaseName) throws SessionException;
> void deleteDatabase(String databaseName) throws DatabaseNotFoundException,
> SessionException;
>
> 3. Database - Manage Groups
>
> Group createGroup(String groupId);
> Group getGroup(String groupId);
> void deleteGroup(String groupId) throws GroupNotFoundException;
>
> 4. Group - Manage entries (Actual data to be stored)
>
> void addEntry(String key, String value) throws DuplicateEntryException;
> void updateEntry(String key, String value) throws EntryNotFoundException;
> void deleteEntry(String key) throws EntryNotFoundException;
> String getEntry(String key) throws EntryNotFoundException;
>

Do you need an option to read multiple entries, and some ability to
filter (query) ?

-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Reply via email to