net.anotheria.db.util
Class DBUtil

java.lang.Object
  extended by net.anotheria.db.service.BasePersistenceServiceJDBCImpl
      extended by net.anotheria.db.util.DBUtil

public final class DBUtil
extends BasePersistenceServiceJDBCImpl

Utility with some operations on database.

Author:
Alexandr Bolbat

Field Summary
static String DMD_F_TABLE_NAME
          Database meta data field name for table name field in result set from getTables(...) method.
 
Fields inherited from class net.anotheria.db.service.BasePersistenceServiceJDBCImpl
log
 
Method Summary
static DBUtil getInstance()
          Get DBUtil instance.
static DBUtil getInstance(String configFile)
          Get DBUtil instance configured from file by given file name.
 void removeAllTables()
          Remove all tables from database.
 
Methods inherited from class net.anotheria.db.service.BasePersistenceServiceJDBCImpl
close, close, close, getConnection, init, release, release, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DMD_F_TABLE_NAME

public static final String DMD_F_TABLE_NAME
Database meta data field name for table name field in result set from getTables(...) method.

See Also:
Constant Field Values
Method Detail

getInstance

public static DBUtil getInstance()
Get DBUtil instance.

Returns:
DBUtil

getInstance

public static DBUtil getInstance(String configFile)
Get DBUtil instance configured from file by given file name.

Parameters:
configFile - - file name with database connection configuration
Returns:
DBUtil

removeAllTables

public void removeAllTables()
Remove all tables from database.



Copyright © 2010-2013 anotheria.net. All Rights Reserved.