public interface Repository
NTransaction
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the repository.
|
void |
commit()
Commits all changes to the repository.
|
void |
delete(String dirName,
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(Transaction transaction,
File dir)
Initializes the repository.
|
String[] |
list(String prefix)
Gets a list of persistent objects that name corresponds to prefix.
|
byte[] |
load(String dirName,
String name)
Loads the byte array.
|
void |
save(String dirName,
String name,
byte[] content)
Save the corresponding bytes array.
|
void init(Transaction transaction, File dir) throws IOException
IOException
String[] list(String prefix) throws IOException
IOException
void save(String dirName, String name, byte[] content) throws IOException
IOException
byte[] load(String dirName, String name) throws IOException
IOException
void delete(String dirName, String name) throws IOException
IOException
void commit() throws IOException
IOException
void close() throws IOException
IOException
int getNbSavedObjects()
int getNbDeletedObjects()
int getNbBadDeletedObjects()
int getNbLoadedObjects()
Copyright © 2015 ScalAgent D.T.. All Rights Reserved.