- See Also:
- Constant Field Values
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DBManager
The DBManager is a service, that is used to obtain or create a custom storage for saving a type-safe data. The user of the service is allowed to use it's own instance or to use a global instance of the Database.
| Field Summary | |
|---|---|
static java.lang.String |
MAIN_DB
This is the name of the main DB instance. |
| Method Summary | |
|---|---|
DB |
getCustomDB(java.io.File root)
Retrieves or creates a custom DB in the root directory. |
DB |
getCustomDB(java.lang.String alias)
Retrieves or creates a custom DB implementation. |
DB |
getCustomDB(java.lang.String alias,
java.io.File root)
Retrieves or creates a custom DB in the root directory. |
void |
save()
Deprecated. |
void |
ungetCustomDB(DB dbCustom)
Releases the DB instance. |
void |
ungetCustomDB(java.lang.String alias)
Releases the DB instance mapped to the alias. |
| Field Detail |
|---|
static final java.lang.String MAIN_DB
| Method Detail |
|---|
DB getCustomDB(java.io.File root)
throws java.io.IOException
DB in the root directory.
root must be a valid & existing directory.
root - the root directory where the DB is stored
java.io.IOException - if the DB cannot be created
DB getCustomDB(java.lang.String alias,
java.io.File root)
throws java.io.IOException
DB in the root directory.
root must be a valid & existing directory.
The DB instance is mapped to the alias.
alias - the alias to which the DB instance is mappedroot - the root directory where the DB is stored
java.io.IOException - if the DB cannot be created
DB getCustomDB(java.lang.String alias)
throws java.io.IOException
DB instance is mapped to the alias.
The alias is used as a file name, relative to the DB bundle's
data storage area. If such a directory can not be created, IOException is thrown
alias - the alias used to reference that DB instance
java.io.IOException - if the DB cannot be created
void ungetCustomDB(DB dbCustom)
throws java.io.IOException
DB instance. If no-one uses the DB instance,
this method will close it and discard it.
dbCustom - the DB instance, that will be released
java.io.IOException
void ungetCustomDB(java.lang.String alias)
throws java.io.IOException
DB instance mapped to the alias.
If no-one uses the DB instance, this method will close it and discard it.
alias - the alias used to reference a DB instance
java.io.IOException
void save()
throws java.io.IOException
java.io.IOException - if save operation cannot be performed
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||