|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.crm.business.demand.category.CategoryDAO
public final class CategoryDAO
This class provides Data Access methods for Category objects
| Constructor Summary | |
|---|---|
CategoryDAO()
|
|
| Method Summary | |
|---|---|
void |
delete(int nCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
int |
insert(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
Category |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table |
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key |
java.util.Collection<Category> |
selectCategoriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the category objects and returns them as a collection |
Category |
selectFirstCategory(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select the first category |
void |
store(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CategoryDAO()
| Method Detail |
|---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
newPrimaryKey in interface ICategoryDAOplugin - The Plugin
public int insert(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface ICategoryDAOcategory - instance of the Category object to insertplugin - the Plugin
public Category load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ICategoryDAOnId - The identifier of the categoryplugin - the Plugin
public void delete(int nCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ICategoryDAOnCategoryId - int identifier of the Category to deleteplugin - the Plugin
public void store(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface ICategoryDAOcategory - the reference of the Categoryplugin - the Pluginpublic java.util.Collection<Category> selectCategoriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCategoriesList in interface ICategoryDAOplugin - the Plugin
public Category selectFirstCategory(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectFirstCategory in interface ICategoryDAOplugin - Plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||