01: /*
02: * SalomeTMF is a Test Management Framework
03: * Copyright (C) 2005 France Telecom R&D
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation; either
08: * version 2 of the License, or (at your option) any later version.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library; if not, write to the Free Software
17: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18: *
19: * @author Marche Mikael
20: *
21: * Contact: mikael.marche@rd.francetelecom.com
22: */
23:
24: package org.objectweb.salome_tmf.api.sql;
25:
26: import java.rmi.Remote;
27:
28: import org.objectweb.salome_tmf.api.data.ParameterWrapper;
29:
30: public interface ISQLParameter extends Remote {
31: /**
32: * Add parameter in a project
33: * @param idProject : id in Dabase of the project
34: * @param name : name of the parameter
35: * @param description : description of the parameter
36: * @return the id of the parameter in the dadabase
37: * need permission canCreateTest
38: */
39: public int insert(int IdProject, String name, String description)
40: throws Exception;
41:
42: /**
43: * get database id for a parameter identified by name in the project IdProject
44: * @param idProject
45: * @param name
46: * @return the database id of the parameter identified by name in the project IdProject
47: * @throws Exception
48: */
49: public int selectID(int IdProject, String name) throws Exception;
50:
51: /**
52: * Update parameter (identifed by idParameter) description in DataBase
53: * @param idParameter
54: * @param description : the new description of the parameter
55: * @throws Exception
56: * need permission canUpdateTest
57: */
58: public void updateDescription(int idParameter, String description)
59: throws Exception;
60:
61: /**
62: * Delete a parameter in Salome Database, include the suppresion of the parameter
63: * in test, and in action
64: * @param idParameter
65: * @throws Exception
66: * need permission canDeleteTest
67: */
68: public void delete(int idParameter) throws Exception;
69:
70: /**
71: * Get a ParameterWrapper representing the parameter idParameter in the database
72: * @param idParameter
73: * @return
74: * @throws Exception
75: */
76: public ParameterWrapper getParameterWrapper(int idParameter)
77: throws Exception;
78:
79: }
|