Project

General

Profile

Download (760 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2017 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.cache;
10

    
11
import eu.etaxonomy.cdm.model.common.CdmBase;
12

    
13
/**
14
 * @author a.kohlbecker
15
 * @since 09.11.2017
16
 *
17
 */
18
public interface EntityCache {
19

    
20
    /**
21
     * @param value
22
     * @return
23
     */
24
    public <CDM extends CdmBase> CDM find(CDM value);
25

    
26
    public boolean update();
27

    
28
    public <CDM extends CdmBase> void add(CDM value);
29

    
30
    /**
31
     * @param type
32
     * @param id
33
     * @return
34
     */
35
    public <CDM extends CdmBase> CDM find(Class<CDM> type, int id);
36

    
37

    
38
}
(2-2/2)