public class DatabaseDefinitionStore extends Object
| Constructor and Description |
|---|
DatabaseDefinitionStore(File filePath)
Creates a reader/writer of the database definition file.
|
DatabaseDefinitionStore(String filePath)
Creates a reader/writer of the database definition file.
|
| Modifier and Type | Method and Description |
|---|---|
DatabaseDefinition |
read()
Returns the database definition.
|
void |
write(DatabaseDefinition definition)
Writes the specified database definition to file.
|
public DatabaseDefinitionStore(String filePath)
filePath - location of the definition filepublic DatabaseDefinitionStore(File filePath)
filePath - location of the definition filepublic DatabaseDefinition read() throws IOException
IOException - when I/O exception of some sort has occurred.public void write(DatabaseDefinition definition) throws IOException
definition - database definitionIOException - when I/O exception of some sort has occurred.Copyright © 2015. All rights reserved.