com.tivoli.twg.engine
Class TWGDbUtil

java.lang.Object
  extended bycom.tivoli.twg.engine.TWGDbUtil

public class TWGDbUtil
extends java.lang.Object


Constructor Summary
TWGDbUtil()
          Database Utility Class
 
Method Summary
 int compactJetDatabase(java.lang.String odbcDatasource)
          Compact a Jet database
 java.lang.String getBundleString(java.lang.String bundleKey)
          Look up a value in a resource bundle
static void main(java.lang.String[] args)
          This main statement allows running from the command line for debug purposes /
 int removeMsOdbcDataSource(java.lang.String odbcDatasource)
          Remove an MS ODBC User Data Source
 java.lang.String returnErrorMessage()
          If and error message was issued, the translated string will be returned by this method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TWGDbUtil

public TWGDbUtil()
Database Utility Class

Method Detail

compactJetDatabase

public int compactJetDatabase(java.lang.String odbcDatasource)
Compact a Jet database

Returns:
0 if database compacted, otherwise check the errorMessage method

removeMsOdbcDataSource

public int removeMsOdbcDataSource(java.lang.String odbcDatasource)
Remove an MS ODBC User Data Source

Returns:
0 if data source removed, otherwise check the errorMessage method

returnErrorMessage

public java.lang.String returnErrorMessage()
If and error message was issued, the translated string will be returned by this method

Returns:
the string issued by the error handlers

getBundleString

public java.lang.String getBundleString(java.lang.String bundleKey)
Look up a value in a resource bundle

Returns:
the string from the bundle. If not found, returns the empty string.

main

public static void main(java.lang.String[] args)
This main statement allows running from the command line for debug purposes /