com.ikokoon.serenity.persistence
Class DataBaseToolkit
java.lang.Object
com.ikokoon.serenity.persistence.DataBaseToolkit
public class DataBaseToolkit
- extends java.lang.Object
Just some useful methods to dump the database and clean it.
- Since:
- 09.12.09
- Version:
- 01.00
- Author:
- Michael Couck
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataBaseToolkit
public DataBaseToolkit()
clear
public static void clear(IDataBase dataBase)
- Clears the data in the database.
- Parameters:
dataBase - the database to truncate
copyDataBase
public static void copyDataBase(IDataBase sourceDataBase,
IDataBase targetDataBase)
execute
public static void execute(IDataBase dataBase,
Composite composite,
DataBaseToolkit.Executer executer)
dump
public static void dump(IDataBase dataBase,
DataBaseToolkit.ICriteria criteria,
java.lang.String message)
- Dumps the database to the output stream.
- Parameters:
dataBase - the database to dumpcriteria - the criteria to match if the data for the composite must be written to the output
main
public static void main(java.lang.String[] args)
Copyright © 2010. All Rights Reserved.