|
OOoRunner test harness | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--stats.DataBaseOutProducer
Field Summary | |
protected boolean |
m_bDebug
|
protected SQLExecution |
mSqlExec
|
protected Hashtable |
mSqlInput
|
protected Hashtable |
mSqlOutput
|
protected String[] |
mWriteableEntryTypes
|
Constructor Summary | |
DataBaseOutProducer(Hashtable param)
Creates a new instance of DataBaseOutProducer |
Method Summary | |
protected boolean |
executeSQLCommand(String command)
Wrap the command of SQLExecution class for transparency. |
protected boolean |
executeSQLCommand(String command,
boolean mergeOutput)
Wrap the command of SQLExecution class for transparency. |
protected boolean |
findTypeInEntryTree(DescEntry entry,
LogWriter log)
Step recursively through the entry tree: write all entries of the defined types to the database. |
boolean |
initialize(DescEntry entry,
boolean active)
initialization |
protected boolean |
insertEntry(DescEntry entry,
LogWriter log)
Insert this entrry to the database. |
protected abstract boolean |
insertEntry(LogWriter log)
Insert one entr into the database. |
protected boolean |
isWriteableEntryType(DescEntry entry)
Is the entry of the writeable entry type? |
protected abstract boolean |
prepareDataBase(LogWriter log)
Prepare the database: executed once at the beginning. |
void |
println(String msg)
Method to print: empty here |
void |
setWriteableEntryTypes(String[] types)
Set the writeable entry types: for example "method", "interface", etc. |
boolean |
summary(DescEntry entry)
will mostly be used by outproducers to sum up the information, maybe write them to a db |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Hashtable mSqlInput
protected Hashtable mSqlOutput
protected String[] mWriteableEntryTypes
protected SQLExecution mSqlExec
protected boolean m_bDebug
Constructor Detail |
public DataBaseOutProducer(Hashtable param)
param
- The Hashtable with test parametersMethod Detail |
public boolean initialize(DescEntry entry, boolean active)
initialize
in interface LogWriter
public boolean summary(DescEntry entry)
LogWriter
summary
in interface LogWriter
protected boolean findTypeInEntryTree(DescEntry entry, LogWriter log)
entry
- The description entry that is take as rootlog
- The log writerprotected boolean insertEntry(DescEntry entry, LogWriter log)
entry
- The entry to write.log
- The log writer.public void setWriteableEntryTypes(String[] types)
types
- A String array with all types that have to be written.protected boolean isWriteableEntryType(DescEntry entry)
entry
- The entry that is checkedprotected boolean executeSQLCommand(String command, boolean mergeOutput)
protected boolean executeSQLCommand(String command)
public void println(String msg)
println
in interface LogWriter
protected abstract boolean prepareDataBase(LogWriter log)
protected abstract boolean insertEntry(LogWriter log)
|
OOoRunner test harness | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |