Class DatabaseResourceTypeDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.resource.business.database.DatabaseResourceTypeDAO
-
- All Implemented Interfaces:
IDatabaseResourceTypeDAO
public class DatabaseResourceTypeDAO extends java.lang.Object implements IDatabaseResourceTypeDAO
DAO for database resource type
-
-
Field Summary
-
Fields inherited from interface fr.paris.lutece.plugins.resource.business.database.IDatabaseResourceTypeDAO
BEAN_NAME
-
-
Constructor Summary
Constructors Constructor Description DatabaseResourceTypeDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(java.lang.String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove a resource type from the databasejava.util.List<DatabaseResourceType>findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the list of resource typesDatabaseResourceTypefindByPrimaryKey(java.lang.String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find a resource from its primary keyjava.util.List<java.lang.String>getResourceTypesList(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
-
-
-
Method Detail
-
insert
public void insert(DatabaseResourceType resourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert a new resource type into the database- Specified by:
insertin interfaceIDatabaseResourceTypeDAO- Parameters:
resourceType- The resource type to createsplugin- The plugin
-
update
public void update(DatabaseResourceType resourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Updates a resource type- Specified by:
updatein interfaceIDatabaseResourceTypeDAO- Parameters:
resourceType- The resourceplugin- The plugin
-
delete
public void delete(java.lang.String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove a resource type from the database- Specified by:
deletein interfaceIDatabaseResourceTypeDAO- Parameters:
strResourceType- the name of the resource typeplugin- the plugin
-
findByPrimaryKey
public DatabaseResourceType findByPrimaryKey(java.lang.String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a resource from its primary key- Specified by:
findByPrimaryKeyin interfaceIDatabaseResourceTypeDAO- 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
public java.util.List<DatabaseResourceType> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of resource types- Specified by:
findAllin interfaceIDatabaseResourceTypeDAO- Parameters:
plugin- the plugin- Returns:
- The list of resource types
-
getResourceTypesList
public java.util.List<java.lang.String> getResourceTypesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of resource type names- Specified by:
getResourceTypesListin interfaceIDatabaseResourceTypeDAO- Parameters:
plugin- the plugin- Returns:
- the list of resource type names
-
-