Class FriendlyUrlDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.seo.business.FriendlyUrlDAO
-
- All Implemented Interfaces:
IFriendlyUrlDAO
public final class FriendlyUrlDAO extends Object implements IFriendlyUrlDAO
This class provides Data Access methods for FriendlyUrl objects
-
-
Constructor Summary
Constructors Constructor Description FriendlyUrlDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nFriendlyUrlId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoiddeleteAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete all record from the tablevoidinsert(FriendlyUrl friendlyUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.FriendlyUrlload(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)List<FriendlyUrl>selectFriendlyUrlsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the friendlyUrl objects and returns them as a Listvoidstore(FriendlyUrl friendlyUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
newPrimaryKey
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
insert
public void insert(FriendlyUrl friendlyUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIFriendlyUrlDAO- Parameters:
friendlyUrl- instance of the FriendlyUrl object to inssertplugin- the Plugin
-
load
public FriendlyUrl load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIFriendlyUrlDAO- Parameters:
nId- The identifier of the friendlyUrlplugin- the Plugin- Returns:
- The instance of the friendlyUrl
-
delete
public void delete(int nFriendlyUrlId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceIFriendlyUrlDAO- Parameters:
nFriendlyUrlId- int identifier of the FriendlyUrl to deleteplugin- the Plugin
-
store
public void store(FriendlyUrl friendlyUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIFriendlyUrlDAO- Parameters:
friendlyUrl- the reference of the FriendlyUrlplugin- the Plugin
-
selectFriendlyUrlsList
public List<FriendlyUrl> selectFriendlyUrlsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the friendlyUrl objects and returns them as a List- Specified by:
selectFriendlyUrlsListin interfaceIFriendlyUrlDAO- Parameters:
plugin- the Plugin- Returns:
- The List which contains the data of all the friendlyUrl objects
-
deleteAll
public void deleteAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all record from the table- Specified by:
deleteAllin interfaceIFriendlyUrlDAO- Parameters:
plugin- the Plugin
-
-