|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.bliki.api.creator.WikiDB
public class WikiDB
A simple Apache Derby Database to store the retrieved Wiki contents
Constructor Summary | |
---|---|
WikiDB(java.lang.String directory,
java.lang.String databaseSubdirectoryName)
The Wiki database constructor. |
Method Summary | |
---|---|
void |
insertImage(ImageData imageData)
|
void |
insertTopic(TopicData topic)
|
ImageData |
selectImage(java.lang.String imageName)
Select the image data from the database |
TopicData |
selectTopic(java.lang.String name)
Select the topic data from the database |
void |
setUp()
|
void |
tearDown()
|
void |
updateImage(ImageData imageData)
|
void |
updateTopic(TopicData topic)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WikiDB(java.lang.String directory, java.lang.String databaseSubdirectoryName) throws java.lang.Exception
directory
- the main directory name where the database subdirectory should be
createddatabaseSubdirectoryName
- the subdirectory name where the database files should be stored.
This directory should not exist if you would like to create a
completely new database.
java.lang.Exception
Method Detail |
---|
public void setUp() throws java.lang.Exception
java.lang.Exception
public void tearDown() throws java.lang.Exception
java.lang.Exception
public TopicData selectTopic(java.lang.String name) throws java.lang.Exception
name
- the name of the topic
null
if no data was found
java.lang.Exception
public void insertTopic(TopicData topic) throws java.lang.Exception
java.lang.Exception
public void updateTopic(TopicData topic) throws java.lang.Exception
java.lang.Exception
public ImageData selectImage(java.lang.String imageName) throws java.lang.Exception
imageName
- the name of the image
null
if no data was found
java.lang.Exception
public void insertImage(ImageData imageData) throws java.lang.Exception
java.lang.Exception
public void updateImage(ImageData imageData) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |