|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Repository
This interface defines a repository for serializable objects and bytes array.
NTransaction
Method Summary | |
---|---|
void |
close()
Closes the repository. |
void |
commit()
Commits all changes to the repository. |
void |
delete(java.lang.String dirName,
java.lang.String name)
Deletes the corresponding objects in repository. |
int |
getNbBadDeletedObjects()
Returns the number of useless delete operation on repository. |
int |
getNbDeletedObjects()
Returns the number of delete operation on repository. |
int |
getNbLoadedObjects()
Returns the number of load operation from repository. |
int |
getNbSavedObjects()
Returns the number of save operation to repository. |
void |
init(java.io.File dir)
Initializes the repository. |
java.lang.String[] |
list(java.lang.String prefix)
Gets a list of persistent objects that name corresponds to prefix. |
byte[] |
load(java.lang.String dirName,
java.lang.String name)
Loads the byte array. |
void |
save(java.lang.String dirName,
java.lang.String name,
byte[] content)
Save the corresponding bytes array. |
Method Detail |
---|
void init(java.io.File dir) throws java.io.IOException
java.io.IOException
java.lang.String[] list(java.lang.String prefix) throws java.io.IOException
java.io.IOException
void save(java.lang.String dirName, java.lang.String name, byte[] content) throws java.io.IOException
java.io.IOException
byte[] load(java.lang.String dirName, java.lang.String name) throws java.io.IOException
java.io.IOException
void delete(java.lang.String dirName, java.lang.String name) throws java.io.IOException
java.io.IOException
void commit() throws java.io.IOException
java.io.IOException
void close() throws java.io.IOException
java.io.IOException
int getNbSavedObjects()
int getNbDeletedObjects()
int getNbBadDeletedObjects()
int getNbLoadedObjects()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |