|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.knowgate.hipergate.Categories
Singleton manager for Categories Tree
| Field Summary | |
static int |
ORDER_BY_ID
|
static int |
ORDER_BY_LOCALE_NAME
|
static int |
ORDER_BY_NEUTRAL_NAME
|
static int |
ORDER_BY_NONE
|
| Constructor Summary | |
Categories()
|
|
| Method Summary | |
void |
clearCache()
Clear root categories cache. |
static void |
expand(JDCConnection oConn,
java.lang.String sRootCategoryId)
Expand Category Childs into k_cat_expand table |
Category |
forDomain(JDCConnection oConn,
int iDomain)
Get root category for a given Domain |
DBSubset |
getChildsNamed(JDCConnection oConn,
java.lang.String idParent,
java.lang.String sLanguage,
int iOrderBy)
Get first level childs for a given category. |
DBSubset |
getRoots(JDCConnection oConn)
Get root categories as a DBSubset. |
int |
getRootsCount()
Get root categories count. |
DBSubset |
getRootsNamed(JDCConnection oConn,
java.lang.String sLanguage,
int iOrderBy)
Get Root Caetgories and their names as a DBSubset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ORDER_BY_NONE
public static final int ORDER_BY_ID
public static final int ORDER_BY_NEUTRAL_NAME
public static final int ORDER_BY_LOCALE_NAME
| Constructor Detail |
public Categories()
| Method Detail |
public void clearCache()
public static void expand(JDCConnection oConn,
java.lang.String sRootCategoryId)
throws java.sql.SQLException
Expand Category Childs into k_cat_expand table
oConn - Database ConnectionsRootCategoryId - GUID of Category to expand.
java.sql.SQLException
public Category forDomain(JDCConnection oConn,
int iDomain)
throws java.sql.SQLException
Get root category for a given Domain
The root Category for a Domain will be the one such that nm_category=nm_domain
oConn - Database ConnectioniDomain - Domain Numeric Identifier
java.sql.SQLException
public DBSubset getRoots(JDCConnection oConn)
throws java.sql.SQLException
Get root categories as a DBSubset.
Root categories are those present at k_cat_root table.
oConn - Database Connection
java.sql.SQLException
public int getRootsCount()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - If getRoots() or getRootsNamed() have not
been called prior to getRootsCount()
public DBSubset getRootsNamed(JDCConnection oConn,
java.lang.String sLanguage,
int iOrderBy)
throws java.sql.SQLException
Get Root Caetgories and their names as a DBSubset
Categories not having any translation at k_cat_labels will not be retrieved.
oConn - Database ConnectionsLanguage - Language for category label retrieval.iOrderBy - Column for order by { ORDER_BY_NONE, ORDER_BY_NEUTRAL_NAME, ORDER_BY_LOCALE_NAME }
| gu_category | nm_category | tr_category | nm_icon | nm_icon2 |
| Category GUID | Category Internal Name | Category Translated Label | Icon for Closed Folder | Icon for Opened Folder |
java.sql.SQLException
public DBSubset getChildsNamed(JDCConnection oConn,
java.lang.String idParent,
java.lang.String sLanguage,
int iOrderBy)
throws java.sql.SQLException
Get first level childs for a given category.
Categories not having any translation at k_cat_labels will not be retrieved.
oConn - Database ConnectionidParent - Parent CategorysLanguage - Language for label retrievaliOrderBy - Column for order by { ORDER_BY_NONE, ORDER_BY_NEUTRAL_NAME, ORDER_BY_LOCALE_NAME }
| gu_category | nm_category | tr_category | nm_icon | nm_icon2 |
| Category GUID | Category Internal Name | Category Translated Label | Icon for Closed Folder | Icon for Opened Folder |
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||