|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Database<P extends PrevalentObject>
An interface that defines the transactional features exposed by the higher level database API.
© Copyright 2008 Sans Pareil Technologies, Inc.
| Method Summary | |
|---|---|
P |
delete(P object)
Delete the specified prevalent object from the prevalent system. |
P |
save(P object)
Save the specified prevalent object to the prevalent system. |
Collection<P> |
search(org.apache.lucene.search.Query query,
org.apache.lucene.search.Filter filter,
int count)
Execute the specified lucene query and return the collection of matching prevalent objects. |
Collection<P> |
search(org.apache.lucene.search.Query query,
int count)
Execute the specified lucene query and return the collection of matching prevalent objects. |
| Methods inherited from interface com.sptci.prevayler.AbstractDatabase |
|---|
count, fetch, fetch, fetch, fetchIntersection, fetchUnion, search |
| Method Detail |
|---|
P save(P object)
throws PrevalentException
object - The prevalent object to be saved in the system.
PrevalentException - If errors are encountered while
adding/updating the object. Errors thrown could indicate constraint
violations.
P delete(P object)
throws PrevalentException
object - The prevalent object to delete.
PrevalentException - If errors are encountered
while deleting the prevalent object.
Collection<P> search(org.apache.lucene.search.Query query,
int count)
throws PrevalentException
query - The lucene query that is to be executed to find matching
prevalent object instances.count - The maximum number to top hits for the search to return.
PrevalentException - If errors are encountered
while reconstituting the prevalent objects being returned.
Collection<P> search(org.apache.lucene.search.Query query,
org.apache.lucene.search.Filter filter,
int count)
throws PrevalentException
query - The lucene query that is to be executed to find matching
prevalent object instances.filter - The filter to apply to restrict the query results.count - The maximum number to top hits for the search to return.
PrevalentException - If errors are encountered
while reconstituting the prevalent objects being returned.
|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||