Changeset 3475 for DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/VersionDao.java
- Timestamp:
- 08/25/13 21:05:37 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/VersionDao.java
r3465 r3475 34 34 * 35 35 * @param internalID 36 * @return the instance of Version.class with the internal Id equal to "internalID"36 * @return the Version-object build from the version with the "internalID". 37 37 * 38 38 */ … … 43 43 * 44 44 * @param versionID 45 * @return The list of the cached representation internal id-s of all the cached representations of the version with "versionID"45 * @return The list of the cached-representation internal ID-s of all the cached representations of the version with "versionID". 46 46 */ 47 47 public List<Number> retrieveCachedRepresentationList(Number versionID); 48 48 49 49 50 // Not tested 51 public boolean versionIsInUse(Number versionsID); 50 /** 51 * 52 * @param versionsID 53 * @return true if "versionID" occurs in the table "versions_cached_representations". 54 */ 55 public boolean versionIsInUse(Number versionID); 52 56 53 57 … … 56 60 **/ 57 61 58 62 /** 63 * 64 * @param versionID 65 * @param cachedID 66 * @return # rows added to the table "versions_cached_representations", when adding the pair (versionID, sourceID). Should be 1, if it has been added. 67 */ 59 68 public int addVersionCachedRepresentation(Number versionID, Number cachedID); 60 69 … … 63 72 * 64 73 * @param version 65 * @return the internal Id of the just added version74 * @return the internal Id of the just added "version", or null if it has not been added. 66 75 * 67 76 */ … … 76 85 77 86 /** @param versionID 78 * @return deleted rows in "version" table87 * @return # deleted rows in "version" table after deleting the version with "versionID". Should be "1" if the version has been deleted. 79 88 */ 80 89 81 90 public int deleteVersion(Number versionID); 82 91 83 92 /** 93 * 94 * @param versionID 95 * @param cachedID 96 * @return # deleted rows in the table "versions_cached_representations" after deleting the pair (versionID, cachedID). 97 */ 84 98 public int deleteVersionCachedRepresentation(Number versionID, Number cachedID); 85 99 86 100 87 101 /** 102 * 103 * @param versionID 104 * @return # deleted rows in the table "versions_cached_representations" after deleting all the pairs of the form (versionID, *). 105 */ 88 106 public int deleteAllVersionCachedRepresentation(Number versionID); 89 107
Note: See TracChangeset
for help on using the changeset viewer.