View Javadoc
1   package net.sumaris.core.dao.cache;
2   
3   /*-
4    * #%L
5    * SUMARiS:: Core
6    * %%
7    * Copyright (C) 2018 SUMARiS Consortium
8    * %%
9    * This program is free software: you can redistribute it and/or modify
10   * it under the terms of the GNU General Public License as
11   * published by the Free Software Foundation, either version 3 of the
12   * License, or (at your option) any later version.
13   *
14   * This program is distributed in the hope that it will be useful,
15   * but WITHOUT ANY WARRANTY; without even the implied warranty of
16   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17   * GNU General Public License for more details.
18   *
19   * You should have received a copy of the GNU General Public
20   * License along with this program.  If not, see
21   * <http://www.gnu.org/licenses/gpl-3.0.html>.
22   * #L%
23   */
24  
25  public interface CacheNames {
26  
27      String DEPARTMENT_BY_ID = "net.sumaris.core.dao.administration.user.departmentByIdCache";
28      String DEPARTMENT_BY_LABEL = "net.sumaris.core.dao.administration.user.departmentByLabelCache";
29      String PERSON_BY_ID = "net.sumaris.core.dao.administration.user.personByIdCache";
30      String PERSON_BY_PUBKEY = "net.sumaris.core.dao.administration.user.personByPubkeyCache";
31      String REFERENTIAL_TYPES = "net.sumaris.core.dao.referential.allTypesCache";
32      String REFERENTIAL_LEVEL_BY_UNIQUE_LABEL = "net.sumaris.core.dao.referential.findByUniqueLabelCache";
33  
34      String PROGRAM_BY_ID = "net.sumaris.core.dao.administration.programStrategy.programByIdCache";
35      String PROGRAM_BY_LABEL = "net.sumaris.core.dao.administration.programStrategy.programByLabelCache";
36  
37      String PMFM_BY_ID = "net.sumaris.core.dao.referential.pmfmByIdCache";
38      String PMFM_BY_STRATEGY_ID = "net.sumaris.core.dao.administration.programStrategy.pmfmByStrategyIdCache";
39  
40      String TAXON_NAME_BY_TAXON_REFERENCE_ID = "net.sumaris.core.dao.referential.taxonNameByReferenceId";
41      String TAXON_NAMES_BY_TAXON_GROUP_ID= "net.sumaris.core.dao.referential.taxonNamesByTaxonGroupId";
42  
43      String PRODUCT_BY_LABEL = "net.sumaris.core.dao.technical.product.productByLabelCache";
44      String PRODUCTS = "net.sumaris.core.dao.technical.product.productsCache";
45      String PRODUCTS_BY_FILTER = "net.sumaris.core.dao.technical.product.productByFilterCache";
46  
47      // Technical caches
48      String TABLE_META_BY_NAME = "net.sumaris.core.dao.technical.schema.tableMetaByName";
49  
50      // Hibernate caches
51      String QUERY_CACHE_NAME = "org.hibernate.cache.spi.QueryResultsRegion";
52      String TIMESTAMPS_REGION_CACHE_NAME = "org.hibernate.cache.spi.TimestampsRegion";
53  }