01: package org.objectweb.salome_tmf.api.sql;
02:
03: import java.rmi.Remote;
04:
05: import org.objectweb.salome_tmf.api.data.ConnectionWrapper;
06:
07: public interface ISQLSession extends Remote {
08:
09: /**
10: * Insert a session on table SESSION
11: * @param project
12: * @param login
13: * @throws Exception
14: */
15: public int addSession(String project, String login)
16: throws Exception;
17:
18: /**
19: * Delete a session id in table SESSION
20: * @param id
21: * @throws Exception
22: */
23: public void deleteSession(int id) throws Exception;
24:
25: /**
26: * Delete all session in table SESSION
27: * @throws Exception
28: */
29: public void deleteAllSession() throws Exception;
30:
31: /**
32: * Get an Array of ConnectionWrapper representing all session in the databse (table SESSION)
33: * @return
34: * @throws Exception
35: */
36: public ConnectionWrapper[] getAllSession() throws Exception;
37:
38: /**
39: * Get a ConnectionWrapper representing a session idSession in the databse (table SESSION)
40: * @param idSession
41: * @return
42: * @throws Exception
43: */
44: public ConnectionWrapper getSession(int idSession) throws Exception;
45: }
|