Interface IDatabaseResourceTypeDAO
- All Known Implementing Classes:
DatabaseResourceTypeDAO
public interface IDatabaseResourceTypeDAO
Interface of DAO of database resource type
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidRemove a resource type from the databasefindAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the list of resource typesfindByPrimaryKey(String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find a resource from its primary keygetResourceTypesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the list of resource type namesvoidinsert(DatabaseResourceType resourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) insert a new resource type into the databasevoidupdate(DatabaseResourceType resourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Updates a resource type
-
Field Details
-
BEAN_NAME
The name of the bean of the DAO- See Also:
-
-
Method Details
-
insert
insert a new resource type into the database- Parameters:
resourceType- The resource type to createsplugin- The plugin
-
update
Updates a resource type- Parameters:
resourceType- The resourceplugin- The plugin
-
delete
Remove a resource type from the database- Parameters:
strResourceType- the name of the resource typeplugin- the plugin
-
findByPrimaryKey
DatabaseResourceType findByPrimaryKey(String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find a resource from its primary key- Parameters:
strResourceType- the id of the resourceplugin- The plugin- Returns:
- The resource type, or null if no resource type has the given primary key
-
findAll
Get the list of resource types- Parameters:
plugin- the plugin- Returns:
- The list of resource types
-
getResourceTypesList
Get the list of resource type names- Parameters:
plugin- the plugin- Returns:
- the list of resource type names
-