|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DBHandling
Interface for classes providing basic database handling (drop, create, init).
| Method Summary | |
|---|---|
void |
addDBDefinitionFile(InputStream inputStream)
Adds an input streams containg part of the db definition to use. |
void |
addDBDefinitionFiles(String srcDir,
String listOfFilenames)
Adds db definition files to use. |
void |
createDB()
Creates the database. |
JdbcConnectionDescriptor |
getConnection()
Returns the connection descriptor used by this handling object. |
void |
initDB()
Creates the tables according to the schema files. |
void |
setConnection(JdbcConnectionDescriptor jcd)
Sets the jdbc connection to use. |
void |
setWorkDir(String dir)
Sets the working directory. |
| Method Detail |
|---|
void setWorkDir(String dir)
throws IOException
dir - The directory
IOException - If the directory does not exist or cannot be written/read
void setConnection(JdbcConnectionDescriptor jcd)
throws PlatformException
jcd - The connection to use
PlatformException - If the target database cannot be handledJdbcConnectionDescriptor getConnection()
void addDBDefinitionFiles(String srcDir,
String listOfFilenames)
throws IOException
srcDir - The directory containing the fileslistOfFilenames - The filenames in a comma-separated list
IOException
void addDBDefinitionFile(InputStream inputStream)
throws IOException
schemataStreams - Input streams
IOException
void createDB()
throws PlatformException
PlatformException - If some error occurred
void initDB()
throws PlatformException
PlatformException - If some error occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||