Class FileArchivCategoryNodeDB
java.lang.Object
sk.iway.iwcm.database.JpaDB<FileArchivCategoryNodeBean>
sk.iway.iwcm.components.file_archiv.FileArchivCategoryNodeDB
FileArchivCategoryNodeDB.java
DAO class for manipulating with FileArchivCategoryNodeBean
Title webjet7
Company Interway s.r.o. (www.interway.sk)
Copyright Interway s.r.o. (c) 2001-2010
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canShowCategory
(int idCategory) static Node<FileArchivCategoryNodeBean>
createNode
(String categoryName, int category_1_id, int priority, boolean show) static void
static Node<FileArchivCategoryNodeBean>
createSubNode
(Node<FileArchivCategoryNodeBean> node, String categoryName, int category1id, int priority, boolean show) static FileArchivCategoryNodeBean
findById
(int id) static Node<FileArchivCategoryNodeBean>
getByCategoryObj
(String pCategory_1, String pCategory_2, String pCategory_3) static Node<FileArchivCategoryNodeBean>
getByCategoryObj
(String pCategory_1, String pCategory_2, String pCategory_3, boolean doNotReturnCat2) static List<Node<FileArchivCategoryNodeBean>>
static Node<FileArchivCategoryNodeBean>
getCategory
(int categoryId) static String
getCategoryNameFromCategory
(String categoryName) static Node<FileArchivCategoryNodeBean>
getId
(int id) static Node<FileArchivCategoryNodeBean>
getId
(int id, int int1Val, int lvl) ziskania ID nodu aj moznostou podmienok pre level a ID kategorie 1.static int
getIdByCategory
(String pCategory_1, String pCategory_2, String pCategory_3) static int
getIdByCategory
(String pCategory_1, String pCategory_2, String pCategory_3, boolean doNotReturnCat2) static List<FileArchivCategoryNodeBean>
getNodes
(int level, int categoryId_1) static JpaNestedSetManager
getNsm()
static Node<FileArchivCategoryNodeBean>
getRoot()
static boolean
updateCategory
(String newCategoryName, int nodeId) Methods 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, getById, getCount, getResultList, getValues, of, or, save
-
Constructor Details
-
FileArchivCategoryNodeDB
public FileArchivCategoryNodeDB()
-
-
Method Details
-
findById
-
getId
-
getId
ziskania ID nodu aj moznostou podmienok pre level a ID kategorie 1. urovne- Parameters:
id
- - ID noduint1Val
- - vacsina ID kategorie 1. urovnelvl
- - level- Returns:
-
getCategoryNameFromCategory
-
getNsm
-
getRoot
-
createRoot
public static void createRoot() -
getIdByCategory
-
getIdByCategory
-
getByCategoryObj
public static Node<FileArchivCategoryNodeBean> getByCategoryObj(String pCategory_1, String pCategory_2, String pCategory_3) -
getByCategoryObj
public static Node<FileArchivCategoryNodeBean> getByCategoryObj(String pCategory_1, String pCategory_2, String pCategory_3, boolean doNotReturnCat2) -
canShowCategory
public static boolean canShowCategory(int idCategory) -
getNodes
-
updateCategory
-
createSubNode
public static Node<FileArchivCategoryNodeBean> createSubNode(Node<FileArchivCategoryNodeBean> node, String categoryName, int category1id, int priority, boolean show) -
getCategories
-
getCategory
-
createNode
public static Node<FileArchivCategoryNodeBean> createNode(String categoryName, int category_1_id, int priority, boolean show)
-