Changeset 6008


Ignore:
Timestamp:
02/23/15 08:49:44 (9 years ago)
Author:
olhsha@mpi.nl
Message:

Javadoc are updated for TargetDao?. Dao's annotations are completed.

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  
    7979    boolean cachedIsInUse(Number cachedID);
    8080
     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     */
    8186    public List<Number> getTargetIDs(Number annotationID);
    8287
     
    8590     *
    8691     */
    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   
    9494    public Number addTarget(Target target)  throws NotInDataBaseException;
    9595
     96 
    9697    /**
    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.
    103103     */
    104     public int updateTargetCachedRepresentationFragment(Number TargetID, Number cachedID, String fragmentDescription);
     104    public int updateTargetCachedRepresentationFragment(Number targetID, Number cachedID, String fragmentDescription);
    105105
    106106   
     
    113113    /**
    114114     *
    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.
    118117     */
    119118    public int deleteTarget(Number internalID);
    120119
    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);
    129127}
Note: See TracChangeset for help on using the changeset viewer.