@Deprecated @ProviderType public interface SubscriptionPersistence extends BasePersistence<Subscription>
Caching information and settings can be found in portal.properties
SubscriptionPersistenceImpl
,
SubscriptionUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(List<Subscription> subscriptions)
Deprecated.
Caches the subscriptions in the entity cache if it is enabled.
|
void |
cacheResult(Subscription subscription)
Deprecated.
Caches the subscription in the entity cache if it is enabled.
|
int |
countAll()
Deprecated.
Returns the number of subscriptions.
|
int |
countByC_C_C(long companyId,
long classNameId,
long classPK)
Deprecated.
Returns the number of subscriptions where companyId = ? and classNameId = ? and classPK = ?.
|
int |
countByC_U_C_C(long companyId,
long userId,
long classNameId,
long classPK)
Deprecated.
Returns the number of subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = ?.
|
int |
countByC_U_C_C(long companyId,
long userId,
long classNameId,
long[] classPKs)
Deprecated.
Returns the number of subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = any ?.
|
int |
countByG_U(long groupId,
long userId)
Deprecated.
Returns the number of subscriptions where groupId = ? and userId = ?.
|
int |
countByU_C(long userId,
long classNameId)
Deprecated.
Returns the number of subscriptions where userId = ? and classNameId = ?.
|
int |
countByUserId(long userId)
Deprecated.
Returns the number of subscriptions where userId = ?.
|
Subscription |
create(long subscriptionId)
Deprecated.
Creates a new subscription with the primary key.
|
Subscription |
fetchByC_C_C_First(long companyId,
long classNameId,
long classPK,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the first subscription in the ordered set where companyId = ? and classNameId = ? and classPK = ?.
|
Subscription |
fetchByC_C_C_Last(long companyId,
long classNameId,
long classPK,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the last subscription in the ordered set where companyId = ? and classNameId = ? and classPK = ?.
|
Subscription |
fetchByC_U_C_C(long companyId,
long userId,
long classNameId,
long classPK)
Deprecated.
Returns the subscription where companyId = ? and userId = ? and classNameId = ? and classPK = ? or returns
null if it could not be found. |
Subscription |
fetchByC_U_C_C(long companyId,
long userId,
long classNameId,
long classPK,
boolean retrieveFromCache)
Deprecated.
Returns the subscription where companyId = ? and userId = ? and classNameId = ? and classPK = ? or returns
null if it could not be found, optionally using the finder cache. |
Subscription |
fetchByG_U_First(long groupId,
long userId,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the first subscription in the ordered set where groupId = ? and userId = ?.
|
Subscription |
fetchByG_U_Last(long groupId,
long userId,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the last subscription in the ordered set where groupId = ? and userId = ?.
|
Subscription |
fetchByPrimaryKey(long subscriptionId)
Deprecated.
Returns the subscription with the primary key or returns
null if it could not be found. |
Map<Serializable,Subscription> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Deprecated.
|
Subscription |
fetchByU_C_First(long userId,
long classNameId,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the first subscription in the ordered set where userId = ? and classNameId = ?.
|
Subscription |
fetchByU_C_Last(long userId,
long classNameId,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the last subscription in the ordered set where userId = ? and classNameId = ?.
|
Subscription |
fetchByUserId_First(long userId,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the first subscription in the ordered set where userId = ?.
|
Subscription |
fetchByUserId_Last(long userId,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the last subscription in the ordered set where userId = ?.
|
List<Subscription> |
findAll()
Deprecated.
Returns all the subscriptions.
|
List<Subscription> |
findAll(int start,
int end)
Deprecated.
Returns a range of all the subscriptions.
|
List<Subscription> |
findAll(int start,
int end,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns an ordered range of all the subscriptions.
|
List<Subscription> |
findAll(int start,
int end,
OrderByComparator<Subscription> orderByComparator,
boolean retrieveFromCache)
Deprecated.
Returns an ordered range of all the subscriptions.
|
Subscription |
findByC_C_C_First(long companyId,
long classNameId,
long classPK,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the first subscription in the ordered set where companyId = ? and classNameId = ? and classPK = ?.
|
Subscription |
findByC_C_C_Last(long companyId,
long classNameId,
long classPK,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the last subscription in the ordered set where companyId = ? and classNameId = ? and classPK = ?.
|
Subscription[] |
findByC_C_C_PrevAndNext(long subscriptionId,
long companyId,
long classNameId,
long classPK,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the subscriptions before and after the current subscription in the ordered set where companyId = ? and classNameId = ? and classPK = ?.
|
List<Subscription> |
findByC_C_C(long companyId,
long classNameId,
long classPK)
Deprecated.
Returns all the subscriptions where companyId = ? and classNameId = ? and classPK = ?.
|
List<Subscription> |
findByC_C_C(long companyId,
long classNameId,
long classPK,
int start,
int end)
Deprecated.
Returns a range of all the subscriptions where companyId = ? and classNameId = ? and classPK = ?.
|
List<Subscription> |
findByC_C_C(long companyId,
long classNameId,
long classPK,
int start,
int end,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns an ordered range of all the subscriptions where companyId = ? and classNameId = ? and classPK = ?.
|
List<Subscription> |
findByC_C_C(long companyId,
long classNameId,
long classPK,
int start,
int end,
OrderByComparator<Subscription> orderByComparator,
boolean retrieveFromCache)
Deprecated.
Returns an ordered range of all the subscriptions where companyId = ? and classNameId = ? and classPK = ?.
|
Subscription |
findByC_U_C_C(long companyId,
long userId,
long classNameId,
long classPK)
Deprecated.
Returns the subscription where companyId = ? and userId = ? and classNameId = ? and classPK = ? or throws a
NoSuchSubscriptionException if it could not be found. |
List<Subscription> |
findByC_U_C_C(long companyId,
long userId,
long classNameId,
long[] classPKs)
Deprecated.
Returns all the subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = any ?.
|
List<Subscription> |
findByC_U_C_C(long companyId,
long userId,
long classNameId,
long[] classPKs,
int start,
int end)
Deprecated.
Returns a range of all the subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = any ?.
|
List<Subscription> |
findByC_U_C_C(long companyId,
long userId,
long classNameId,
long[] classPKs,
int start,
int end,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns an ordered range of all the subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = any ?.
|
List<Subscription> |
findByC_U_C_C(long companyId,
long userId,
long classNameId,
long[] classPKs,
int start,
int end,
OrderByComparator<Subscription> orderByComparator,
boolean retrieveFromCache)
Deprecated.
Returns an ordered range of all the subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = ?, optionally using the finder cache.
|
Subscription |
findByG_U_First(long groupId,
long userId,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the first subscription in the ordered set where groupId = ? and userId = ?.
|
Subscription |
findByG_U_Last(long groupId,
long userId,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the last subscription in the ordered set where groupId = ? and userId = ?.
|
Subscription[] |
findByG_U_PrevAndNext(long subscriptionId,
long groupId,
long userId,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the subscriptions before and after the current subscription in the ordered set where groupId = ? and userId = ?.
|
List<Subscription> |
findByG_U(long groupId,
long userId)
Deprecated.
Returns all the subscriptions where groupId = ? and userId = ?.
|
List<Subscription> |
findByG_U(long groupId,
long userId,
int start,
int end)
Deprecated.
Returns a range of all the subscriptions where groupId = ? and userId = ?.
|
List<Subscription> |
findByG_U(long groupId,
long userId,
int start,
int end,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns an ordered range of all the subscriptions where groupId = ? and userId = ?.
|
List<Subscription> |
findByG_U(long groupId,
long userId,
int start,
int end,
OrderByComparator<Subscription> orderByComparator,
boolean retrieveFromCache)
Deprecated.
Returns an ordered range of all the subscriptions where groupId = ? and userId = ?.
|
Subscription |
findByPrimaryKey(long subscriptionId)
Deprecated.
Returns the subscription with the primary key or throws a
NoSuchSubscriptionException if it could not be found. |
Subscription |
findByU_C_First(long userId,
long classNameId,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the first subscription in the ordered set where userId = ? and classNameId = ?.
|
Subscription |
findByU_C_Last(long userId,
long classNameId,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the last subscription in the ordered set where userId = ? and classNameId = ?.
|
Subscription[] |
findByU_C_PrevAndNext(long subscriptionId,
long userId,
long classNameId,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the subscriptions before and after the current subscription in the ordered set where userId = ? and classNameId = ?.
|
List<Subscription> |
findByU_C(long userId,
long classNameId)
Deprecated.
Returns all the subscriptions where userId = ? and classNameId = ?.
|
List<Subscription> |
findByU_C(long userId,
long classNameId,
int start,
int end)
Deprecated.
Returns a range of all the subscriptions where userId = ? and classNameId = ?.
|
List<Subscription> |
findByU_C(long userId,
long classNameId,
int start,
int end,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns an ordered range of all the subscriptions where userId = ? and classNameId = ?.
|
List<Subscription> |
findByU_C(long userId,
long classNameId,
int start,
int end,
OrderByComparator<Subscription> orderByComparator,
boolean retrieveFromCache)
Deprecated.
Returns an ordered range of all the subscriptions where userId = ? and classNameId = ?.
|
Subscription |
findByUserId_First(long userId,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the first subscription in the ordered set where userId = ?.
|
Subscription |
findByUserId_Last(long userId,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the last subscription in the ordered set where userId = ?.
|
Subscription[] |
findByUserId_PrevAndNext(long subscriptionId,
long userId,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns the subscriptions before and after the current subscription in the ordered set where userId = ?.
|
List<Subscription> |
findByUserId(long userId)
Deprecated.
Returns all the subscriptions where userId = ?.
|
List<Subscription> |
findByUserId(long userId,
int start,
int end)
Deprecated.
Returns a range of all the subscriptions where userId = ?.
|
List<Subscription> |
findByUserId(long userId,
int start,
int end,
OrderByComparator<Subscription> orderByComparator)
Deprecated.
Returns an ordered range of all the subscriptions where userId = ?.
|
List<Subscription> |
findByUserId(long userId,
int start,
int end,
OrderByComparator<Subscription> orderByComparator,
boolean retrieveFromCache)
Deprecated.
Returns an ordered range of all the subscriptions where userId = ?.
|
Subscription |
remove(long subscriptionId)
Deprecated.
Removes the subscription with the primary key from the database.
|
void |
removeAll()
Deprecated.
Removes all the subscriptions from the database.
|
void |
removeByC_C_C(long companyId,
long classNameId,
long classPK)
Deprecated.
Removes all the subscriptions where companyId = ? and classNameId = ? and classPK = ? from the database.
|
Subscription |
removeByC_U_C_C(long companyId,
long userId,
long classNameId,
long classPK)
Deprecated.
Removes the subscription where companyId = ? and userId = ? and classNameId = ? and classPK = ? from the database.
|
void |
removeByG_U(long groupId,
long userId)
Deprecated.
Removes all the subscriptions where groupId = ? and userId = ? from the database.
|
void |
removeByU_C(long userId,
long classNameId)
Deprecated.
Removes all the subscriptions where userId = ? and classNameId = ? from the database.
|
void |
removeByUserId(long userId)
Deprecated.
Removes all the subscriptions where userId = ? from the database.
|
Subscription |
updateImpl(Subscription subscription)
Deprecated.
|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
List<Subscription> findByUserId(long userId)
userId
- the user IDList<Subscription> findByUserId(long userId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDstart
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)List<Subscription> findByUserId(long userId, int start, int end, OrderByComparator<Subscription> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDstart
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<Subscription> findByUserId(long userId, int start, int end, OrderByComparator<Subscription> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDstart
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheSubscription findByUserId_First(long userId, OrderByComparator<Subscription> orderByComparator) throws NoSuchSubscriptionException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionException
- if a matching subscription could not be foundSubscription fetchByUserId_First(long userId, OrderByComparator<Subscription> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching subscription could not be foundSubscription findByUserId_Last(long userId, OrderByComparator<Subscription> orderByComparator) throws NoSuchSubscriptionException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionException
- if a matching subscription could not be foundSubscription fetchByUserId_Last(long userId, OrderByComparator<Subscription> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching subscription could not be foundSubscription[] findByUserId_PrevAndNext(long subscriptionId, long userId, OrderByComparator<Subscription> orderByComparator) throws NoSuchSubscriptionException
subscriptionId
- the primary key of the current subscriptionuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionException
- if a subscription with the primary key could not be foundvoid removeByUserId(long userId)
userId
- the user IDint countByUserId(long userId)
userId
- the user IDList<Subscription> findByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDList<Subscription> findByG_U(long groupId, long userId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDuserId
- the user IDstart
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)List<Subscription> findByG_U(long groupId, long userId, int start, int end, OrderByComparator<Subscription> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDuserId
- the user IDstart
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<Subscription> findByG_U(long groupId, long userId, int start, int end, OrderByComparator<Subscription> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDuserId
- the user IDstart
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheSubscription findByG_U_First(long groupId, long userId, OrderByComparator<Subscription> orderByComparator) throws NoSuchSubscriptionException
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionException
- if a matching subscription could not be foundSubscription fetchByG_U_First(long groupId, long userId, OrderByComparator<Subscription> orderByComparator)
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching subscription could not be foundSubscription findByG_U_Last(long groupId, long userId, OrderByComparator<Subscription> orderByComparator) throws NoSuchSubscriptionException
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionException
- if a matching subscription could not be foundSubscription fetchByG_U_Last(long groupId, long userId, OrderByComparator<Subscription> orderByComparator)
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching subscription could not be foundSubscription[] findByG_U_PrevAndNext(long subscriptionId, long groupId, long userId, OrderByComparator<Subscription> orderByComparator) throws NoSuchSubscriptionException
subscriptionId
- the primary key of the current subscriptiongroupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionException
- if a subscription with the primary key could not be foundvoid removeByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDint countByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDList<Subscription> findByU_C(long userId, long classNameId)
userId
- the user IDclassNameId
- the class name IDList<Subscription> findByU_C(long userId, long classNameId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDclassNameId
- the class name IDstart
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)List<Subscription> findByU_C(long userId, long classNameId, int start, int end, OrderByComparator<Subscription> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDclassNameId
- the class name IDstart
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<Subscription> findByU_C(long userId, long classNameId, int start, int end, OrderByComparator<Subscription> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDclassNameId
- the class name IDstart
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheSubscription findByU_C_First(long userId, long classNameId, OrderByComparator<Subscription> orderByComparator) throws NoSuchSubscriptionException
userId
- the user IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionException
- if a matching subscription could not be foundSubscription fetchByU_C_First(long userId, long classNameId, OrderByComparator<Subscription> orderByComparator)
userId
- the user IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching subscription could not be foundSubscription findByU_C_Last(long userId, long classNameId, OrderByComparator<Subscription> orderByComparator) throws NoSuchSubscriptionException
userId
- the user IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionException
- if a matching subscription could not be foundSubscription fetchByU_C_Last(long userId, long classNameId, OrderByComparator<Subscription> orderByComparator)
userId
- the user IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching subscription could not be foundSubscription[] findByU_C_PrevAndNext(long subscriptionId, long userId, long classNameId, OrderByComparator<Subscription> orderByComparator) throws NoSuchSubscriptionException
subscriptionId
- the primary key of the current subscriptionuserId
- the user IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionException
- if a subscription with the primary key could not be foundvoid removeByU_C(long userId, long classNameId)
userId
- the user IDclassNameId
- the class name IDint countByU_C(long userId, long classNameId)
userId
- the user IDclassNameId
- the class name IDList<Subscription> findByC_C_C(long companyId, long classNameId, long classPK)
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class pkList<Subscription> findByC_C_C(long companyId, long classNameId, long classPK, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)List<Subscription> findByC_C_C(long companyId, long classNameId, long classPK, int start, int end, OrderByComparator<Subscription> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<Subscription> findByC_C_C(long companyId, long classNameId, long classPK, int start, int end, OrderByComparator<Subscription> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheSubscription findByC_C_C_First(long companyId, long classNameId, long classPK, OrderByComparator<Subscription> orderByComparator) throws NoSuchSubscriptionException
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionException
- if a matching subscription could not be foundSubscription fetchByC_C_C_First(long companyId, long classNameId, long classPK, OrderByComparator<Subscription> orderByComparator)
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching subscription could not be foundSubscription findByC_C_C_Last(long companyId, long classNameId, long classPK, OrderByComparator<Subscription> orderByComparator) throws NoSuchSubscriptionException
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionException
- if a matching subscription could not be foundSubscription fetchByC_C_C_Last(long companyId, long classNameId, long classPK, OrderByComparator<Subscription> orderByComparator)
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching subscription could not be foundSubscription[] findByC_C_C_PrevAndNext(long subscriptionId, long companyId, long classNameId, long classPK, OrderByComparator<Subscription> orderByComparator) throws NoSuchSubscriptionException
subscriptionId
- the primary key of the current subscriptioncompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSubscriptionException
- if a subscription with the primary key could not be foundvoid removeByC_C_C(long companyId, long classNameId, long classPK)
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class pkint countByC_C_C(long companyId, long classNameId, long classPK)
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class pkList<Subscription> findByC_U_C_C(long companyId, long userId, long classNameId, long[] classPKs)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDuserId
- the user IDclassNameId
- the class name IDclassPKs
- the class pksList<Subscription> findByC_U_C_C(long companyId, long userId, long classNameId, long[] classPKs, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDuserId
- the user IDclassNameId
- the class name IDclassPKs
- the class pksstart
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)List<Subscription> findByC_U_C_C(long companyId, long userId, long classNameId, long[] classPKs, int start, int end, OrderByComparator<Subscription> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDuserId
- the user IDclassNameId
- the class name IDclassPKs
- the class pksstart
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<Subscription> findByC_U_C_C(long companyId, long userId, long classNameId, long[] classPKs, int start, int end, OrderByComparator<Subscription> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheSubscription findByC_U_C_C(long companyId, long userId, long classNameId, long classPK) throws NoSuchSubscriptionException
NoSuchSubscriptionException
if it could not be found.companyId
- the company IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pkNoSuchSubscriptionException
- if a matching subscription could not be foundSubscription fetchByC_U_C_C(long companyId, long userId, long classNameId, long classPK)
null
if it could not be found. Uses the finder cache.companyId
- the company IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pknull
if a matching subscription could not be foundSubscription fetchByC_U_C_C(long companyId, long userId, long classNameId, long classPK, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pkretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching subscription could not be foundSubscription removeByC_U_C_C(long companyId, long userId, long classNameId, long classPK) throws NoSuchSubscriptionException
companyId
- the company IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pkNoSuchSubscriptionException
int countByC_U_C_C(long companyId, long userId, long classNameId, long classPK)
companyId
- the company IDuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pkint countByC_U_C_C(long companyId, long userId, long classNameId, long[] classPKs)
companyId
- the company IDuserId
- the user IDclassNameId
- the class name IDclassPKs
- the class pksvoid cacheResult(Subscription subscription)
subscription
- the subscriptionvoid cacheResult(List<Subscription> subscriptions)
subscriptions
- the subscriptionsSubscription create(long subscriptionId)
subscriptionId
- the primary key for the new subscriptionSubscription remove(long subscriptionId) throws NoSuchSubscriptionException
subscriptionId
- the primary key of the subscriptionNoSuchSubscriptionException
- if a subscription with the primary key could not be foundSubscription updateImpl(Subscription subscription)
Subscription findByPrimaryKey(long subscriptionId) throws NoSuchSubscriptionException
NoSuchSubscriptionException
if it could not be found.subscriptionId
- the primary key of the subscriptionNoSuchSubscriptionException
- if a subscription with the primary key could not be foundSubscription fetchByPrimaryKey(long subscriptionId)
null
if it could not be found.subscriptionId
- the primary key of the subscriptionnull
if a subscription with the primary key could not be foundMap<Serializable,Subscription> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys
in interface BasePersistence<Subscription>
List<Subscription> findAll()
List<Subscription> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)List<Subscription> findAll(int start, int end, OrderByComparator<Subscription> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<Subscription> findAll(int start, int end, OrderByComparator<Subscription> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from SubscriptionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of subscriptionsend
- the upper bound of the range of subscriptions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()