Class FriendlyUrlDAO
java.lang.Object
fr.paris.lutece.plugins.seo.business.FriendlyUrlDAO
- All Implemented Interfaces:
IFriendlyUrlDAO
This class provides Data Access methods for FriendlyUrl objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(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.load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) 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
-
Constructor Details
-
FriendlyUrlDAO
public FriendlyUrlDAO()
-
-
Method Details
-
newPrimaryKey
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) -
insert
Insert a new record in the table.- Specified by:
insertin interfaceIFriendlyUrlDAO- Parameters:
friendlyUrl- instance of the FriendlyUrl object to inssertplugin- the Plugin
-
load
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
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
-