- Timestamp:
- 02/23/15 08:49:44 (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/TargetDao.java
r6004 r6008 79 79 boolean cachedIsInUse(Number cachedID); 80 80 81 /** 82 * 83 * @param annotationID the internal database ID of an annotation. 84 * @return the list of the internal database id's of the targets of the annotation. 85 */ 81 86 public List<Number> getTargetIDs(Number annotationID); 82 87 … … 85 90 * 86 91 */ 87 /** 88 * 89 * @param target: the Target-object of the Target to be added to "Target" 90 * table. 91 * @return the internal ID of the just added Target or null if it has not 92 * been added. 93 */ 92 93 94 94 public Number addTarget(Target target) throws NotInDataBaseException; 95 95 96 96 97 /** 97 * 98 * @param TargetID 99 * @param cachedID 100 * @return # added rows to the table "Targets_cached_representations". 101 * Should be "1" if the pair (TargetID, cachedID) has been added. 102 * @throws SQLException 98 * 99 * @param targetID the internal database id of a target. 100 * @param cachedID the internal database id of a cached representation. 101 * @param fragmentDescription a string representing the location of the target in the cached representation. 102 * @return # added rows to the table "targets_cached_representations"; should be "1" if the pair (targetID, cachedID) has been added. 103 103 */ 104 public int updateTargetCachedRepresentationFragment(Number TargetID, Number cachedID, String fragmentDescription);104 public int updateTargetCachedRepresentationFragment(Number targetID, Number cachedID, String fragmentDescription); 105 105 106 106 … … 113 113 /** 114 114 * 115 * @param internalId 116 * @return # deleted rows in "Target" table. Should be "1" if the Target has 117 * been deleted. 115 * @param internalID the internal database id of a target. 116 * @return # deleted rows in "target" table. Should be "1" if the target hasbeen deleted. 118 117 */ 119 118 public int deleteTarget(Number internalID); 120 119 121 /** 122 * 123 * @param targetID 124 * @return # deleted rows in the table "Targets_cached_representation" when 125 * deleting the pair (TargetID, chachedID) 126 * @throws SQLException 127 */ 128 public int deleteTargetCachedRepresentation(Number TargetID, Number chachedID); 120 /** 121 * 122 * @param targetID the internal database id of a target. 123 * @param cachedID the internal database id of a cached representation. 124 * @return # of deleted rows in the table "targets_cached_representations"; should be "1" if the deletion has taken place,an "0" otherwise". 125 */ 126 public int deleteTargetCachedRepresentation(Number targetID, Number chachedID); 129 127 }
Note: See TracChangeset
for help on using the changeset viewer.