Changeset 3465
- Timestamp:
- 08/23/13 16:34:54 (11 years ago)
- 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 40 40 41 41 ////////////// GETTERS ////////////////////////// 42 43 44 42 45 43 /** -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/CachedRepresentationDao.java
r3455 r3465 37 37 38 38 39 /** 40 * 41 * @param cached 42 * @return the internal Id of the just added "cached" 43 */ 44 public Number addCachedRepresentationInfo(CachedRepresentationInfo cached); 45 46 39 47 /** 40 48 * … … 44 52 public int deleteCachedRepresentationInfo(Number internalID); 45 53 46 /**47 *48 * @param cached49 * @return the internal Id of the just added "cached"50 */51 public Number addCachedRepresentationInfo(CachedRepresentationInfo cached);52 53 54 54 55 -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/NotebookDao.java
r3455 r3465 33 33 public interface NotebookDao extends ResourceDao { 34 34 35 36 ////////// GETTERS ///////////////////// 35 37 // Returns a list of notebook-info for the notebooks accessible to the current user. 36 38 List<NotebookInfo> getNotebookInfos(UUID userID); … … 39 41 List<Notebook> getUsersNotebooks(UUID userID); 40 42 41 // Creates a new notebook and returns the _nid_ of the created Notebook42 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 deleted46 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);50 43 51 // Returns the list of annotation Id-s for the notebook id.44 // Returns the list of annotation Id-s for the notebook id. 52 45 public List<Number> getAnnotationIDs(Number notebookID); 53 46 … … 77 70 List<UUID> getAnnotationExternalIDs(UUID notebookId); 78 71 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); 79 88 /** 80 89 * -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/SourceDao.java
r3455 r3465 30 30 31 31 32 /** 33 * GETTERS 34 **/ 32 35 33 36 /** … … 38 41 public Source getSource(Number internalID); 39 42 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 41 53 42 54 /** 43 55 * 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 48 61 49 /** 62 public boolean sourceIsInUse(Number sourceID); 63 64 /** 65 * ADDERS 66 **/ 67 68 /** 50 69 * 51 70 * @param source … … 57 76 public Number addSource(Source source) throws SQLException; 58 77 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 60 93 61 94 public int deleteAllSourceVersion(Number sourceID) throws SQLException; 62 95 63 96 64 65 /**66 *67 * @param sourceID68 * @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 72 97 73 public List<SourceInfo> getSourceInfos(List<Number> sources);74 75 76 /**77 *78 * @param link79 * @return the list source ID's which link-fields contain "link" as a substring80 */81 public List<Number> getSourcesForLink(String link);82 83 84 public boolean sourceIsInUse(Number sourceID);85 98 } -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/VersionDao.java
r3455 r3465 27 27 public interface VersionDao extends ResourceDao{ 28 28 29 29 /** 30 * GETTERS 31 **/ 32 30 33 /** 31 34 * … … 36 39 public Version getVersion(Number internalID); 37 40 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 39 49 40 /** @param versionID 41 * @return deleted rows in "version" table 42 */ 50 // Not tested 51 public boolean versionIsInUse(Number versionsID); 43 52 44 public int deleteVersion(Number versionID); 53 54 /** 55 * ADDERS 56 **/ 57 58 59 public int addVersionCachedRepresentation(Number versionID, Number cachedID); 60 45 61 46 62 /** … … 53 69 54 70 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 59 79 */ 60 public List<Number> retrieveCachedRepresentationList(Number versionID); 80 81 public int deleteVersion(Number versionID); 61 82 62 83 … … 64 85 65 86 66 public int addVersionCachedRepresentation(Number versionID, Number cachedID);67 87 68 88 public int deleteAllVersionCachedRepresentation(Number versionID); 69 70 // Not tested 71 public boolean versionIsInUse(Number versionsID); 89 72 90 } 73 91
Note: See TracChangeset
for help on using the changeset viewer.