|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ImageDB
an interface for an image database
| Method Summary | |
|---|---|
boolean |
contains(ImageHolder ih)
determines whether an ImageHolder with the id of the given ImageHolder resides in the database |
boolean |
delete(ImageHolder ih)
deletes the given ImageHolder from the database; optional operation. |
Collection<ImageHolder> |
getImageHolders(Filter<ImageHolder> filter,
ImageHolder.Field... fields)
retrieves a collection of ImageHolder objects; note that the returned ImageHolder objects may not contain more than the ID, initially. |
ImageHolder |
insert(ImageHolder ih)
inserts the image holder information to the database. |
int |
numberOfImageHolders()
returns the total number of ImageHolder objects in the database |
ImageHolder |
retrieve(ImageHolder ih,
ImageHolder.Field... fields)
loads the specified fields from the database into the given ImageHolder and returns the same. |
void |
store(ImageHolder ih,
ImageHolder.Field... fields)
updates the specified ImageHolder fields in the database based on the given object; the entry must exist before calling this method. |
| Method Detail |
|---|
ImageHolder insert(ImageHolder ih)
throws DatabaseException
DatabaseExceptionImageHolder.isRetrieved(ImageHolder.Field)
void store(ImageHolder ih,
ImageHolder.Field... fields)
throws DatabaseException
DatabaseExceptionImageHolder.isRetrieved(ImageHolder.Field)
ImageHolder retrieve(ImageHolder ih,
ImageHolder.Field... fields)
throws DatabaseException
DatabaseExceptionImageHolder.isRetrieved(ImageHolder.Field)
boolean contains(ImageHolder ih)
throws DatabaseException
DatabaseException
int numberOfImageHolders()
throws DatabaseException
DatabaseException
Collection<ImageHolder> getImageHolders(Filter<ImageHolder> filter,
ImageHolder.Field... fields)
throws DatabaseException
isRetrieved(ImageHolder.Field) on the ImageHolder object.
filter - limits the returned collection to those ImageHolders that are accepted by the
filter; null is allowed (then, all ImageHolder objects are returned)fields - defines what fields are pre-initialized, before the filter may see it
- other than the id; if no fields are given, no other fields are loaded
(this semantic is different from retrieve
DatabaseExceptionImageHolder.isRetrieved(ImageHolder.Field),
retrieve(ImageHolder, ImageHolder.Field...)
boolean delete(ImageHolder ih)
throws DatabaseException,
UnsupportedOperationException
DatabaseException
UnsupportedOperationException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||