public class CPDefinitionGroupedEntryUtil
extends java.lang.Object
com.liferay.commerce.product.type.grouped.service.persistence.impl.CPDefinitionGroupedEntryPersistenceImpl
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
CPDefinitionGroupedEntryPersistence
Constructor and Description |
---|
CPDefinitionGroupedEntryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CPDefinitionGroupedEntry cpDefinitionGroupedEntry)
Caches the cp definition grouped entry in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CPDefinitionGroupedEntry> cpDefinitionGroupedEntries)
Caches the cp definition grouped entries in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CPDefinitionGroupedEntry cpDefinitionGroupedEntry) |
static int |
countAll()
Returns the number of cp definition grouped entries.
|
static int |
countByC_E(long CPDefinitionId,
long entryCProductId)
Returns the number of cp definition grouped entries where CPDefinitionId = ? and entryCProductId = ?.
|
static int |
countByCPDefinitionId(long CPDefinitionId)
Returns the number of cp definition grouped entries where CPDefinitionId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp definition grouped entries where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of cp definition grouped entries where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of cp definition grouped entries where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CPDefinitionGroupedEntry |
create(long CPDefinitionGroupedEntryId)
Creates a new cp definition grouped entry with the primary key.
|
static CPDefinitionGroupedEntry |
fetchByC_E(long CPDefinitionId,
long entryCProductId)
Returns the cp definition grouped entry where CPDefinitionId = ? and entryCProductId = ? or returns
null if it could not be found. |
static CPDefinitionGroupedEntry |
fetchByC_E(long CPDefinitionId,
long entryCProductId,
boolean useFinderCache)
Returns the cp definition grouped entry where CPDefinitionId = ? and entryCProductId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPDefinitionGroupedEntry |
fetchByCPDefinitionId_First(long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns the first cp definition grouped entry in the ordered set where CPDefinitionId = ?.
|
static CPDefinitionGroupedEntry |
fetchByCPDefinitionId_Last(long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns the last cp definition grouped entry in the ordered set where CPDefinitionId = ?.
|
static CPDefinitionGroupedEntry |
fetchByPrimaryKey(long CPDefinitionGroupedEntryId)
Returns the cp definition grouped entry with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CPDefinitionGroupedEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CPDefinitionGroupedEntry |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns the first cp definition grouped entry in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinitionGroupedEntry |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns the last cp definition grouped entry in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinitionGroupedEntry |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns the first cp definition grouped entry in the ordered set where uuid = ?.
|
static CPDefinitionGroupedEntry |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the cp definition grouped entry where uuid = ? and groupId = ? or returns
null if it could not be found. |
static CPDefinitionGroupedEntry |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the cp definition grouped entry where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPDefinitionGroupedEntry |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns the last cp definition grouped entry in the ordered set where uuid = ?.
|
static java.util.List<CPDefinitionGroupedEntry> |
findAll()
Returns all the cp definition grouped entries.
|
static java.util.List<CPDefinitionGroupedEntry> |
findAll(int start,
int end)
Returns a range of all the cp definition grouped entries.
|
static java.util.List<CPDefinitionGroupedEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns an ordered range of all the cp definition grouped entries.
|
static java.util.List<CPDefinitionGroupedEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definition grouped entries.
|
static CPDefinitionGroupedEntry |
findByC_E(long CPDefinitionId,
long entryCProductId)
Returns the cp definition grouped entry where CPDefinitionId = ? and entryCProductId = ? or throws a
NoSuchCPDefinitionGroupedEntryException if it could not be found. |
static CPDefinitionGroupedEntry |
findByCPDefinitionId_First(long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns the first cp definition grouped entry in the ordered set where CPDefinitionId = ?.
|
static CPDefinitionGroupedEntry |
findByCPDefinitionId_Last(long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns the last cp definition grouped entry in the ordered set where CPDefinitionId = ?.
|
static CPDefinitionGroupedEntry[] |
findByCPDefinitionId_PrevAndNext(long CPDefinitionGroupedEntryId,
long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns the cp definition grouped entries before and after the current cp definition grouped entry in the ordered set where CPDefinitionId = ?.
|
static java.util.List<CPDefinitionGroupedEntry> |
findByCPDefinitionId(long CPDefinitionId)
Returns all the cp definition grouped entries where CPDefinitionId = ?.
|
static java.util.List<CPDefinitionGroupedEntry> |
findByCPDefinitionId(long CPDefinitionId,
int start,
int end)
Returns a range of all the cp definition grouped entries where CPDefinitionId = ?.
|
static java.util.List<CPDefinitionGroupedEntry> |
findByCPDefinitionId(long CPDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns an ordered range of all the cp definition grouped entries where CPDefinitionId = ?.
|
static java.util.List<CPDefinitionGroupedEntry> |
findByCPDefinitionId(long CPDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definition grouped entries where CPDefinitionId = ?.
|
static CPDefinitionGroupedEntry |
findByPrimaryKey(long CPDefinitionGroupedEntryId)
Returns the cp definition grouped entry with the primary key or throws a
NoSuchCPDefinitionGroupedEntryException if it could not be found. |
static CPDefinitionGroupedEntry |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns the first cp definition grouped entry in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinitionGroupedEntry |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns the last cp definition grouped entry in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinitionGroupedEntry[] |
findByUuid_C_PrevAndNext(long CPDefinitionGroupedEntryId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns the cp definition grouped entries before and after the current cp definition grouped entry in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionGroupedEntry> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp definition grouped entries where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionGroupedEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the cp definition grouped entries where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionGroupedEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns an ordered range of all the cp definition grouped entries where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionGroupedEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definition grouped entries where uuid = ? and companyId = ?.
|
static CPDefinitionGroupedEntry |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns the first cp definition grouped entry in the ordered set where uuid = ?.
|
static CPDefinitionGroupedEntry |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the cp definition grouped entry where uuid = ? and groupId = ? or throws a
NoSuchCPDefinitionGroupedEntryException if it could not be found. |
static CPDefinitionGroupedEntry |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns the last cp definition grouped entry in the ordered set where uuid = ?.
|
static CPDefinitionGroupedEntry[] |
findByUuid_PrevAndNext(long CPDefinitionGroupedEntryId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns the cp definition grouped entries before and after the current cp definition grouped entry in the ordered set where uuid = ?.
|
static java.util.List<CPDefinitionGroupedEntry> |
findByUuid(java.lang.String uuid)
Returns all the cp definition grouped entries where uuid = ?.
|
static java.util.List<CPDefinitionGroupedEntry> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp definition grouped entries where uuid = ?.
|
static java.util.List<CPDefinitionGroupedEntry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
Returns an ordered range of all the cp definition grouped entries where uuid = ?.
|
static java.util.List<CPDefinitionGroupedEntry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definition grouped entries where uuid = ?.
|
static java.util.List<CPDefinitionGroupedEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CPDefinitionGroupedEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CPDefinitionGroupedEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) |
static CPDefinitionGroupedEntryPersistence |
getPersistence() |
static CPDefinitionGroupedEntry |
remove(long CPDefinitionGroupedEntryId)
Removes the cp definition grouped entry with the primary key from the database.
|
static void |
removeAll()
Removes all the cp definition grouped entries from the database.
|
static CPDefinitionGroupedEntry |
removeByC_E(long CPDefinitionId,
long entryCProductId)
Removes the cp definition grouped entry where CPDefinitionId = ? and entryCProductId = ? from the database.
|
static void |
removeByCPDefinitionId(long CPDefinitionId)
Removes all the cp definition grouped entries where CPDefinitionId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp definition grouped entries where uuid = ? and companyId = ? from the database.
|
static CPDefinitionGroupedEntry |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the cp definition grouped entry where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the cp definition grouped entries where uuid = ? from the database.
|
static CPDefinitionGroupedEntry |
update(CPDefinitionGroupedEntry cpDefinitionGroupedEntry) |
static CPDefinitionGroupedEntry |
update(CPDefinitionGroupedEntry cpDefinitionGroupedEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CPDefinitionGroupedEntry |
updateImpl(CPDefinitionGroupedEntry cpDefinitionGroupedEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CPDefinitionGroupedEntry cpDefinitionGroupedEntry)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CPDefinitionGroupedEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CPDefinitionGroupedEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CPDefinitionGroupedEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CPDefinitionGroupedEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CPDefinitionGroupedEntry update(CPDefinitionGroupedEntry cpDefinitionGroupedEntry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CPDefinitionGroupedEntry update(CPDefinitionGroupedEntry cpDefinitionGroupedEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CPDefinitionGroupedEntry> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPDefinitionGroupedEntry> findByUuid(java.lang.String uuid, 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, then the query will include the default ORDER BY logic from CPDefinitionGroupedEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp definition grouped entriesend
- the upper bound of the range of cp definition grouped entries (not inclusive)public static java.util.List<CPDefinitionGroupedEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> 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, then the query will include the default ORDER BY logic from CPDefinitionGroupedEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp definition grouped entriesend
- the upper bound of the range of cp definition grouped entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinitionGroupedEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CPDefinitionGroupedEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp definition grouped entriesend
- the upper bound of the range of cp definition grouped entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionGroupedEntry findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) throws NoSuchCPDefinitionGroupedEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionGroupedEntryException
- if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) throws NoSuchCPDefinitionGroupedEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionGroupedEntryException
- if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry[] findByUuid_PrevAndNext(long CPDefinitionGroupedEntryId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) throws NoSuchCPDefinitionGroupedEntryException
CPDefinitionGroupedEntryId
- the primary key of the current cp definition grouped entryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionGroupedEntryException
- if a cp definition grouped entry with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static CPDefinitionGroupedEntry findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPDefinitionGroupedEntryException
NoSuchCPDefinitionGroupedEntryException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchCPDefinitionGroupedEntryException
- if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPDefinitionGroupedEntryException
uuid
- the uuidgroupId
- the group IDNoSuchCPDefinitionGroupedEntryException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<CPDefinitionGroupedEntry> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPDefinitionGroupedEntry> findByUuid_C(java.lang.String uuid, long companyId, 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, then the query will include the default ORDER BY logic from CPDefinitionGroupedEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definition grouped entriesend
- the upper bound of the range of cp definition grouped entries (not inclusive)public static java.util.List<CPDefinitionGroupedEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> 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, then the query will include the default ORDER BY logic from CPDefinitionGroupedEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definition grouped entriesend
- the upper bound of the range of cp definition grouped entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinitionGroupedEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CPDefinitionGroupedEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definition grouped entriesend
- the upper bound of the range of cp definition grouped entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionGroupedEntry findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) throws NoSuchCPDefinitionGroupedEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionGroupedEntryException
- if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) throws NoSuchCPDefinitionGroupedEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionGroupedEntryException
- if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry[] findByUuid_C_PrevAndNext(long CPDefinitionGroupedEntryId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) throws NoSuchCPDefinitionGroupedEntryException
CPDefinitionGroupedEntryId
- the primary key of the current cp definition grouped entryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionGroupedEntryException
- if a cp definition grouped entry with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPDefinitionGroupedEntry> findByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDpublic static java.util.List<CPDefinitionGroupedEntry> findByCPDefinitionId(long CPDefinitionId, 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, then the query will include the default ORDER BY logic from CPDefinitionGroupedEntryModelImpl
.
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of cp definition grouped entriesend
- the upper bound of the range of cp definition grouped entries (not inclusive)public static java.util.List<CPDefinitionGroupedEntry> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> 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, then the query will include the default ORDER BY logic from CPDefinitionGroupedEntryModelImpl
.
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of cp definition grouped entriesend
- the upper bound of the range of cp definition grouped entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinitionGroupedEntry> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CPDefinitionGroupedEntryModelImpl
.
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of cp definition grouped entriesend
- the upper bound of the range of cp definition grouped entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionGroupedEntry findByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) throws NoSuchCPDefinitionGroupedEntryException
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionGroupedEntryException
- if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry fetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry findByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) throws NoSuchCPDefinitionGroupedEntryException
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionGroupedEntryException
- if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry fetchByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry[] findByCPDefinitionId_PrevAndNext(long CPDefinitionGroupedEntryId, long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) throws NoSuchCPDefinitionGroupedEntryException
CPDefinitionGroupedEntryId
- the primary key of the current cp definition grouped entryCPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionGroupedEntryException
- if a cp definition grouped entry with the primary key could not be foundpublic static void removeByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDpublic static int countByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDpublic static CPDefinitionGroupedEntry findByC_E(long CPDefinitionId, long entryCProductId) throws NoSuchCPDefinitionGroupedEntryException
NoSuchCPDefinitionGroupedEntryException
if it could not be found.CPDefinitionId
- the cp definition IDentryCProductId
- the entry c product IDNoSuchCPDefinitionGroupedEntryException
- if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry fetchByC_E(long CPDefinitionId, long entryCProductId)
null
if it could not be found. Uses the finder cache.CPDefinitionId
- the cp definition IDentryCProductId
- the entry c product IDnull
if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry fetchByC_E(long CPDefinitionId, long entryCProductId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.CPDefinitionId
- the cp definition IDentryCProductId
- the entry c product IDuseFinderCache
- whether to use the finder cachenull
if a matching cp definition grouped entry could not be foundpublic static CPDefinitionGroupedEntry removeByC_E(long CPDefinitionId, long entryCProductId) throws NoSuchCPDefinitionGroupedEntryException
CPDefinitionId
- the cp definition IDentryCProductId
- the entry c product IDNoSuchCPDefinitionGroupedEntryException
public static int countByC_E(long CPDefinitionId, long entryCProductId)
CPDefinitionId
- the cp definition IDentryCProductId
- the entry c product IDpublic static void cacheResult(CPDefinitionGroupedEntry cpDefinitionGroupedEntry)
cpDefinitionGroupedEntry
- the cp definition grouped entrypublic static void cacheResult(java.util.List<CPDefinitionGroupedEntry> cpDefinitionGroupedEntries)
cpDefinitionGroupedEntries
- the cp definition grouped entriespublic static CPDefinitionGroupedEntry create(long CPDefinitionGroupedEntryId)
CPDefinitionGroupedEntryId
- the primary key for the new cp definition grouped entrypublic static CPDefinitionGroupedEntry remove(long CPDefinitionGroupedEntryId) throws NoSuchCPDefinitionGroupedEntryException
CPDefinitionGroupedEntryId
- the primary key of the cp definition grouped entryNoSuchCPDefinitionGroupedEntryException
- if a cp definition grouped entry with the primary key could not be foundpublic static CPDefinitionGroupedEntry updateImpl(CPDefinitionGroupedEntry cpDefinitionGroupedEntry)
public static CPDefinitionGroupedEntry findByPrimaryKey(long CPDefinitionGroupedEntryId) throws NoSuchCPDefinitionGroupedEntryException
NoSuchCPDefinitionGroupedEntryException
if it could not be found.CPDefinitionGroupedEntryId
- the primary key of the cp definition grouped entryNoSuchCPDefinitionGroupedEntryException
- if a cp definition grouped entry with the primary key could not be foundpublic static CPDefinitionGroupedEntry fetchByPrimaryKey(long CPDefinitionGroupedEntryId)
null
if it could not be found.CPDefinitionGroupedEntryId
- the primary key of the cp definition grouped entrynull
if a cp definition grouped entry with the primary key could not be foundpublic static java.util.List<CPDefinitionGroupedEntry> findAll()
public static java.util.List<CPDefinitionGroupedEntry> 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, then the query will include the default ORDER BY logic from CPDefinitionGroupedEntryModelImpl
.
start
- the lower bound of the range of cp definition grouped entriesend
- the upper bound of the range of cp definition grouped entries (not inclusive)public static java.util.List<CPDefinitionGroupedEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> 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, then the query will include the default ORDER BY logic from CPDefinitionGroupedEntryModelImpl
.
start
- the lower bound of the range of cp definition grouped entriesend
- the upper bound of the range of cp definition grouped entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinitionGroupedEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CPDefinitionGroupedEntryModelImpl
.
start
- the lower bound of the range of cp definition grouped entriesend
- the upper bound of the range of cp definition grouped entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CPDefinitionGroupedEntryPersistence getPersistence()