Class SubscriptionLocalServiceBaseImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
,com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.PersistedModelLocalService
,com.liferay.portal.kernel.service.SubscriptionLocalService
- Direct Known Subclasses:
SubscriptionLocalServiceImpl
This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in SubscriptionLocalServiceImpl
.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.liferay.counter.kernel.service.CounterLocalService
Deprecated.protected com.liferay.portal.kernel.service.SubscriptionLocalService
Deprecated.protected com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.model.Subscription
addSubscription
(com.liferay.portal.kernel.model.Subscription subscription) Deprecated.Adds the subscription to the database.void
Deprecated.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) Deprecated.com.liferay.portal.kernel.model.Subscription
createSubscription
(long subscriptionId) Deprecated.Creates a new subscription with the primary key.com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) Deprecated.com.liferay.portal.kernel.model.Subscription
deleteSubscription
(long subscriptionId) Deprecated.Deletes the subscription with the primary key from the database.com.liferay.portal.kernel.model.Subscription
deleteSubscription
(com.liferay.portal.kernel.model.Subscription subscription) Deprecated.Deletes the subscription from the database.void
destroy()
Deprecated.<T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) Deprecated.int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) Deprecated.com.liferay.portal.kernel.dao.orm.DynamicQuery
Deprecated.<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Deprecated.Performs a dynamic query on the database and returns the matching rows.<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) Deprecated.Performs a dynamic query on the database and returns a range of the matching rows.<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) Deprecated.Performs a dynamic query on the database and returns an ordered range of the matching rows.long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Deprecated.Returns the number of rows matching the dynamic query.long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) Deprecated.Returns the number of rows matching the dynamic query.com.liferay.portal.kernel.model.Subscription
fetchSubscription
(long subscriptionId) Deprecated.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
Deprecated.com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Subscription>
Deprecated.com.liferay.counter.kernel.service.CounterLocalService
Deprecated.Returns the counter local service.com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
Deprecated.protected Class<?>
Deprecated.protected String
Deprecated.Deprecated.Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) Deprecated.com.liferay.portal.kernel.model.Subscription
getSubscription
(long subscriptionId) Deprecated.Returns the subscription with the primary key.com.liferay.portal.kernel.service.SubscriptionLocalService
Deprecated.Returns the subscription local service.com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Deprecated.Returns the subscription persistence.List<com.liferay.portal.kernel.model.Subscription>
getSubscriptions
(int start, int end) Deprecated.Returns a range of all the subscriptions.int
Deprecated.Returns the number of subscriptions.protected void
initActionableDynamicQuery
(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery) Deprecated.protected void
Deprecated.Performs a SQL query.void
setCounterLocalService
(com.liferay.counter.kernel.service.CounterLocalService counterLocalService) Deprecated.Sets the counter local service.void
setSubscriptionLocalService
(com.liferay.portal.kernel.service.SubscriptionLocalService subscriptionLocalService) Deprecated.Sets the subscription local service.void
setSubscriptionPersistence
(com.liferay.portal.kernel.service.persistence.SubscriptionPersistence subscriptionPersistence) Deprecated.Sets the subscription persistence.com.liferay.portal.kernel.model.Subscription
updateSubscription
(com.liferay.portal.kernel.model.Subscription subscription) Deprecated.Updates the subscription in the database or adds it if it does not yet exist.Methods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
Methods inherited from interface com.liferay.portal.kernel.service.SubscriptionLocalService
addSubscription, addSubscription, deleteSubscription, deleteSubscriptions, deleteSubscriptions, deleteSubscriptions, fetchSubscription, getSubscription, getSubscriptions, getSubscriptions, getUserSubscriptions, getUserSubscriptions, getUserSubscriptionsCount, isSubscribed, isSubscribed
-
Field Details
-
subscriptionLocalService
@BeanReference(type=com.liferay.portal.kernel.service.SubscriptionLocalService.class) protected com.liferay.portal.kernel.service.SubscriptionLocalService subscriptionLocalServiceDeprecated. -
subscriptionPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.SubscriptionPersistence.class) protected com.liferay.portal.kernel.service.persistence.SubscriptionPersistence subscriptionPersistenceDeprecated. -
counterLocalService
@BeanReference(type=com.liferay.counter.kernel.service.CounterLocalService.class) protected com.liferay.counter.kernel.service.CounterLocalService counterLocalServiceDeprecated.
-
-
Constructor Details
-
SubscriptionLocalServiceBaseImpl
public SubscriptionLocalServiceBaseImpl()Deprecated.
-
-
Method Details
-
addSubscription
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Subscription addSubscription(com.liferay.portal.kernel.model.Subscription subscription) Deprecated.Adds the subscription to the database. Also notifies the appropriate model listeners.Important: Inspect SubscriptionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
addSubscription
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
- Parameters:
subscription
- the subscription- Returns:
- the subscription that was added
-
createSubscription
@Transactional(enabled=false) public com.liferay.portal.kernel.model.Subscription createSubscription(long subscriptionId) Deprecated.Creates a new subscription with the primary key. Does not add the subscription to the database.- Specified by:
createSubscription
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
- Parameters:
subscriptionId
- the primary key for the new subscription- Returns:
- the new subscription
-
deleteSubscription
@Indexable(type=DELETE) public com.liferay.portal.kernel.model.Subscription deleteSubscription(long subscriptionId) throws com.liferay.portal.kernel.exception.PortalException Deprecated.Deletes the subscription with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect SubscriptionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteSubscription
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
- Parameters:
subscriptionId
- the primary key of the subscription- Returns:
- the subscription that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a subscription with the primary key could not be found
-
deleteSubscription
@Indexable(type=DELETE) public com.liferay.portal.kernel.model.Subscription deleteSubscription(com.liferay.portal.kernel.model.Subscription subscription) throws com.liferay.portal.kernel.exception.PortalException Deprecated.Deletes the subscription from the database. Also notifies the appropriate model listeners.Important: Inspect SubscriptionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteSubscription
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
- Parameters:
subscription
- the subscription- Returns:
- the subscription that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) Deprecated.- Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) Deprecated.- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()Deprecated.- Specified by:
dynamicQuery
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
-
dynamicQuery
Deprecated.Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) Deprecated.Performs a dynamic query on the database and returns a range of the matching rows.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.SubscriptionModelImpl
.- Specified by:
dynamicQuery
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) Deprecated.Performs a dynamic query on the database and returns an ordered range of the matching rows.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.SubscriptionModelImpl
.- Specified by:
dynamicQuery
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Deprecated.Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) Deprecated.Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchSubscription
public com.liferay.portal.kernel.model.Subscription fetchSubscription(long subscriptionId) Deprecated.- Specified by:
fetchSubscription
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
-
getSubscription
public com.liferay.portal.kernel.model.Subscription getSubscription(long subscriptionId) throws com.liferay.portal.kernel.exception.PortalException Deprecated.Returns the subscription with the primary key.- Specified by:
getSubscription
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
- Parameters:
subscriptionId
- the primary key of the subscription- Returns:
- the subscription
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a subscription with the primary key could not be found
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()Deprecated.- Specified by:
getActionableDynamicQuery
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()Deprecated.- Specified by:
getIndexableActionableDynamicQuery
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
-
initActionableDynamicQuery
protected void initActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery) Deprecated. -
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException Deprecated.- Specified by:
createPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Specified by:
createPersistedModel
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException Deprecated.- Specified by:
deletePersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Specified by:
deletePersistedModel
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Subscription> getBasePersistence()Deprecated.- Specified by:
getBasePersistence
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getPersistedModel
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException Deprecated.- Specified by:
getPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Specified by:
getPersistedModel
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getSubscriptions
Deprecated.Returns a range of all the subscriptions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.SubscriptionModelImpl
.- Specified by:
getSubscriptions
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
- Parameters:
start
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)- Returns:
- the range of subscriptions
-
getSubscriptionsCount
public int getSubscriptionsCount()Deprecated.Returns the number of subscriptions.- Specified by:
getSubscriptionsCount
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
- Returns:
- the number of subscriptions
-
updateSubscription
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Subscription updateSubscription(com.liferay.portal.kernel.model.Subscription subscription) Deprecated.Updates the subscription in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect SubscriptionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
updateSubscription
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
- Parameters:
subscription
- the subscription- Returns:
- the subscription that was updated
-
getSubscriptionLocalService
public com.liferay.portal.kernel.service.SubscriptionLocalService getSubscriptionLocalService()Deprecated.Returns the subscription local service.- Returns:
- the subscription local service
-
setSubscriptionLocalService
public void setSubscriptionLocalService(com.liferay.portal.kernel.service.SubscriptionLocalService subscriptionLocalService) Deprecated.Sets the subscription local service.- Parameters:
subscriptionLocalService
- the subscription local service
-
getSubscriptionPersistence
public com.liferay.portal.kernel.service.persistence.SubscriptionPersistence getSubscriptionPersistence()Deprecated.Returns the subscription persistence.- Returns:
- the subscription persistence
-
setSubscriptionPersistence
public void setSubscriptionPersistence(com.liferay.portal.kernel.service.persistence.SubscriptionPersistence subscriptionPersistence) Deprecated.Sets the subscription persistence.- Parameters:
subscriptionPersistence
- the subscription persistence
-
getCounterLocalService
public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService()Deprecated.Returns the counter local service.- Returns:
- the counter local service
-
setCounterLocalService
public void setCounterLocalService(com.liferay.counter.kernel.service.CounterLocalService counterLocalService) Deprecated.Sets the counter local service.- Parameters:
counterLocalService
- the counter local service
-
afterPropertiesSet
public void afterPropertiesSet()Deprecated. -
destroy
public void destroy()Deprecated. -
getOSGiServiceIdentifier
Deprecated.Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfacecom.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
- Specified by:
getOSGiServiceIdentifier
in interfacecom.liferay.portal.kernel.service.SubscriptionLocalService
- Returns:
- the OSGi service identifier
-
getModelClass
Deprecated. -
getModelClassName
Deprecated. -
runSQL
Deprecated.Performs a SQL query.- Parameters:
sql
- the sql query
-
com.liferay.subscription.service.impl.SubscriptionLocalServiceImpl