com.altair.hwm.beans.database
Class HWMStartDBComm

java.lang.Object
  extended by com.altair.hwm.beans.database.HWMStartDBComm

public class HWMStartDBComm
extends java.lang.Object

Title: HWMStartDBComm

Description: This class provides the actual functionality of initializing the database. This can be used by beans that needs the functionality of DBStart bean with some extra functionalities.

Company: Altair Engineering, Inc.


Constructor Summary
HWMStartDBComm(HWMCommMgr hwmCommMgr)
          Constructor.
 
Method Summary
 void Connect(java.lang.String strDBType, java.lang.String strSession, java.lang.String strServer, int nPort, java.lang.String strDBURL)
          Initializes the DM.
 void Connect(java.lang.String strDBType, java.lang.String strSession, java.lang.String strServer, int nPort, java.lang.String strDBURL, java.lang.String strUser, java.lang.String strPwd)
          Initializes the DM.
 void RetrieveDataModel()
          Retrieve the data model
 void ShutdownDBClient()
          Closes the DB using the session name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HWMStartDBComm

public HWMStartDBComm(HWMCommMgr hwmCommMgr)
Constructor.

Parameters:
hwmCommMgr - The communication manager wqhich facilitates the communication with DM server
Method Detail

Connect

public void Connect(java.lang.String strDBType,
                    java.lang.String strSession,
                    java.lang.String strServer,
                    int nPort,
                    java.lang.String strDBURL)
             throws java.lang.Exception
Initializes the DM. Estqblished communication with the DM server

Parameters:
strDBType - The type of DB. One of the DBTYPE_XXX strings from HWMDatabaseInfo class
strSession - Session name
strServer - The server address
nPort - The port number
strDBURL - The URL for the database
Throws:
java.lang.Exception - thrown if the command fails. "getMessage" will give the description of the error that occured

Connect

public void Connect(java.lang.String strDBType,
                    java.lang.String strSession,
                    java.lang.String strServer,
                    int nPort,
                    java.lang.String strDBURL,
                    java.lang.String strUser,
                    java.lang.String strPwd)
             throws java.lang.Exception
Initializes the DM. Estqblished communication with the DM server

Parameters:
strDBType - The type of DB. One of the DBTYPE_XXX strings from HWMDatabaseInfo class
strSession - Session name
strServer - The server address
nPort - The port number
strDBURL - The URL for the database
strUser - The user name (which could be null)
strPwd - The password for the user
Throws:
java.lang.Exception - thrown if the command fails. "getMessage" will give the description of the error that occured

RetrieveDataModel

public void RetrieveDataModel()
                       throws java.lang.Exception
Retrieve the data model

Throws:
java.lang.Exception

ShutdownDBClient

public void ShutdownDBClient()
Closes the DB using the session name