Class TemplatesGroupDB


public class TemplatesGroupDB extends JpaDB<TemplatesGroupBean>
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
  • Constructor Details

    • TemplatesGroupDB

      public TemplatesGroupDB()
  • Method Details

    • getInstance

      public static TemplatesGroupDB getInstance()
    • getInstance

      public static TemplatesGroupDB getInstance(boolean forceRefresh)
    • getAllTemplatesGroups

      public static List<TemplatesGroupBean> getAllTemplatesGroups()
    • getAllTemplatesGroupsWithCount

      public static List<TemplatesGroupBean> getAllTemplatesGroupsWithCount()
    • delete

      public static boolean delete(Long id)
    • getTemplatesGroupByName

      public static TemplatesGroupBean getTemplatesGroupByName(String name)
    • getById

      public TemplatesGroupBean getById(Long id)
      Overrides:
      getById in class JpaDB<TemplatesGroupBean>
    • getByIdCached

      public TemplatesGroupBean getByIdCached(Long id)
      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 null when 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: