source: DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/dao/CachedRepresentationDao.java @ 4546

Last change on this file since 4546 was 4546, checked in by olhsha, 10 years ago

refactored.Redundar row mappers are some other methods are thrown away

File size: 2.3 KB
Line 
1/*
2 * Copyright (C) 2013 DASISH
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17 */
18package eu.dasish.annotation.backend.dao;
19
20import eu.dasish.annotation.schema.CachedRepresentationInfo;
21import java.io.InputStream;
22import java.util.List;
23
24/**
25 *
26 * @author olhsha
27 */
28public interface CachedRepresentationDao extends ResourceDao{
29   
30   
31    /** GETTERS
32     *
33     */
34 
35    /**
36     *
37     * @param internalID
38     * @return the object of the class "CachedRepresentationInfo"  with the internal id "internalID".
39     */
40    public CachedRepresentationInfo getCachedRepresentationInfo(Number internalID);
41   
42   
43    /**
44     *
45     * @param internalID
46     * @return the Blob of the cached representation  with the internal id "internalID".
47     */
48    public InputStream getCachedRepresentationBlob(Number internalID);
49   
50   
51     /*
52     * @param targetID
53     * @return the list of the cached representation's ID-s for the target the internal ID "targetID".
54     */
55    public List<Number> getCachedRepresentationsForTarget(Number targetID);
56 
57    /**
58     * ADDERS
59     */
60   
61     /**
62     *
63     * @param cachedInfo
64     * @param cachedBlob
65     * @return the internal ID of the just added "cached", or null if the cached representation is not added for some reason.
66     */
67    public Number addCachedRepresentation(CachedRepresentationInfo cachedInfo, InputStream cachedBlob);
68   
69   
70   /**
71    * DELETERS
72    */
73    /**
74     *
75     * @param internalID
76     * @return  # deleted rows on the table "cached_representation".
77     */
78    public  int deleteCachedRepresentation(Number internalID);
79   
80   
81   
82}
Note: See TracBrowser for help on using the repository browser.