|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Set of indexes (Singlevalued and Multivalued) that are all updated
in a single transaction. Every index holds keys and every key in the index
is connected with a value or an ordered/unordered values.
The type of objects that can be stored in the index is resticted
by the Storage.Entrytype
.
Nested Class Summary | |
static class |
Storage.EntryType
Type of values and keys stored in index. |
Method Summary | |
void |
close()
|
void |
commitChanges()
Save all objects changed since this method was last call. |
void |
create(boolean replace,
ObjectResolver resolver)
|
MultivaluedIndex |
createMultivaluedIndex(java.lang.String name,
Storage.EntryType keyType,
Storage.EntryType valueType,
boolean unique)
Create index that hold a set of values for each key. |
MultivaluedOrderedIndex |
createMultivaluedOrderedIndex(java.lang.String name,
Storage.EntryType keyType,
Storage.EntryType valueType,
boolean unique)
Create index that holds sorted set of values for each key. |
SinglevaluedIndex |
createSinglevaluedIndex(java.lang.String name,
Storage.EntryType keyType,
Storage.EntryType valueType)
Create index that holds exactly one value for each key. |
boolean |
delete()
Delete any persistent resources associated with the Storage. |
void |
dropIndex(java.lang.String name)
Delete index. |
boolean |
exists()
|
Index |
getIndex(java.lang.String name)
Retrieve index by name. |
MultivaluedIndex |
getMultivaluedIndex(java.lang.String name)
Retrieve index by name. |
MultivaluedOrderedIndex |
getMultivaluedOrderedIndex(java.lang.String name)
Retrieve index by name. |
java.lang.String |
getName()
|
SinglevaluedIndex |
getPrimaryIndex()
Returns the primary index in this Storage. |
long |
getSerialNumber()
|
SinglevaluedIndex |
getSinglevaluedIndex(java.lang.String name)
Retrieve index by name. |
java.lang.String |
getStorageId()
|
void |
objectStateChanged(java.lang.Object key)
Notify the Storage that state of the object associated with this key was changed. |
void |
objectStateWillChange(java.lang.Object key)
Notify the Storage that state of the object associated with this key will be changed. |
void |
open(boolean createOnNoExist,
ObjectResolver resolver)
|
MOFID |
readMOFID(java.io.InputStream inputStream)
Reads a MOFID from Storage, must be called in the streamable read context. |
void |
rollBackChanges()
Discard all changes since commitChanges() method was last call. |
void |
shutDown()
Performs operations needed on exit. |
void |
writeMOFID(java.io.OutputStream outputStream,
MOFID mofid)
Writes a MOFID into Storage, must be called in the streamable write context. |
Method Detail |
public java.lang.String getName()
public java.lang.String getStorageId()
public long getSerialNumber()
public MOFID readMOFID(java.io.InputStream inputStream) throws StorageException
StorageException
public void writeMOFID(java.io.OutputStream outputStream, MOFID mofid) throws StorageException
StorageException
public SinglevaluedIndex getPrimaryIndex() throws StorageException
StorageException
public boolean exists() throws StorageException
StorageException
public boolean delete() throws StorageException
StorageException
public void create(boolean replace, ObjectResolver resolver) throws StorageException
StorageException
public void open(boolean createOnNoExist, ObjectResolver resolver) throws StorageException
StorageException
public void close() throws StorageException
StorageException
public SinglevaluedIndex createSinglevaluedIndex(java.lang.String name, Storage.EntryType keyType, Storage.EntryType valueType) throws StorageException
name
- name of the indexkeyType
- type of keys in the indexvalueType
- type of values in the index (any type except STREAMABLE)
StorageException
public MultivaluedOrderedIndex createMultivaluedOrderedIndex(java.lang.String name, Storage.EntryType keyType, Storage.EntryType valueType, boolean unique) throws StorageException
name
- name of the indexkeyType
- type of keys in the indexvalueType
- type of values in the index (any type except STREAMABLE)unique
- true if values associated with one key do not contain duplicates
StorageException
public MultivaluedIndex createMultivaluedIndex(java.lang.String name, Storage.EntryType keyType, Storage.EntryType valueType, boolean unique) throws StorageException
name
- name of the indexkeyType
- type of keys in the indexvalueType
- type of values in the index (any type except STREAMABLE)unique
- true if values associated with one key do not contain duplicates
StorageException
public Index getIndex(java.lang.String name) throws StorageException
name
- name of the index
StorageException
public SinglevaluedIndex getSinglevaluedIndex(java.lang.String name) throws StorageException
name
- name of the index
StorageException
public MultivaluedIndex getMultivaluedIndex(java.lang.String name) throws StorageException
name
- name of the index
StorageException
public MultivaluedOrderedIndex getMultivaluedOrderedIndex(java.lang.String name) throws StorageException
name
- name of the index
StorageException
public void dropIndex(java.lang.String name) throws StorageException
name
- name of the index
StorageException
public void objectStateWillChange(java.lang.Object key) throws StorageException
objectStateChanged(java.lang.Object)
)
is supposed to be precedesed by this notification.
key
- key of the object that will be changed
StorageException
public void objectStateChanged(java.lang.Object key) throws StorageException
key
- key of the object that was changed and must be saved
StorageException
public void commitChanges() throws StorageException
StorageException
public void rollBackChanges() throws StorageException
StorageException
public void shutDown() throws StorageException
StorageException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |