org.astrogrid.community.client.database.manager
Class DatabaseManagerCoreDelegate

java.lang.Object
  extended byorg.astrogrid.community.client.service.CommunityServiceCoreDelegate
      extended byorg.astrogrid.community.client.database.manager.DatabaseManagerCoreDelegate
All Implemented Interfaces:
org.astrogrid.community.common.service.CommunityService, CommunityServiceDelegate, org.astrogrid.community.common.database.manager.DatabaseManager, DatabaseManagerDelegate, java.rmi.Remote
Direct Known Subclasses:
DatabaseManagerMockDelegate, DatabaseManagerSoapDelegate

public class DatabaseManagerCoreDelegate
extends CommunityServiceCoreDelegate
implements org.astrogrid.community.common.database.manager.DatabaseManager, DatabaseManagerDelegate

The core delegate code for our DatabaseManager service. This acts as a wrapper for a DatabaseManager service, and handles any RemoteExceptions internally.


Constructor Summary
DatabaseManagerCoreDelegate()
          Public constructor.
 
Method Summary
 boolean checkDatabaseTables()
          Check the database tables.
 java.lang.String getDatabaseConfigResource()
          Get our JDO configuration resource name.
 java.lang.String getDatabaseConfigUrl()
          Get the database configuration URL.
 java.lang.String getDatabaseDescription()
          Get the database engine description.
protected  org.astrogrid.community.common.database.manager.DatabaseManager getDatabaseManager()
          Get a reference to our DatabaseManager service.
 java.lang.String getDatabaseName()
          Get the current database name.
 java.lang.String getDatabaseScriptResource()
          Get the database SQL script name.
 void resetDatabaseTables()
          This method is only availabe through the build and test enviornment, it is NOT available as a web service interface method in the actual release.
protected  void setDatabaseManager(org.astrogrid.community.common.database.manager.DatabaseManager manager)
          Set our our DatabaseManager service.
 
Methods inherited from class org.astrogrid.community.client.service.CommunityServiceCoreDelegate
getCommunityService, getServiceStatus, identifierException, policyException, resourceException, securityException, serviceException, setCommunityService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.astrogrid.community.common.service.CommunityService
getServiceStatus
 
Methods inherited from interface org.astrogrid.community.client.database.manager.DatabaseManagerDelegate
getServiceStatus
 

Constructor Detail

DatabaseManagerCoreDelegate

public DatabaseManagerCoreDelegate()
Public constructor.

Method Detail

getDatabaseManager

protected org.astrogrid.community.common.database.manager.DatabaseManager getDatabaseManager()
Get a reference to our DatabaseManager service.


setDatabaseManager

protected void setDatabaseManager(org.astrogrid.community.common.database.manager.DatabaseManager manager)
Set our our DatabaseManager service.


getDatabaseName

public java.lang.String getDatabaseName()
                                 throws org.astrogrid.community.common.exception.CommunityServiceException
Get the current database name.

Specified by:
getDatabaseName in interface org.astrogrid.community.common.database.manager.DatabaseManager
Throws:
org.astrogrid.community.common.exception.CommunityServiceException - If there is an server error.

getDatabaseConfigResource

public java.lang.String getDatabaseConfigResource()
                                           throws org.astrogrid.community.common.exception.CommunityServiceException
Get our JDO configuration resource name.

Specified by:
getDatabaseConfigResource in interface org.astrogrid.community.common.database.manager.DatabaseManager
Throws:
org.astrogrid.community.common.exception.CommunityServiceException - If there is an server error.

getDatabaseScriptResource

public java.lang.String getDatabaseScriptResource()
                                           throws org.astrogrid.community.common.exception.CommunityServiceException
Get the database SQL script name.

Specified by:
getDatabaseScriptResource in interface org.astrogrid.community.common.database.manager.DatabaseManager
Throws:
org.astrogrid.community.common.exception.CommunityServiceException - If there is an server error.

getDatabaseConfigUrl

public java.lang.String getDatabaseConfigUrl()
                                      throws org.astrogrid.community.common.exception.CommunityServiceException
Get the database configuration URL.

Specified by:
getDatabaseConfigUrl in interface org.astrogrid.community.common.database.manager.DatabaseManager
Throws:
org.astrogrid.community.common.exception.CommunityServiceException - If there is an server error.

getDatabaseDescription

public java.lang.String getDatabaseDescription()
                                        throws org.astrogrid.community.common.exception.CommunityServiceException
Get the database engine description.

Specified by:
getDatabaseDescription in interface org.astrogrid.community.common.database.manager.DatabaseManager
Throws:
org.astrogrid.community.common.exception.CommunityServiceException - If there is an server error.

checkDatabaseTables

public boolean checkDatabaseTables()
                            throws org.astrogrid.community.common.exception.CommunityServiceException
Check the database tables.

Specified by:
checkDatabaseTables in interface org.astrogrid.community.common.database.manager.DatabaseManager
Throws:
org.astrogrid.community.common.exception.CommunityServiceException - If there is an server error.

resetDatabaseTables

public void resetDatabaseTables()
                         throws org.astrogrid.community.common.exception.CommunityServiceException
This method is only availabe through the build and test enviornment, it is NOT available as a web service interface method in the actual release.

Specified by:
resetDatabaseTables in interface org.astrogrid.community.common.database.manager.DatabaseManager
Throws:
org.astrogrid.community.common.exception.CommunityServiceException - If there is an server error.


Copyright © 2002-2007 AstroGrid. All Rights Reserved.