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: /**
022: * @author tom
023: *
024: * (c) 2001, 2003 Thomas Cataldo
025: */
026: public interface IDbmJuiDriver {
027:
028: /**
029: * Returns true if the driver will work with the given
030: * sapdb version.
031: *
032: * A driver is allowed to match several SAPDB version.
033: * The DefautDbmjuiDriver returns true here.
034: *
035: * @param version
036: * @return true if the driver can work with the given database version
037: */
038: boolean worksWith(String version);
039:
040: /**
041: * The helper factory will call this method
042: * before calling any of the getXXX methods.
043: *
044: */
045: void init();
046:
047: /**
048: * get an history helper
049: *
050: * @return an history helper
051: */
052: IHistoryHelper getHistoryHelper();
053:
054: /**
055: * get an information helper
056: *
057: * @return an information helper
058: */
059: IInformationHelper getInformationHelper();
060:
061: /**
062: * get a backup helper
063: *
064: * @return a backup helper
065: */
066: IBackupHelper getBackupHelper();
067:
068: /**
069: * get an instance helper
070: *
071: * @return an instance helper
072: */
073: IInstanceHelper getInstanceHelper();
074:
075: /**
076: * get a tuning helper
077: *
078: * @return a tuning helper
079: */
080: ITuningHelper getTuningHelper();
081:
082: /**
083: * get a check helper
084: *
085: * @return a check helper
086: */
087: ICheckHelper getCheckHelper();
088:
089: /**
090: * get a configuration helper
091: *
092: * @return a configuration helper
093: */
094: IConfigurationHelper getConfigurationHelper();
095:
096: /**
097: * get a recovery helper
098: *
099: * @return a recovery helper
100: */
101: IRecoveryHelper getRecoveryHelper();
102: }
|