View Javadoc
1   package fr.paris.lutece.plugins.workflow.modules.eudonetrestdirectory.business;
2   
3   import java.util.List;
4   
5   public interface IEudonetLinkDAO
6   {
7       /**
8        * Insert a new record in the table.
9        * 
10       * @param eudonetLink
11       *            instance of the EudonetLink object to insert
12       * @param plugin
13       *            the Plugin
14       */
15      void insert( EudonetLink eudonetLink );
16  
17      /**
18       * load a record in the table.
19       * 
20       * @param nIdEudonetLink
21       * @param plugin
22       *            the Plugin
23       */
24      EudonetLink load( int nIdEudonetLink );
25  
26      /**
27       * load a record in the table.
28       * 
29       * @param nIdEudonetLink
30       * @param plugin
31       *            the Plugin
32       */
33      EudonetLink loadBy( int nIdRessource, int nIdTable );
34  
35      /**
36       * load a record in the table.
37       * 
38       * @param nIdEudonetLink
39       * @param plugin
40       *            the Plugin
41       */
42      List<EudonetLink> loadAll( int nIdRessource, int nIdTable );
43  
44      /**
45       * 
46       * @param nIdRessource
47       * @return
48       */
49      List<EudonetLink> loadAll( int nIdRessource );
50  
51      /**
52       * 
53       * @return
54       */
55      List<EudonetLink> loadAll( );
56  
57      /**
58       * Update the record in the table
59       * 
60       * @param eudonetLink
61       *            the reference of the EudonetLink
62       * @param plugin
63       *            the Plugin
64       */
65      void store( EudonetLink eudonetLink );
66  
67      /**
68       * Delete a record from the table
69       * 
70       * @param nKey
71       *            The identifier of the EudonetLink to delete
72       * @param plugin
73       *            the Plugin
74       */
75      void delete( int nKey );
76  }