|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface for classes providing basic database handling (drop, create, init).
| Method Summary | |
void |
addDBDefinitionFile(java.io.InputStream inputStream)
Adds an input streams containg part of the db definition to use. |
void |
addDBDefinitionFiles(java.lang.String srcDir,
java.lang.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(java.lang.String dir)
Sets the working directory. |
| Method Detail |
public void setWorkDir(java.lang.String dir)
throws java.io.IOException
dir - The directory
java.io.IOException - If the directory does not exist or cannot be written/read
public void setConnection(JdbcConnectionDescriptor jcd)
throws PlatformException
jcd - The connection to use
PlatformException - If the target database cannot be handledpublic JdbcConnectionDescriptor getConnection()
public void addDBDefinitionFiles(java.lang.String srcDir,
java.lang.String listOfFilenames)
throws java.io.IOException
srcDir - The directory containing the fileslistOfFilenames - The filenames in a comma-separated list
java.io.IOException
public void addDBDefinitionFile(java.io.InputStream inputStream)
throws java.io.IOException
java.io.IOException
public void createDB()
throws PlatformException
PlatformException - If some error occurred
public 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 | ||||||||