001: /*
002: * Created on May 2, 2003
003: *
004: * Dbmjui is free software; you can redistribute it and/or
005: * modify it under the terms of the GNU General Public License version 2 as
006: * published by the Free Software Foundation.
007: *
008: * Dbmjui is distributed in the hope that it will be useful,
009: * but WITHOUT ANY WARRANTY; without even the implied warranty of
010: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
011: * General Public License for more details.
012: *
013: * You should have received a copy of the GNU General Public
014: * License along with dbmjui; see the file COPYING. If not,
015: * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
016: * Boston, MA 02111-1307, USA.
017: *
018: */
019: package fr.aliacom.dbmjui.driver;
020:
021: import fr.aliacom.dbmjui.components.backup.BackupHelper;
022: import fr.aliacom.dbmjui.components.check.CheckHelper;
023: import fr.aliacom.dbmjui.components.configuration.ConfigurationHelper;
024: import fr.aliacom.dbmjui.components.information.HistoryHelper;
025: import fr.aliacom.dbmjui.components.information.InformationHelper;
026: import fr.aliacom.dbmjui.components.instance.InstanceHelper;
027: import fr.aliacom.dbmjui.components.recovery.RecoveryHelper;
028: import fr.aliacom.dbmjui.components.tuning.TuningHelper;
029:
030: /**
031: * @author tom
032: *
033: * (c) 2001, 2003 Thomas Cataldo
034: */
035: public class DefaultDbmJuiDriver implements IDbmJuiDriver {
036:
037: private IHistoryHelper historyHelper;
038: private IInformationHelper informationHelper;
039: private IBackupHelper backupHelper;
040: private IInstanceHelper instanceHelper;
041: private ITuningHelper tuningHelper;
042: private ICheckHelper checkHelper;
043: private IConfigurationHelper configurationHelper;
044: private IRecoveryHelper recoveryHelper;
045:
046: /**
047: * @see fr.aliacom.dbmjui.driver.IDbmJuiDriver#worksWith(java.lang.String)
048: */
049: public boolean worksWith(String version) {
050: return true;
051: }
052:
053: /**
054: * @see fr.aliacom.dbmjui.driver.IDbmJuiDriver#init()
055: */
056: public void init() {
057: historyHelper = new HistoryHelper();
058: informationHelper = new InformationHelper();
059: backupHelper = new BackupHelper();
060: instanceHelper = new InstanceHelper();
061: tuningHelper = new TuningHelper();
062: checkHelper = new CheckHelper();
063: configurationHelper = new ConfigurationHelper();
064: recoveryHelper = new RecoveryHelper();
065: }
066:
067: /**
068: * @see fr.aliacom.dbmjui.driver.IDbmJuiDriver#getHistoryHelper()
069: */
070: public IHistoryHelper getHistoryHelper() {
071: return historyHelper;
072: }
073:
074: /**
075: * @see fr.aliacom.dbmjui.driver.IDbmJuiDriver#getInformationHelper()
076: */
077: public IInformationHelper getInformationHelper() {
078: return informationHelper;
079: }
080:
081: /**
082: * @see fr.aliacom.dbmjui.driver.IDbmJuiDriver#getBackupHelper()
083: */
084: public IBackupHelper getBackupHelper() {
085: return backupHelper;
086: }
087:
088: /**
089: * @see fr.aliacom.dbmjui.driver.IDbmJuiDriver#getCheckHelper()
090: */
091: public ICheckHelper getCheckHelper() {
092: return checkHelper;
093: }
094:
095: /**
096: * @see fr.aliacom.dbmjui.driver.IDbmJuiDriver#getConfigurationHelper()
097: */
098: public IConfigurationHelper getConfigurationHelper() {
099: return configurationHelper;
100: }
101:
102: /**
103: * @see fr.aliacom.dbmjui.driver.IDbmJuiDriver#getInstanceHelper()
104: */
105: public IInstanceHelper getInstanceHelper() {
106: return instanceHelper;
107: }
108:
109: /**
110: * @see fr.aliacom.dbmjui.driver.IDbmJuiDriver#getTuningHelper()
111: */
112: public ITuningHelper getTuningHelper() {
113: return tuningHelper;
114: }
115:
116: /**
117: * @see fr.aliacom.dbmjui.driver.IDbmJuiDriver#getRecoveryHelper()
118: */
119: public IRecoveryHelper getRecoveryHelper() {
120: return recoveryHelper;
121: }
122:
123: }
|