|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StorageSystem
Abstraction of an Entity storage system.
Created: 27.06.2007 23:02:21
| Method Summary | ||
|---|---|---|
void |
close()
Closes the database. |
|
void |
flush()
Assures that all data that has been store(Entity)d, is send to the target system. |
|
java.lang.String |
getId()
Returns a name that identifies the database |
|
|
query(java.lang.String selector,
Context context)
Creates an Iterable for repetitive iteration through the results of the specified query. |
|
TypedIterable<Entity> |
queryEntities(java.lang.String type,
java.lang.String selector,
Context context)
Creates an iterator that provides all entities of given type. |
|
|
queryEntityIds(java.lang.String entityName,
java.lang.String selector,
Context context)
Queries for entity ids |
|
void |
store(Entity entity)
Persists a new entity. |
|
void |
update(Entity entity)
Updates an existing entity. |
|
| Methods inherited from interface org.databene.model.data.DescriptorProvider |
|---|
getTypeDescriptor, getTypeDescriptors |
| Method Detail |
|---|
java.lang.String getId()
getId in interface DescriptorProvider
TypedIterable<Entity> queryEntities(java.lang.String type,
java.lang.String selector,
Context context)
<T> TypedIterable<T> queryEntityIds(java.lang.String entityName,
java.lang.String selector,
Context context)
<T> TypedIterable<T> query(java.lang.String selector,
Context context)
void store(Entity entity)
void update(Entity entity)
void flush()
store(Entity)d, is send to the target system.
flush in interface java.io.Flushablevoid close()
close in interface java.io.Closeable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||