edu.iastate.metnet.db
Class Environment

java.lang.Object
  extended by edu.iastate.metnet.db.Environment

public class Environment
extends java.lang.Object

set up the global environment, like host, database name and other global variable

Author:
Jie Li

Method Summary
 java.lang.String getServer()
          get the current host of the database
static Environment getSharedInstance()
          get the shared instance
 java.sql.Statement getStatement()
          the global sql statement
 void readConfigureFile()
          read the configuration file?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSharedInstance

public static Environment getSharedInstance()
get the shared instance

Returns:
the global environment

getServer

public java.lang.String getServer()
get the current host of the database

Returns:
the current host of the database

getStatement

public java.sql.Statement getStatement()
the global sql statement

Returns:

readConfigureFile

public void readConfigureFile()
read the configuration file?