public final class FavoriteDAO extends Object implements IFavoriteDAO
Constructor and Description |
---|
FavoriteDAO() |
Modifier and Type | Method and Description |
---|---|
int |
countProviderNameRemoteId(String strProviderName,
String strRemoteId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Count the number of favorite for one provider name AND one remote id (should be 1 or 0)
|
void |
delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Favorite favorite,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Favorite |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
List<Favorite> |
selectActivatedFavoritesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the activated favorite objects and returns them as a list
|
List<Favorite> |
selectDefaultFavoritesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the default favorites list
|
List<Favorite> |
selectFavoritesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the favorite objects and returns them as a list
|
fr.paris.lutece.util.ReferenceList |
selectFavoritesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the favorite objects and returns them as a referenceList
|
List<Integer> |
selectIdFavoritesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the favorite objects and returns them as a list
|
List<Favorite> |
selectProviderNameFavoritesList(String strProviderName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the favorite provided by the ProviderName
|
void |
store(Favorite favorite,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Pluginpublic void insert(Favorite favorite, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IFavoriteDAO
favorite
- instance of the Favorite object to insertplugin
- the Pluginpublic Favorite load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IFavoriteDAO
nKey
- The identifier of the favoriteplugin
- the Pluginpublic void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IFavoriteDAO
nKey
- The identifier of the Favorite to deleteplugin
- the Pluginpublic void store(Favorite favorite, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IFavoriteDAO
favorite
- the reference of the Favoriteplugin
- the Pluginpublic List<Favorite> selectFavoritesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectFavoritesList
in interface IFavoriteDAO
plugin
- the Pluginpublic List<Integer> selectIdFavoritesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdFavoritesList
in interface IFavoriteDAO
plugin
- the Pluginpublic fr.paris.lutece.util.ReferenceList selectFavoritesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectFavoritesReferenceList
in interface IFavoriteDAO
plugin
- the Pluginpublic List<Favorite> selectActivatedFavoritesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectActivatedFavoritesList
in interface IFavoriteDAO
plugin
- the Pluginpublic List<Favorite> selectProviderNameFavoritesList(String strProviderName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectProviderNameFavoritesList
in interface IFavoriteDAO
strProviderName
- the favorite provider nameplugin
- the Pluginpublic int countProviderNameRemoteId(String strProviderName, String strRemoteId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
countProviderNameRemoteId
in interface IFavoriteDAO
strProviderName
- the favorite provider namestrRemoteId
- the favorite remote idplugin
- the Pluginpublic List<Favorite> selectDefaultFavoritesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectDefaultFavoritesList
in interface IFavoriteDAO
Copyright © 2019 City of Paris. All rights reserved.