com.opnworks.timesheet.client
Class PersistenceGateway

java.lang.Object
  extended bycom.opnworks.timesheet.client.PersistenceGateway

public class PersistenceGateway
extends java.lang.Object

This class is used as a persistence gateway for the timesheet system. It knows about the persustence layer and is used to initialize and configure it.

Author:
Mirasol OpnWorks

Field Summary
static java.lang.String HIBERNATE_CONNECTION_DRIVER_CLASS
          Description of the Field
static java.lang.String HIBERNATE_CONNECTION_PASSWORD
          Description of the Field
static java.lang.String HIBERNATE_CONNECTION_URL
          Description of the Field
static java.lang.String HIBERNATE_CONNECTION_USERNAME
          Description of the Field
static java.lang.String HIBERNATE_DIALECT
          Description of the Field
 
Method Summary
static PersistenceGateway instance()
          Description of the Method
 boolean isConnected()
          Gets the Connected attribute of the PersistenceGateway object
static boolean isInitialized()
          Return true is the gateway is initilaized
 void redeployEmbeddedDatabaseFiles()
           
 void shutdown()
          Shutdown
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIBERNATE_DIALECT

public static final java.lang.String HIBERNATE_DIALECT
Description of the Field

See Also:
Constant Field Values

HIBERNATE_CONNECTION_DRIVER_CLASS

public static final java.lang.String HIBERNATE_CONNECTION_DRIVER_CLASS
Description of the Field

See Also:
Constant Field Values

HIBERNATE_CONNECTION_USERNAME

public static final java.lang.String HIBERNATE_CONNECTION_USERNAME
Description of the Field

See Also:
Constant Field Values

HIBERNATE_CONNECTION_PASSWORD

public static final java.lang.String HIBERNATE_CONNECTION_PASSWORD
Description of the Field

See Also:
Constant Field Values

HIBERNATE_CONNECTION_URL

public static final java.lang.String HIBERNATE_CONNECTION_URL
Description of the Field

See Also:
Constant Field Values
Method Detail

isConnected

public boolean isConnected()
Gets the Connected attribute of the PersistenceGateway object

Returns:
The Connected value

shutdown

public void shutdown()
              throws org.eclipse.core.runtime.CoreException
Shutdown

Throws:
org.eclipse.core.runtime.CoreException

redeployEmbeddedDatabaseFiles

public void redeployEmbeddedDatabaseFiles()
                                   throws java.io.IOException,
                                          org.eclipse.core.runtime.CoreException
Throws:
java.io.IOException - Description of Exception
org.eclipse.core.runtime.CoreException - Description of Exception

instance

public static PersistenceGateway instance()
Description of the Method

Returns:
Description of the Returned Value

isInitialized

public static boolean isInitialized()
Return true is the gateway is initilaized

Returns:
a boolean