Package sk.iway.iwcm.doc
Class TemplatesGroupDB
TemplatesGroupDB.java
Class TemplatesGroupDB is used for
Title webjet8
Company Interway a.s. (www.interway.sk)
Copyright Interway a.s. (c) 2001-2018
author $Author: mhruby $
version $Revision: 1.0 $
created 12.6.2018 17:21
modified 12.6.2018 17:12
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears all cached template groups.static booleanstatic List<TemplatesGroupBean>static List<TemplatesGroupBean>getByIdCached(Long id) Returns a template group from the in-memory cache, loading it from the database when necessary.static longgetFromDocId(int docId) Vrati ID template grupy pre zadane docIdstatic TemplatesGroupDBstatic TemplatesGroupDBgetInstance(boolean forceRefresh) static TemplatesGroupBeanMethods inherited from class sk.iway.iwcm.database.JpaDB
and, delete, deleteByIds, filterBetween, filterBetween, filterBetween, filterEquals, filterEquals, filterEquals, filterIn, filterNotIn, filterNotNull, filterNull, filterSubstring, filterSubstringIgnoringCase, find, findBy, findBy, findByProperties, findFirst, findFirstByProperties, getAll, getById, getCount, getResultList, getValues, of, or, save
-
Constructor Details
-
TemplatesGroupDB
public TemplatesGroupDB()
-
-
Method Details
-
getInstance
-
getInstance
-
getAllTemplatesGroups
-
getAllTemplatesGroupsWithCount
-
delete
-
getTemplatesGroupByName
-
getById
- Overrides:
getByIdin classJpaDB<TemplatesGroupBean>
-
getByIdCached
Returns a template group from the in-memory cache, loading it from the database when necessary.- Parameters:
id- template group ID- Returns:
- template group or
nullwhen it does not exist
-
clearCache
public void clearCache()Clears all cached template groups. -
getFromDocId
public static long getFromDocId(int docId) Vrati ID template grupy pre zadane docId- Parameters:
docId-- Returns:
-