|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DataSoup
| Method Summary | |
|---|---|
void |
addIndex(java.lang.String aName,
java.lang.String aProperty)
Adds an index to the soup. |
DataKey |
addObject(java.lang.Object anObject)
Adds the specified object to the soup and returns the key for the new object by which it may be subsequently retrieved. |
DataView |
createView()
Returns an empty data view, suitable for creating new entries in the soup. |
java.util.Collection |
getAllIndices()
Gets a collection of all indices in this soup. |
java.lang.Object |
getObjectByKey(DataKey aKey)
Gets object from data store whose identifier is equal to the specified object. |
DataView |
queryByIndex(java.lang.String anIndexName,
java.lang.Object beginKey,
java.lang.Object endKey)
Queries by the specified pre-generated index, if it exists. |
DataView |
queryByKeys(java.util.Collection aKeyList)
Returns a view containing the objects for the specified keys. |
DataView |
queryByProperty(java.lang.String aPropertyName,
java.lang.Object beginKey,
java.lang.Object endKey)
Generates an index based on the specified property and then executes the query. |
DataView |
queryObjects(java.lang.Object beginKey,
java.lang.Object endKey)
Generates an index based on the values of the objects themselves and then executes the query. |
DataKey |
registerTemporaryObject(java.lang.Object anObject)
Registers an object that may or may not be created later, returning a temporary but uniquely identifiable key. |
void |
removeIndex(java.lang.String aName)
Deletes the specified index from the soup. |
java.lang.Object |
removeObject(DataKey aKey)
Removes the specified object from the soup and returns the removed object as read from the soup (which is the original copy of the object). |
DataView |
reverseQueryByIndex(java.lang.String anIndexName,
java.lang.Object beginKey,
java.lang.Object endKey)
As queryByIndex, but with objects returned in reverse order. |
DataView |
reverseQueryByProperty(java.lang.String aPropertyName,
java.lang.Object beginKey,
java.lang.Object endKey)
As queryByProperty, but with objects returned in reverse order. |
DataView |
reverseQueryObjects(java.lang.Object beginKey,
java.lang.Object endKey)
As queryObjects, but with objects returned in reverse order. |
java.lang.Object |
updateObject(DataKey aKey,
java.lang.Object updatedObject)
Updates the specified object and returns the object as updated. |
| Method Detail |
|---|
DataKey addObject(java.lang.Object anObject)
anObject - Object to be added to soup.
java.lang.Object removeObject(DataKey aKey)
aKey - A key for an object to be removed.
java.lang.Object updateObject(DataKey aKey,
java.lang.Object updatedObject)
aKey - A key for an object to be updated.aKey - The new object for that key.
java.lang.Object getObjectByKey(DataKey aKey)
aKey - A key for an object to be retrieved.
DataKey registerTemporaryObject(java.lang.Object anObject)
anObject - An object to be registered.
void addIndex(java.lang.String aName,
java.lang.String aProperty)
aName - The string identifier for this index.aProperty - The property on which this index will be based.void removeIndex(java.lang.String aName)
aName - The string identifier for the index to be removed.java.util.Collection getAllIndices()
DataView createView()
DataView queryByIndex(java.lang.String anIndexName,
java.lang.Object beginKey,
java.lang.Object endKey)
anIndexName - The index to be queried.beginValue - The beginning value, or null for all values
up to an including the end key.endValue - The ending value, or null for all values
since and including the begin key.
DataView queryByProperty(java.lang.String aPropertyName,
java.lang.Object beginKey,
java.lang.Object endKey)
aPropertyName - The property to be queried. If null,
will query the objects directly with queryObjects().beginValue - The beginning value, or null for all values
up to an including the end key.endValue - The ending value, or null for all values
since and including the begin key.
DataView queryObjects(java.lang.Object beginKey,
java.lang.Object endKey)
beginValue - The beginning value, or null for all values
up to and including the end key.endValue - The ending value, or null for all values
since and including the begin key.
DataView queryByKeys(java.util.Collection aKeyList)
aKeyList - A collection of keys to be placed in the view.
DataView reverseQueryByIndex(java.lang.String anIndexName,
java.lang.Object beginKey,
java.lang.Object endKey)
anIndexName - The index to be queried.beginValue - The beginning value, or null for all values
up to and including the end key.endValue - The ending value, or null for all values
since and including the begin key.
DataView reverseQueryByProperty(java.lang.String aPropertyName,
java.lang.Object beginKey,
java.lang.Object endKey)
aPropertyName - The property to be queried. If null,
will query the objects directly with queryObjects().beginValue - The beginning value, or null for all values
up to and including the end key.endValue - The ending value, or null for all values
since and including the begin key.
DataView reverseQueryObjects(java.lang.Object beginKey,
java.lang.Object endKey)
beginValue - The beginning value, or null for all values
up to and including the end key.endValue - The ending value, or null for all values
since and including the begin key.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||