public class BaseObject
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected DbHelper | _dbHelperThe global DbHelper. | 
| protected java.lang.String | _dbNameThe SQL database name with default. | 
| protected java.lang.String | _driverNameThe _driver name with default. | 
| protected java.lang.String | _hostNameThe host name with default. | 
| protected org.apache.log4j.Logger | _loggerThe _logger. | 
| protected java.lang.String | _passwordStringThe _password string with default. | 
| protected java.util.Properties | _propsloaded from teh properties file | 
| protected java.lang.String | _userNameThe _user name with default. | 
| Constructor and Description | 
|---|
| BaseObject()Instantiates a new base object. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | createDatabase()Create the table that matches this object | 
| java.lang.String | getInfo()Get an information string with the current date. | 
| protected java.sql.ResultSet | runSql(java.lang.String sqlStr)Run sql. | 
protected org.apache.log4j.Logger _logger
protected java.util.Properties _props
protected DbHelper _dbHelper
protected java.lang.String _hostName
protected java.lang.String _dbName
protected java.lang.String _driverName
protected java.lang.String _userName
protected java.lang.String _passwordString
public void createDatabase()
protected java.sql.ResultSet runSql(java.lang.String sqlStr)
                             throws java.lang.Exception
sqlStr - the queryException, - after printing a stack trace.java.lang.Exceptionpublic java.lang.String getInfo()