Changeset 6042 for DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/CachedRepresentationDao.java
- Timestamp:
- 02/24/15 16:08:22 (9 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/CachedRepresentationDao.java
r5998 r6042 37 37 * 38 38 * @param internalID the internal database Id of the cached representation. 39 * @return the object of the class "CachedRepresentationInfo" with the internal id "internalID". 39 * @return a {@link CachedRepresentationInfo} object representing the metadata 40 * of the cached representation with the internal id "internalID". 40 41 */ 41 42 public CachedRepresentationInfo getCachedRepresentationInfo(Number internalID); … … 43 44 /** 44 45 * 45 * @param internalID 46 * @param internalID the internal database Id of a target. 46 47 * @return the Blob of the cached representation with the internal database id "internalID". 47 48 */ 48 49 public InputStream getCachedRepresentationBlob(Number internalID); 49 50 50 /* 51 * @param targetID 52 * @return the list of the cached representation's ID-s for the target the internal database ID "targetID".51 /** 52 * @param targetID the internal database Id of a target. 53 * @return the list of the cached representation's ID-s for the target with the internal database ID "targetID". 53 54 */ 54 55 public List<Number> getCachedRepresentationsForTarget(Number targetID); … … 59 60 /** 60 61 * 61 * @param cachedInfo the metadata of the cached representation (incl.the date of creation and mime-type.62 * @param cachedInfo a {@link CachedRepresentationInfo} object representing the metadata of a cached representation. 62 63 * @param cachedBlob the content of the cached representation, considered as BLOB. 63 * @return the internal ID of the just added "cached", or throws theexception if adding fails.64 * @return the internal ID of the just added cached representation, or throws an exception if adding fails. 64 65 * @throws NotInDataBaseException if there is no object with the generated for the new cached representation external id. 65 66 * @throws IOException if reading blob fails. … … 74 75 /** 75 76 * 76 * @param internalID the internal database id of thecached representation.77 * @param cachedInfo thenew metadata for it.77 * @param internalID the internal database id of a cached representation. 78 * @param cachedInfo new metadata for it. 78 79 * @return # of updated rows in the table "cached_representation". Must be 1 if updated, and 0 otherwise. 79 80 */ … … 82 83 /** 83 84 * 84 * @param internalID the internal database id of thecached representation.85 * @param internalID the internal database id of a cached representation. 85 86 * @param cachedBlob the new content considered as BLOB. 86 87 * @return # of updated rows in the table "cached_representation". Must be 1 if updated, and 0 otherwise. … … 94 95 /** 95 96 * 96 * @param internalID the internal database id of thecached representation.97 * @param internalID the internal database id of a cached representation. 97 98 * @return # deleted rows on the table "cached_representation". 98 99 */
Note: See TracChangeset
for help on using the changeset viewer.