public interface DatabaseMaker
Modifier and Type | Method and Description |
---|---|
boolean |
canOpenForWriting(File name) |
boolean |
canOpenForWriting(String name) |
boolean |
databaseExists(File name) |
boolean |
databaseExists(String name) |
boolean |
databaseIsValid(File name) |
boolean |
databaseIsValid(String name) |
Database |
openDatabase(File name,
String mode)
This should open the specified database.
|
Database |
openDatabase(File name,
String mode,
boolean ignoreInconsistentState)
This should open the specified database.
|
Database |
openDatabase(String name,
String mode)
This should open the specified database.
|
Database |
openDatabase(String name,
String mode,
boolean ignoreInconsistentState)
This should open the specified database.
|
Database openDatabase(String name, String mode) throws IOException
name
- The name for the database (either with our without a file extension).mode
- The mode for opening, either "r" or "rw" or "a".IOException
- if the database was not found or could not be opened or initialized.Database openDatabase(File name, String mode) throws IOException
name
- A File object referring to the Database (either with our without a file extension).mode
- The mode for opening, either "r" or "rw".IOException
- if the database was not found or could not be opened or initialized.Database openDatabase(String name, String mode, boolean ignoreInconsistentState) throws IOException
name
- The name for the database (either with our without a file extension).mode
- The mode for opening, either "r" or "rw" or "a".IOException
- if the database was not found or could not be opened or initialized.Database openDatabase(File name, String mode, boolean ignoreInconsistentState) throws IOException
name
- A File object referring to the Database (either with our without a file extension).mode
- The mode for opening, either "r" or "rw".IOException
- if the database was not found or could not be opened or initialized.boolean databaseExists(String name)
boolean databaseExists(File name)
boolean databaseIsValid(String name)
boolean databaseIsValid(File name)
boolean canOpenForWriting(String name)
boolean canOpenForWriting(File name)