Class AuthorizedUrlDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.verifybackurl.business.AuthorizedUrlDAO
-
- All Implemented Interfaces:
IAuthorizedUrlDAO
public final class AuthorizedUrlDAO extends Object implements IAuthorizedUrlDAO
This class provides Data Access methods for AuthorizedUrl objects
-
-
Constructor Summary
Constructors Constructor Description AuthorizedUrlDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(AuthorizedUrl authorizedUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.AuthorizedUrlload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)Generates a new primary keyList<AuthorizedUrl>selectAuthorizedUrlsByApplicationCode(String strApplicationCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the authorizedUrl objects filtered by application codeand returns them as a listList<AuthorizedUrl>selectAuthorizedUrlsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the authorizedUrl objects and returns them as a listfr.paris.lutece.util.ReferenceListselectAuthorizedUrlsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the authorizedUrl objects and returns them as a referenceListList<Integer>selectIdAuthorizedUrlsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the authorizedUrl objects and returns them as a listvoidstore(AuthorizedUrl authorizedUrl, 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)
Generates a new primary key- Parameters:
plugin- The Plugin- Returns:
- The new primary key
-
insert
public void insert(AuthorizedUrl authorizedUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIAuthorizedUrlDAO- Parameters:
authorizedUrl- instance of the AuthorizedUrl object to insertplugin- the Plugin
-
load
public AuthorizedUrl load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIAuthorizedUrlDAO- Parameters:
nKey- The identifier of the authorizedUrlplugin- the Plugin- Returns:
- The instance of the authorizedUrl
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceIAuthorizedUrlDAO- Parameters:
nKey- The identifier of the AuthorizedUrl to deleteplugin- the Plugin
-
store
public void store(AuthorizedUrl authorizedUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIAuthorizedUrlDAO- Parameters:
authorizedUrl- the reference of the AuthorizedUrlplugin- the Plugin
-
selectAuthorizedUrlsList
public List<AuthorizedUrl> selectAuthorizedUrlsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the authorizedUrl objects and returns them as a list- Specified by:
selectAuthorizedUrlsListin interfaceIAuthorizedUrlDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the authorizedUrl objects
-
selectAuthorizedUrlsByApplicationCode
public List<AuthorizedUrl> selectAuthorizedUrlsByApplicationCode(String strApplicationCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the authorizedUrl objects filtered by application codeand returns them as a list- Specified by:
selectAuthorizedUrlsByApplicationCodein interfaceIAuthorizedUrlDAO- Parameters:
strApplicationCode- the application codeplugin- the Plugin- Returns:
- The list which contains the data of all the authorizedUrl objects
-
selectIdAuthorizedUrlsList
public List<Integer> selectIdAuthorizedUrlsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the authorizedUrl objects and returns them as a list- Specified by:
selectIdAuthorizedUrlsListin interfaceIAuthorizedUrlDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the authorizedUrl objects
-
selectAuthorizedUrlsReferenceList
public fr.paris.lutece.util.ReferenceList selectAuthorizedUrlsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the authorizedUrl objects and returns them as a referenceList- Specified by:
selectAuthorizedUrlsReferenceListin interfaceIAuthorizedUrlDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the authorizedUrl objects
-
-