public abstract class ResourceCategoryManager<T extends ResourceCategory<T>>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.sql.Connection |
con |
protected java.lang.String |
tableName |
Constructor and Description |
---|
ResourceCategoryManager(java.sql.Connection con,
int mid) |
Modifier and Type | Method and Description |
---|---|
void |
deleteCategory(int id) |
T |
getCategory(int id) |
protected abstract T |
getCategoryFromRs(java.sql.ResultSet rs) |
java.util.List<T> |
getCategoryTree() |
int |
getSubCount(int categoryId) |
protected abstract java.lang.String |
getTableName() |
protected void |
loadStandartCategoryFields(java.sql.ResultSet rs,
T category) |
public ResourceCategoryManager(java.sql.Connection con, int mid)
public java.util.List<T> getCategoryTree()
public int getSubCount(int categoryId)
protected void loadStandartCategoryFields(java.sql.ResultSet rs, T category) throws java.lang.Exception
java.lang.Exception
public T getCategory(int id)
public void deleteCategory(int id)
protected abstract java.lang.String getTableName()
protected abstract T getCategoryFromRs(java.sql.ResultSet rs)