001: /*
002: * SalomeTMF is a Test Management Framework
003: * Copyright (C) 2005 France Telecom R&D
004: *
005: * This library is free software; you can redistribute it and/or
006: * modify it under the terms of the GNU Lesser General Public
007: * License as published by the Free Software Foundation; either
008: * version 2 of the License, or (at your option) any later version.
009: *
010: * This library is distributed in the hope that it will be useful,
011: * but WITHOUT ANY WARRANTY; without even the implied warranty of
012: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
013: * Lesser General Public License for more details.
014: *
015: * You should have received a copy of the GNU Lesser General Public
016: * License along with this library; if not, write to the Free Software
017: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
018: *
019: * @author Fayçal SOUGRATI
020: *
021: * Contact: mikael.marche@rd.francetelecom.com
022: */
023:
024: package org.objectweb.salome_tmf.api.api2ihm;
025:
026: import java.util.Properties;
027:
028: import org.objectweb.salome_tmf.api.ApiConstants;
029: import org.objectweb.salome_tmf.api.api2db.DataBase;
030: import org.objectweb.salome_tmf.api.api2ihm.adminVT.AdminVTDelete;
031: import org.objectweb.salome_tmf.api.api2ihm.adminVT.AdminVTDeleteImpl;
032: import org.objectweb.salome_tmf.api.api2ihm.adminVT.AdminVTInsert;
033: import org.objectweb.salome_tmf.api.api2ihm.adminVT.AdminVTInsertImpl;
034: import org.objectweb.salome_tmf.api.api2ihm.adminVT.AdminVTSelect;
035: import org.objectweb.salome_tmf.api.api2ihm.adminVT.AdminVTSelectImpl;
036: import org.objectweb.salome_tmf.api.api2ihm.adminVT.AdminVTUpdate;
037: import org.objectweb.salome_tmf.api.api2ihm.adminVT.AdminVTUpdateImpl;
038:
039: /**
040: * Classe constituant le point d'entrée sur les fonctions appartenant à l'aire fonctionnelle "Administration de SalomeTMF"
041: */
042: public class AdminVT implements ApiConstants {
043:
044: /**
045: * Pointeur sur la classe contenant les traitement relatifs aux requetes de suppression
046: */
047: AdminVTDelete myAdminVTDelete = null;
048:
049: /**
050: * Pointeur sur la classe contenant les traitement relatifs aux requetes d'insertion
051: */
052: AdminVTInsert myAdminVTInsert = null;
053:
054: /**
055: * Pointeur sur la classe contenant les traitement relatifs aux requetes de selection
056: */
057: AdminVTSelect myAdminVTSelect = null;
058:
059: /**
060: * Pointeur sur la classe contenant les traitement relatifs aux requetes de mise a jour
061: */
062: AdminVTUpdate myAdminVTUpdate = null;
063:
064: /**
065: * Constructeur
066: * @param db BdD
067: */
068: public AdminVT(DataBase db) {
069: // Initialisation du fichier "properties"
070: Properties prop = Utile
071: .getPropertiesFile(ADMIN_VT_STMTS_FILE_PATH);
072:
073: // Initialisation des pointeurs sur les sous classes
074: myAdminVTDelete = new AdminVTDeleteImpl(db, prop);
075: myAdminVTInsert = new AdminVTInsertImpl(db, prop);
076: myAdminVTSelect = new AdminVTSelectImpl(db, prop);
077: myAdminVTUpdate = new AdminVTUpdateImpl(db, prop);
078: //org.objectweb.salome_tmf.api.Api.getInstanceOfBugzillaAPI().init("adminVT");
079: }
080:
081: /**
082: * Accesseur sur le champs "myAdminVTDelete"
083: * @return Instance de la classe contenant les fonctions de suppression de la BdD
084: */
085: public AdminVTDelete getAdminVTDelete() {
086: return myAdminVTDelete;
087: }
088:
089: /**
090: * Accesseur sur le champs "myAdminVTInsert"
091: * @return Instance de la classe contenant les fonctions d'insertion dans la BdD
092: */
093: public AdminVTInsert getAdminVTInsert() {
094: return myAdminVTInsert;
095: }
096:
097: /**
098: * Accesseur sur le champs "myAdminVTSelect"
099: * @return Instance de la classe contenant les fonctions de selection de la BdD
100: */
101: public AdminVTSelect getAdminVTSelect() {
102: return myAdminVTSelect;
103: }
104:
105: /**
106: * Accesseur sur le champs "myAdminVTUpdate"
107: * @return Instance de la classe contenant les fonctions de mise à jour de la BdD
108: */
109: public AdminVTUpdate getAdminVTUpdate() {
110: return myAdminVTUpdate;
111: }
112:
113: }
|