Changeset 3465


Ignore:
Timestamp:
08/23/13 16:34:54 (11 years ago)
Author:
olhsha
Message:

ordering signatures in the interfaces

Location:
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/AnnotationDao.java

    r3461 r3465  
    4040   
    4141    ////////////// GETTERS //////////////////////////
    42    
    43    
    4442   
    4543    /**
  • DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/CachedRepresentationDao.java

    r3455 r3465  
    3737   
    3838 
     39     /**
     40     *
     41     * @param cached
     42     * @return the internal Id of the just added "cached"
     43     */
     44    public Number addCachedRepresentationInfo(CachedRepresentationInfo cached);
     45   
     46   
    3947    /**
    4048     *
     
    4452    public  int deleteCachedRepresentationInfo(Number internalID);
    4553   
    46     /**
    47      *
    48      * @param cached
    49      * @return the internal Id of the just added "cached"
    50      */
    51     public Number addCachedRepresentationInfo(CachedRepresentationInfo cached);
    52    
    5354   
    5455   
  • DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/NotebookDao.java

    r3455 r3465  
    3333public interface NotebookDao extends ResourceDao {
    3434
     35   
     36    ////////// GETTERS /////////////////////
    3537    // Returns a list of notebook-info for the notebooks accessible to the current user.
    3638    List<NotebookInfo> getNotebookInfos(UUID userID);
     
    3941    List<Notebook> getUsersNotebooks(UUID userID);
    4042
    41     // Creates a new notebook and returns the _nid_ of the created Notebook
    42     UUID addNotebook(UUID userID, String title);
    43 
    44     // Delete _nid_. Annotations stay, they just lose connection to _nid_.<br>
    45     // returns the number of records deleted
    46     public int deleteNotebook(UUID notebookId);
    47 
    48     // Adds an annotation _aid_ to the list of annotations of _nid_.
    49     public int addAnnotation(UUID notebookId, UUID annotationId);
    5043   
    51      // Returns the list of annotation Id-s  for the notebook id.
     44      // Returns the list of annotation Id-s  for the notebook id.
    5245    public List<Number> getAnnotationIDs(Number notebookID);
    5346   
     
    7770    List<UUID> getAnnotationExternalIDs(UUID notebookId);
    7871   
     72   
     73    ////////////  ADDERS ///////////////////////////
     74   
     75    // Creates a new notebook and returns the _nid_ of the created Notebook
     76    UUID addNotebook(UUID userID, String title);
     77
     78      // Adds an annotation _aid_ to the list of annotations of _nid_.
     79    public int addAnnotation(UUID notebookId, UUID annotationId);
     80   
     81   
     82   
     83    ///////////// DELETERS ///////////////
     84   
     85    // Delete _nid_. Annotations stay, they just lose connection to _nid_.<br>
     86    // returns the number of records deleted
     87    public int deleteNotebook(UUID notebookId);
    7988    /**
    8089     *
  • DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/SourceDao.java

    r3455 r3465  
    3030   
    3131 
     32    /**
     33     * GETTERS
     34     **/
    3235   
    3336    /**
     
    3841    public Source getSource(Number internalID);
    3942   
    40    
     43   
     44    public List<SourceInfo> getSourceInfos(List<Number> sources);
     45     
     46     /**
     47     *
     48     * @param sourceID
     49     * @return the list of the internal version id-s for the  target source with the internal Id "sourceID"
     50     */
     51    public List<Number> retrieveVersionList(Number sourceID);
     52   
    4153   
    4254    /**
    4355     *
    44      * @param internalId
    45      * @return # deleted rows in "source" table
    46      */
    47     public int deleteSource(Number internalID);
     56     * @param link
     57     * @return the list source ID's which link-fields contain "link" as a substring
     58     */
     59    public List<Number> getSourcesForLink(String link);
     60 
    4861   
    49     /**
     62    public boolean sourceIsInUse(Number sourceID);
     63 
     64    /**
     65     * ADDERS
     66     **/
     67   
     68     /**
    5069     *
    5170     * @param source
     
    5776    public Number addSource(Source source) throws SQLException;   
    5877   
    59     public int addSourceVersion(Number sourceID, Number versionID) throws SQLException; 
     78    public int addSourceVersion(Number sourceID, Number versionID) throws SQLException;
     79   
     80   
     81    /**
     82     * DELETERS
     83     **/
     84   
     85    /**
     86     *
     87     * @param internalId
     88     * @return # deleted rows in "source" table
     89     */
     90    public int deleteSource(Number internalID);
     91   
     92   
    6093   
    6194    public int deleteAllSourceVersion(Number sourceID) throws SQLException; 
    6295   
    6396   
    64    
    65      /**
    66      *
    67      * @param sourceID
    68      * @return the list of the internal version id-s for the  target source with the internal Id "sourceID"
    69      */
    70     public List<Number> retrieveVersionList(Number sourceID);
    71    
    7297 
    73     public List<SourceInfo> getSourceInfos(List<Number> sources);
    74    
    75  
    76     /**
    77      *
    78      * @param link
    79      * @return the list source ID's which link-fields contain "link" as a substring
    80      */
    81     public List<Number> getSourcesForLink(String link);
    82  
    83    
    84     public boolean sourceIsInUse(Number sourceID);
    8598}
  • DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/VersionDao.java

    r3455 r3465  
    2727public interface VersionDao extends ResourceDao{
    2828   
    29  
     29   /**
     30     * GETTERS
     31     **/
     32   
    3033    /**
    3134     *
     
    3639    public Version getVersion(Number internalID);
    3740   
    38    
     41   
     42       /**
     43     *
     44     * @param versionID
     45     * @return The list of the cached representation internal id-s of all the cached representations of the version with "versionID"
     46     */
     47    public List<Number> retrieveCachedRepresentationList(Number versionID);
     48   
    3949     
    40     /** @param versionID
    41      * @return deleted rows in "version" table
    42      */
     50    // Not tested
     51    public boolean versionIsInUse(Number versionsID);
    4352   
    44     public int deleteVersion(Number versionID);
     53   
     54    /**
     55     * ADDERS
     56     **/
     57   
     58   
     59    public int addVersionCachedRepresentation(Number versionID, Number cachedID);
     60   
    4561   
    4662    /**
     
    5369   
    5470 
    55      /**
    56      *
    57      * @param versionID
    58      * @return The list of the cached representation internal id-s of all the cached representations of the version with "versionID"
     71   
     72    /**
     73     * DELETERS 
     74     **/
     75   
     76     
     77    /** @param versionID
     78     * @return deleted rows in "version" table
    5979     */
    60     public List<Number> retrieveCachedRepresentationList(Number versionID);
     80   
     81    public int deleteVersion(Number versionID);
    6182   
    6283   
     
    6485   
    6586   
    66     public int addVersionCachedRepresentation(Number versionID, Number cachedID);
    6787   
    6888    public int deleteAllVersionCachedRepresentation(Number versionID);
    69    
    70     // Not tested
    71     public boolean versionIsInUse(Number versionsID);
     89   
    7290}
    7391   
Note: See TracChangeset for help on using the changeset viewer.