com.ikokoon.serenity.persistence
Class DataBaseToolkit

java.lang.Object
  extended by 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

Nested Class Summary
static interface DataBaseToolkit.ICriteria
           
 
Constructor Summary
DataBaseToolkit()
           
 
Method Summary
static void clear(IDataBase dataBase)
          Clears the data in the database.
static void dump(IDataBase dataBase, DataBaseToolkit.ICriteria criteria, java.lang.String message)
          Dumps the database to the output stream.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataBaseToolkit

public DataBaseToolkit()
Method Detail

clear

public static void clear(IDataBase dataBase)
Clears the data in the database.

Parameters:
dataBase - the database to truncate

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 dump
criteria - 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.