Class SubscriptionHome
- java.lang.Object
-
- fr.paris.lutece.plugins.notificationstore.modules.broadcast.business.SubscriptionHome
-
public final class SubscriptionHome extends Object
This class provides instances management methods (create, find, ...) for Subscription objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Subscriptioncreate(Subscription subscription)Create an instance of the subscription classstatic SubscriptionfindByPrimaryKey(int nKey)Returns an instance of a subscription whose identifier is specified in parameterstatic List<Integer>getIdSubscriptionsList()Load the id of all the subscription objects and returns them as a liststatic List<Subscription>getSubscriptionsList()Load the data of all the subscription objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListgetSubscriptionsReferenceList()Load the data of all the subscription objects and returns them as a referenceListstatic voidremove(int nKey)Remove the subscription whose identifier is specified in parameterstatic Subscriptionupdate(Subscription subscription)Update of the subscription which is specified in parameter
-
-
-
Method Detail
-
create
public static Subscription create(Subscription subscription)
Create an instance of the subscription class- Parameters:
subscription- The instance of the Subscription which contains the informations to store- Returns:
- The instance of subscription which has been created with its primary key.
-
update
public static Subscription update(Subscription subscription)
Update of the subscription which is specified in parameter- Parameters:
subscription- The instance of the Subscription which contains the data to store- Returns:
- The instance of the subscription which has been updated
-
remove
public static void remove(int nKey)
Remove the subscription whose identifier is specified in parameter- Parameters:
nKey- The subscription Id
-
findByPrimaryKey
public static Subscription findByPrimaryKey(int nKey)
Returns an instance of a subscription whose identifier is specified in parameter- Parameters:
nKey- The subscription primary key- Returns:
- an instance of Subscription
-
getSubscriptionsList
public static List<Subscription> getSubscriptionsList()
Load the data of all the subscription objects and returns them as a list- Returns:
- the list which contains the data of all the subscription objects
-
getIdSubscriptionsList
public static List<Integer> getIdSubscriptionsList()
Load the id of all the subscription objects and returns them as a list- Returns:
- the list which contains the id of all the subscription objects
-
getSubscriptionsReferenceList
public static fr.paris.lutece.util.ReferenceList getSubscriptionsReferenceList()
Load the data of all the subscription objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the subscription objects
-
-