public class AHCatEntriesUtil extends Object
AHCatEntriesPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
AHCatEntriesPersistence
,
AHCatEntriesPersistenceImpl
Constructor and Description |
---|
AHCatEntriesUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addAHOffer(long pk,
AHOffer ahOffer)
Adds an association between the a h cat entries and the a h offer.
|
static void |
addAHOffer(long pk,
long ahOfferPK)
Adds an association between the a h cat entries and the a h offer.
|
static void |
addAHOffers(long pk,
List<AHOffer> ahOffers)
Adds an association between the a h cat entries and the a h offers.
|
static void |
addAHOffers(long pk,
long[] ahOfferPKs)
Adds an association between the a h cat entries and the a h offers.
|
static void |
addAHSubscription(long pk,
AHSubscription ahSubscription)
Adds an association between the a h cat entries and the a h subscription.
|
static void |
addAHSubscription(long pk,
long ahSubscriptionPK)
Adds an association between the a h cat entries and the a h subscription.
|
static void |
addAHSubscriptions(long pk,
List<AHSubscription> ahSubscriptions)
Adds an association between the a h cat entries and the a h subscriptions.
|
static void |
addAHSubscriptions(long pk,
long[] ahSubscriptionPKs)
Adds an association between the a h cat entries and the a h subscriptions.
|
static void |
cacheResult(AHCatEntries ahCatEntries)
Caches the a h cat entries in the entity cache if it is enabled.
|
static void |
cacheResult(List<AHCatEntries> ahCatEntrieses)
Caches the a h cat entrieses in the entity cache if it is enabled.
|
static void |
clearAHOffers(long pk)
Clears all associations between the a h cat entries and its a h offers.
|
static void |
clearAHSubscriptions(long pk)
Clears all associations between the a h cat entries and its a h subscriptions.
|
static void |
clearCache() |
static void |
clearCache(AHCatEntries ahCatEntries) |
static boolean |
containsAHOffer(long pk,
long ahOfferPK)
Returns
true if the a h offer is associated with the a h cat entries. |
static boolean |
containsAHOffers(long pk)
Returns
true if the a h cat entries has any a h offers associated with it. |
static boolean |
containsAHSubscription(long pk,
long ahSubscriptionPK)
Returns
true if the a h subscription is associated with the a h cat entries. |
static boolean |
containsAHSubscriptions(long pk)
Returns
true if the a h cat entries has any a h subscriptions associated with it. |
static int |
countAll()
Returns the number of a h cat entrieses.
|
static int |
countBycat(long catId)
Returns the number of a h cat entrieses where catId = ?.
|
static int |
countByitem(long itemId)
Returns the number of a h cat entrieses where itemId = ?.
|
static int |
countByparent(long parentId)
Returns the number of a h cat entrieses where parentId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static AHCatEntries |
create(long itemId)
Creates a new a h cat entries with the primary key.
|
static AHCatEntries |
fetchBycat_First(long catId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first a h cat entries in the ordered set where catId = ?.
|
static AHCatEntries |
fetchBycat_Last(long catId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last a h cat entries in the ordered set where catId = ?.
|
static AHCatEntries |
fetchByitem_First(long itemId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first a h cat entries in the ordered set where itemId = ?.
|
static AHCatEntries |
fetchByitem_Last(long itemId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last a h cat entries in the ordered set where itemId = ?.
|
static AHCatEntries |
fetchByparent_First(long parentId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first a h cat entries in the ordered set where parentId = ?.
|
static AHCatEntries |
fetchByparent_Last(long parentId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last a h cat entries in the ordered set where parentId = ?.
|
static AHCatEntries |
fetchByPrimaryKey(long itemId)
Returns the a h cat entries with the primary key or returns
null if it could not be found. |
static List<AHCatEntries> |
findAll()
Returns all the a h cat entrieses.
|
static List<AHCatEntries> |
findAll(int start,
int end)
Returns a range of all the a h cat entrieses.
|
static List<AHCatEntries> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the a h cat entrieses.
|
static AHCatEntries |
findBycat_First(long catId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first a h cat entries in the ordered set where catId = ?.
|
static AHCatEntries |
findBycat_Last(long catId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last a h cat entries in the ordered set where catId = ?.
|
static AHCatEntries[] |
findBycat_PrevAndNext(long itemId,
long catId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the a h cat entrieses before and after the current a h cat entries in the ordered set where catId = ?.
|
static List<AHCatEntries> |
findBycat(long catId)
Returns all the a h cat entrieses where catId = ?.
|
static List<AHCatEntries> |
findBycat(long catId,
int start,
int end)
Returns a range of all the a h cat entrieses where catId = ?.
|
static List<AHCatEntries> |
findBycat(long catId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the a h cat entrieses where catId = ?.
|
static AHCatEntries |
findByitem_First(long itemId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first a h cat entries in the ordered set where itemId = ?.
|
static AHCatEntries |
findByitem_Last(long itemId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last a h cat entries in the ordered set where itemId = ?.
|
static List<AHCatEntries> |
findByitem(long itemId)
Returns all the a h cat entrieses where itemId = ?.
|
static List<AHCatEntries> |
findByitem(long itemId,
int start,
int end)
Returns a range of all the a h cat entrieses where itemId = ?.
|
static List<AHCatEntries> |
findByitem(long itemId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the a h cat entrieses where itemId = ?.
|
static AHCatEntries |
findByparent_First(long parentId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first a h cat entries in the ordered set where parentId = ?.
|
static AHCatEntries |
findByparent_Last(long parentId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last a h cat entries in the ordered set where parentId = ?.
|
static AHCatEntries[] |
findByparent_PrevAndNext(long itemId,
long parentId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the a h cat entrieses before and after the current a h cat entries in the ordered set where parentId = ?.
|
static List<AHCatEntries> |
findByparent(long parentId)
Returns all the a h cat entrieses where parentId = ?.
|
static List<AHCatEntries> |
findByparent(long parentId,
int start,
int end)
Returns a range of all the a h cat entrieses where parentId = ?.
|
static List<AHCatEntries> |
findByparent(long parentId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the a h cat entrieses where parentId = ?.
|
static AHCatEntries |
findByPrimaryKey(long itemId)
Returns the a h cat entries with the primary key or throws a
NoSuchAHCatEntriesException if it could not be found. |
static List<AHCatEntries> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static List<AHCatEntries> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static List<AHCatEntries> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) |
static List<AHOffer> |
getAHOffers(long pk)
Returns all the a h offers associated with the a h cat entries.
|
static List<AHOffer> |
getAHOffers(long pk,
int start,
int end)
Returns a range of all the a h offers associated with the a h cat entries.
|
static List<AHOffer> |
getAHOffers(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the a h offers associated with the a h cat entries.
|
static int |
getAHOffersSize(long pk)
Returns the number of a h offers associated with the a h cat entries.
|
static List<AHSubscription> |
getAHSubscriptions(long pk)
Returns all the a h subscriptions associated with the a h cat entries.
|
static List<AHSubscription> |
getAHSubscriptions(long pk,
int start,
int end)
Returns a range of all the a h subscriptions associated with the a h cat entries.
|
static List<AHSubscription> |
getAHSubscriptions(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the a h subscriptions associated with the a h cat entries.
|
static int |
getAHSubscriptionsSize(long pk)
Returns the number of a h subscriptions associated with the a h cat entries.
|
static AHCatEntriesPersistence |
getPersistence() |
static AHCatEntries |
remove(long itemId)
Removes the a h cat entries with the primary key from the database.
|
static void |
removeAHOffer(long pk,
AHOffer ahOffer)
Removes the association between the a h cat entries and the a h offer.
|
static void |
removeAHOffer(long pk,
long ahOfferPK)
Removes the association between the a h cat entries and the a h offer.
|
static void |
removeAHOffers(long pk,
List<AHOffer> ahOffers)
Removes the association between the a h cat entries and the a h offers.
|
static void |
removeAHOffers(long pk,
long[] ahOfferPKs)
Removes the association between the a h cat entries and the a h offers.
|
static void |
removeAHSubscription(long pk,
AHSubscription ahSubscription)
Removes the association between the a h cat entries and the a h subscription.
|
static void |
removeAHSubscription(long pk,
long ahSubscriptionPK)
Removes the association between the a h cat entries and the a h subscription.
|
static void |
removeAHSubscriptions(long pk,
List<AHSubscription> ahSubscriptions)
Removes the association between the a h cat entries and the a h subscriptions.
|
static void |
removeAHSubscriptions(long pk,
long[] ahSubscriptionPKs)
Removes the association between the a h cat entries and the a h subscriptions.
|
static void |
removeAll()
Removes all the a h cat entrieses from the database.
|
static void |
removeBycat(long catId)
Removes all the a h cat entrieses where catId = ? from the database.
|
static void |
removeByitem(long itemId)
Removes all the a h cat entrieses where itemId = ? from the database.
|
static void |
removeByparent(long parentId)
Removes all the a h cat entrieses where parentId = ? from the database.
|
static void |
setAHOffers(long pk,
List<AHOffer> ahOffers)
Sets the a h offers associated with the a h cat entries, removing and adding associations as necessary.
|
static void |
setAHOffers(long pk,
long[] ahOfferPKs)
Sets the a h offers associated with the a h cat entries, removing and adding associations as necessary.
|
static void |
setAHSubscriptions(long pk,
List<AHSubscription> ahSubscriptions)
Sets the a h subscriptions associated with the a h cat entries, removing and adding associations as necessary.
|
static void |
setAHSubscriptions(long pk,
long[] ahSubscriptionPKs)
Sets the a h subscriptions associated with the a h cat entries, removing and adding associations as necessary.
|
void |
setPersistence(AHCatEntriesPersistence persistence)
Deprecated.
As of 6.2.0
|
static AHCatEntries |
update(AHCatEntries ahCatEntries) |
static AHCatEntries |
update(AHCatEntries ahCatEntries,
com.liferay.portal.service.ServiceContext serviceContext) |
static AHCatEntries |
updateImpl(AHCatEntries ahCatEntries) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(AHCatEntries ahCatEntries)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<AHCatEntries> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<AHCatEntries> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<AHCatEntries> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static AHCatEntries update(AHCatEntries ahCatEntries) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static AHCatEntries update(AHCatEntries ahCatEntries, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)
public static List<AHCatEntries> findBycat(long catId) throws com.liferay.portal.kernel.exception.SystemException
catId
- the cat IDcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHCatEntries> findBycat(long catId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
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 AHCatEntriesModelImpl
. 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.
catId
- the cat IDstart
- the lower bound of the range of a h cat entriesesend
- the upper bound of the range of a h cat entrieses (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHCatEntries> findBycat(long catId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
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 AHCatEntriesModelImpl
. 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.
catId
- the cat IDstart
- the lower bound of the range of a h cat entriesesend
- the upper bound of the range of a h cat entrieses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHCatEntries findBycat_First(long catId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHCatEntriesException
catId
- the cat IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAHCatEntriesException
- if a matching a h cat entries could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHCatEntries fetchBycat_First(long catId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
catId
- the cat IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching a h cat entries could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHCatEntries findBycat_Last(long catId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHCatEntriesException
catId
- the cat IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAHCatEntriesException
- if a matching a h cat entries could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHCatEntries fetchBycat_Last(long catId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
catId
- the cat IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching a h cat entries could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHCatEntries[] findBycat_PrevAndNext(long itemId, long catId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHCatEntriesException
itemId
- the primary key of the current a h cat entriescatId
- the cat IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAHCatEntriesException
- if a a h cat entries with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void removeBycat(long catId) throws com.liferay.portal.kernel.exception.SystemException
catId
- the cat IDcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static int countBycat(long catId) throws com.liferay.portal.kernel.exception.SystemException
catId
- the cat IDcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHCatEntries> findByparent(long parentId) throws com.liferay.portal.kernel.exception.SystemException
parentId
- the parent IDcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHCatEntries> findByparent(long parentId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
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 AHCatEntriesModelImpl
. 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.
parentId
- the parent IDstart
- the lower bound of the range of a h cat entriesesend
- the upper bound of the range of a h cat entrieses (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHCatEntries> findByparent(long parentId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
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 AHCatEntriesModelImpl
. 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.
parentId
- the parent IDstart
- the lower bound of the range of a h cat entriesesend
- the upper bound of the range of a h cat entrieses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHCatEntries findByparent_First(long parentId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHCatEntriesException
parentId
- the parent IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAHCatEntriesException
- if a matching a h cat entries could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHCatEntries fetchByparent_First(long parentId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
parentId
- the parent IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching a h cat entries could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHCatEntries findByparent_Last(long parentId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHCatEntriesException
parentId
- the parent IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAHCatEntriesException
- if a matching a h cat entries could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHCatEntries fetchByparent_Last(long parentId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
parentId
- the parent IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching a h cat entries could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHCatEntries[] findByparent_PrevAndNext(long itemId, long parentId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHCatEntriesException
itemId
- the primary key of the current a h cat entriesparentId
- the parent IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAHCatEntriesException
- if a a h cat entries with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void removeByparent(long parentId) throws com.liferay.portal.kernel.exception.SystemException
parentId
- the parent IDcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static int countByparent(long parentId) throws com.liferay.portal.kernel.exception.SystemException
parentId
- the parent IDcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHCatEntries> findByitem(long itemId) throws com.liferay.portal.kernel.exception.SystemException
itemId
- the item IDcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHCatEntries> findByitem(long itemId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
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 AHCatEntriesModelImpl
. 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.
itemId
- the item IDstart
- the lower bound of the range of a h cat entriesesend
- the upper bound of the range of a h cat entrieses (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHCatEntries> findByitem(long itemId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
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 AHCatEntriesModelImpl
. 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.
itemId
- the item IDstart
- the lower bound of the range of a h cat entriesesend
- the upper bound of the range of a h cat entrieses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHCatEntries findByitem_First(long itemId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHCatEntriesException
itemId
- the item IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAHCatEntriesException
- if a matching a h cat entries could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHCatEntries fetchByitem_First(long itemId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
itemId
- the item IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching a h cat entries could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHCatEntries findByitem_Last(long itemId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHCatEntriesException
itemId
- the item IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAHCatEntriesException
- if a matching a h cat entries could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHCatEntries fetchByitem_Last(long itemId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
itemId
- the item IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching a h cat entries could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void removeByitem(long itemId) throws com.liferay.portal.kernel.exception.SystemException
itemId
- the item IDcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static int countByitem(long itemId) throws com.liferay.portal.kernel.exception.SystemException
itemId
- the item IDcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void cacheResult(AHCatEntries ahCatEntries)
ahCatEntries
- the a h cat entriespublic static void cacheResult(List<AHCatEntries> ahCatEntrieses)
ahCatEntrieses
- the a h cat entriesespublic static AHCatEntries create(long itemId)
itemId
- the primary key for the new a h cat entriespublic static AHCatEntries remove(long itemId) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHCatEntriesException
itemId
- the primary key of the a h cat entriesNoSuchAHCatEntriesException
- if a a h cat entries with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHCatEntries updateImpl(AHCatEntries ahCatEntries) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
public static AHCatEntries findByPrimaryKey(long itemId) throws com.liferay.portal.kernel.exception.SystemException, NoSuchAHCatEntriesException
NoSuchAHCatEntriesException
if it could not be found.itemId
- the primary key of the a h cat entriesNoSuchAHCatEntriesException
- if a a h cat entries with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHCatEntries fetchByPrimaryKey(long itemId) throws com.liferay.portal.kernel.exception.SystemException
null
if it could not be found.itemId
- the primary key of the a h cat entriesnull
if a a h cat entries with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHCatEntries> findAll() throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHCatEntries> findAll(int start, int end) throws com.liferay.portal.kernel.exception.SystemException
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 AHCatEntriesModelImpl
. 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 a h cat entriesesend
- the upper bound of the range of a h cat entrieses (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHCatEntries> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
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 AHCatEntriesModelImpl
. 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 a h cat entriesesend
- the upper bound of the range of a h cat entrieses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void removeAll() throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static int countAll() throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHSubscription> getAHSubscriptions(long pk) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriescom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHSubscription> getAHSubscriptions(long pk, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
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 AHCatEntriesModelImpl
. 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.
pk
- the primary key of the a h cat entriesstart
- the lower bound of the range of a h cat entriesesend
- the upper bound of the range of a h cat entrieses (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHSubscription> getAHSubscriptions(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
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 AHCatEntriesModelImpl
. 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.
pk
- the primary key of the a h cat entriesstart
- the lower bound of the range of a h cat entriesesend
- the upper bound of the range of a h cat entrieses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static int getAHSubscriptionsSize(long pk) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriescom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static boolean containsAHSubscription(long pk, long ahSubscriptionPK) throws com.liferay.portal.kernel.exception.SystemException
true
if the a h subscription is associated with the a h cat entries.pk
- the primary key of the a h cat entriesahSubscriptionPK
- the primary key of the a h subscriptiontrue
if the a h subscription is associated with the a h cat entries; false
otherwisecom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static boolean containsAHSubscriptions(long pk) throws com.liferay.portal.kernel.exception.SystemException
true
if the a h cat entries has any a h subscriptions associated with it.pk
- the primary key of the a h cat entries to check for associations with a h subscriptionstrue
if the a h cat entries has any a h subscriptions associated with it; false
otherwisecom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void addAHSubscription(long pk, long ahSubscriptionPK) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahSubscriptionPK
- the primary key of the a h subscriptioncom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void addAHSubscription(long pk, AHSubscription ahSubscription) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahSubscription
- the a h subscriptioncom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void addAHSubscriptions(long pk, long[] ahSubscriptionPKs) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahSubscriptionPKs
- the primary keys of the a h subscriptionscom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void addAHSubscriptions(long pk, List<AHSubscription> ahSubscriptions) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahSubscriptions
- the a h subscriptionscom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void clearAHSubscriptions(long pk) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entries to clear the associated a h subscriptions fromcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void removeAHSubscription(long pk, long ahSubscriptionPK) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahSubscriptionPK
- the primary key of the a h subscriptioncom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void removeAHSubscription(long pk, AHSubscription ahSubscription) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahSubscription
- the a h subscriptioncom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void removeAHSubscriptions(long pk, long[] ahSubscriptionPKs) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahSubscriptionPKs
- the primary keys of the a h subscriptionscom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void removeAHSubscriptions(long pk, List<AHSubscription> ahSubscriptions) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahSubscriptions
- the a h subscriptionscom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void setAHSubscriptions(long pk, long[] ahSubscriptionPKs) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahSubscriptionPKs
- the primary keys of the a h subscriptions to be associated with the a h cat entriescom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void setAHSubscriptions(long pk, List<AHSubscription> ahSubscriptions) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahSubscriptions
- the a h subscriptions to be associated with the a h cat entriescom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHOffer> getAHOffers(long pk) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriescom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHOffer> getAHOffers(long pk, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
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 AHCatEntriesModelImpl
. 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.
pk
- the primary key of the a h cat entriesstart
- the lower bound of the range of a h cat entriesesend
- the upper bound of the range of a h cat entrieses (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static List<AHOffer> getAHOffers(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException
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 AHCatEntriesModelImpl
. 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.
pk
- the primary key of the a h cat entriesstart
- the lower bound of the range of a h cat entriesesend
- the upper bound of the range of a h cat entrieses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static int getAHOffersSize(long pk) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriescom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static boolean containsAHOffer(long pk, long ahOfferPK) throws com.liferay.portal.kernel.exception.SystemException
true
if the a h offer is associated with the a h cat entries.pk
- the primary key of the a h cat entriesahOfferPK
- the primary key of the a h offertrue
if the a h offer is associated with the a h cat entries; false
otherwisecom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static boolean containsAHOffers(long pk) throws com.liferay.portal.kernel.exception.SystemException
true
if the a h cat entries has any a h offers associated with it.pk
- the primary key of the a h cat entries to check for associations with a h offerstrue
if the a h cat entries has any a h offers associated with it; false
otherwisecom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void addAHOffer(long pk, long ahOfferPK) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahOfferPK
- the primary key of the a h offercom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void addAHOffer(long pk, AHOffer ahOffer) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahOffer
- the a h offercom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void addAHOffers(long pk, long[] ahOfferPKs) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahOfferPKs
- the primary keys of the a h offerscom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void addAHOffers(long pk, List<AHOffer> ahOffers) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahOffers
- the a h offerscom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void clearAHOffers(long pk) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entries to clear the associated a h offers fromcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void removeAHOffer(long pk, long ahOfferPK) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahOfferPK
- the primary key of the a h offercom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void removeAHOffer(long pk, AHOffer ahOffer) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahOffer
- the a h offercom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void removeAHOffers(long pk, long[] ahOfferPKs) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahOfferPKs
- the primary keys of the a h offerscom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void removeAHOffers(long pk, List<AHOffer> ahOffers) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahOffers
- the a h offerscom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void setAHOffers(long pk, long[] ahOfferPKs) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahOfferPKs
- the primary keys of the a h offers to be associated with the a h cat entriescom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static void setAHOffers(long pk, List<AHOffer> ahOffers) throws com.liferay.portal.kernel.exception.SystemException
pk
- the primary key of the a h cat entriesahOffers
- the a h offers to be associated with the a h cat entriescom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredpublic static AHCatEntriesPersistence getPersistence()
public void setPersistence(AHCatEntriesPersistence persistence)
Copyright © 2016 Fraunhofer FOKUS. All rights reserved.