public interface IDatabaseResourceDAO
| Modifier and Type | Field and Description |
|---|---|
static String |
BEAN_NAME
The name of the bean of the DAO
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nIdResource,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a resource from the database
|
List<DatabaseResource> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of resources
|
List<Integer> |
findAllId(DatabaseResourceSort resourceSort,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of resource ids
|
List<DatabaseResource> |
findByListId(List<Integer> listId,
DatabaseResourceSort resourceSort,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of database resources from an id list
|
DatabaseResource |
findByPrimaryKey(int nIdResource,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a resource from its primary key
|
List<DatabaseResource> |
findByResourceType(String strResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of resources that have a given resource type
|
void |
insert(DatabaseResource resource,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert a new resource into the database
|
void |
update(DatabaseResource resource,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Updates a database resource
|
static final String BEAN_NAME
void insert(DatabaseResource resource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
resource - The resource to createsplugin - The pluginvoid update(DatabaseResource resource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
resource - The resourceplugin - The pluginvoid delete(int nIdResource,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdResource - the id of the resourceplugin - the pluginDatabaseResource findByPrimaryKey(int nIdResource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdResource - the id of the resourceplugin - The pluginList<DatabaseResource> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the pluginList<Integer> findAllId(DatabaseResourceSort resourceSort, fr.paris.lutece.portal.service.plugin.Plugin plugin)
resourceSort - The sort parametersplugin - The pluginList<DatabaseResource> findByListId(List<Integer> listId, DatabaseResourceSort resourceSort, fr.paris.lutece.portal.service.plugin.Plugin plugin)
listId - The list of ids of resources to getresourceSort - The sort parametersplugin - The pluginList<DatabaseResource> findByResourceType(String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strResourceType - The resource typeplugin - The pluginCopyright © 2020 City of Paris. All rights reserved.