public class CPDefinitionInventoryUtil
extends java.lang.Object
com.liferay.commerce.service.persistence.impl.CPDefinitionInventoryPersistenceImpl
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
CPDefinitionInventoryPersistence
Constructor and Description |
---|
CPDefinitionInventoryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CPDefinitionInventory cpDefinitionInventory)
Caches the cp definition inventory in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CPDefinitionInventory> cpDefinitionInventories)
Caches the cp definition inventories in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CPDefinitionInventory cpDefinitionInventory) |
static int |
countAll()
Returns the number of cp definition inventories.
|
static int |
countByCPDefinitionId(long CPDefinitionId)
Returns the number of cp definition inventories where CPDefinitionId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp definition inventories where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of cp definition inventories where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of cp definition inventories where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CPDefinitionInventory |
create(long CPDefinitionInventoryId)
Creates a new cp definition inventory with the primary key.
|
static CPDefinitionInventory |
fetchByCPDefinitionId(long CPDefinitionId)
Returns the cp definition inventory where CPDefinitionId = ? or returns
null if it could not be found. |
static CPDefinitionInventory |
fetchByCPDefinitionId(long CPDefinitionId,
boolean useFinderCache)
Returns the cp definition inventory where CPDefinitionId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPDefinitionInventory |
fetchByPrimaryKey(long CPDefinitionInventoryId)
Returns the cp definition inventory with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CPDefinitionInventory> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CPDefinitionInventory |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
Returns the first cp definition inventory in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinitionInventory |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
Returns the last cp definition inventory in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinitionInventory |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
Returns the first cp definition inventory in the ordered set where uuid = ?.
|
static CPDefinitionInventory |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the cp definition inventory where uuid = ? and groupId = ? or returns
null if it could not be found. |
static CPDefinitionInventory |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the cp definition inventory where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPDefinitionInventory |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
Returns the last cp definition inventory in the ordered set where uuid = ?.
|
static java.util.List<CPDefinitionInventory> |
findAll()
Returns all the cp definition inventories.
|
static java.util.List<CPDefinitionInventory> |
findAll(int start,
int end)
Returns a range of all the cp definition inventories.
|
static java.util.List<CPDefinitionInventory> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
Returns an ordered range of all the cp definition inventories.
|
static java.util.List<CPDefinitionInventory> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definition inventories.
|
static CPDefinitionInventory |
findByCPDefinitionId(long CPDefinitionId)
Returns the cp definition inventory where CPDefinitionId = ? or throws a
NoSuchCPDefinitionInventoryException if it could not be found. |
static CPDefinitionInventory |
findByPrimaryKey(long CPDefinitionInventoryId)
Returns the cp definition inventory with the primary key or throws a
NoSuchCPDefinitionInventoryException if it could not be found. |
static CPDefinitionInventory |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
Returns the first cp definition inventory in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinitionInventory |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
Returns the last cp definition inventory in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinitionInventory[] |
findByUuid_C_PrevAndNext(long CPDefinitionInventoryId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
Returns the cp definition inventories before and after the current cp definition inventory in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionInventory> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp definition inventories where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionInventory> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the cp definition inventories where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionInventory> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
Returns an ordered range of all the cp definition inventories where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionInventory> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definition inventories where uuid = ? and companyId = ?.
|
static CPDefinitionInventory |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
Returns the first cp definition inventory in the ordered set where uuid = ?.
|
static CPDefinitionInventory |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the cp definition inventory where uuid = ? and groupId = ? or throws a
NoSuchCPDefinitionInventoryException if it could not be found. |
static CPDefinitionInventory |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
Returns the last cp definition inventory in the ordered set where uuid = ?.
|
static CPDefinitionInventory[] |
findByUuid_PrevAndNext(long CPDefinitionInventoryId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
Returns the cp definition inventories before and after the current cp definition inventory in the ordered set where uuid = ?.
|
static java.util.List<CPDefinitionInventory> |
findByUuid(java.lang.String uuid)
Returns all the cp definition inventories where uuid = ?.
|
static java.util.List<CPDefinitionInventory> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp definition inventories where uuid = ?.
|
static java.util.List<CPDefinitionInventory> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
Returns an ordered range of all the cp definition inventories where uuid = ?.
|
static java.util.List<CPDefinitionInventory> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definition inventories where uuid = ?.
|
static java.util.List<CPDefinitionInventory> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CPDefinitionInventory> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CPDefinitionInventory> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator) |
static CPDefinitionInventoryPersistence |
getPersistence() |
static CPDefinitionInventory |
remove(long CPDefinitionInventoryId)
Removes the cp definition inventory with the primary key from the database.
|
static void |
removeAll()
Removes all the cp definition inventories from the database.
|
static CPDefinitionInventory |
removeByCPDefinitionId(long CPDefinitionId)
Removes the cp definition inventory where CPDefinitionId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp definition inventories where uuid = ? and companyId = ? from the database.
|
static CPDefinitionInventory |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the cp definition inventory where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the cp definition inventories where uuid = ? from the database.
|
static CPDefinitionInventory |
update(CPDefinitionInventory cpDefinitionInventory) |
static CPDefinitionInventory |
update(CPDefinitionInventory cpDefinitionInventory,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CPDefinitionInventory |
updateImpl(CPDefinitionInventory cpDefinitionInventory) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CPDefinitionInventory cpDefinitionInventory)
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,CPDefinitionInventory> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CPDefinitionInventory> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CPDefinitionInventory> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CPDefinitionInventory> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CPDefinitionInventory update(CPDefinitionInventory cpDefinitionInventory)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CPDefinitionInventory update(CPDefinitionInventory cpDefinitionInventory, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CPDefinitionInventory> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPDefinitionInventory> 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 CPDefinitionInventoryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp definition inventoriesend
- the upper bound of the range of cp definition inventories (not inclusive)public static java.util.List<CPDefinitionInventory> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> 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 CPDefinitionInventoryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp definition inventoriesend
- the upper bound of the range of cp definition inventories (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinitionInventory> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> 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 CPDefinitionInventoryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp definition inventoriesend
- the upper bound of the range of cp definition inventories (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionInventory findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator) throws NoSuchCPDefinitionInventoryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionInventoryException
- if a matching cp definition inventory could not be foundpublic static CPDefinitionInventory fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition inventory could not be foundpublic static CPDefinitionInventory findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator) throws NoSuchCPDefinitionInventoryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionInventoryException
- if a matching cp definition inventory could not be foundpublic static CPDefinitionInventory fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition inventory could not be foundpublic static CPDefinitionInventory[] findByUuid_PrevAndNext(long CPDefinitionInventoryId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator) throws NoSuchCPDefinitionInventoryException
CPDefinitionInventoryId
- the primary key of the current cp definition inventoryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionInventoryException
- if a cp definition inventory 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 CPDefinitionInventory findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPDefinitionInventoryException
NoSuchCPDefinitionInventoryException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchCPDefinitionInventoryException
- if a matching cp definition inventory could not be foundpublic static CPDefinitionInventory 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 inventory could not be foundpublic static CPDefinitionInventory 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 inventory could not be foundpublic static CPDefinitionInventory removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPDefinitionInventoryException
uuid
- the uuidgroupId
- the group IDNoSuchCPDefinitionInventoryException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<CPDefinitionInventory> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPDefinitionInventory> 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 CPDefinitionInventoryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definition inventoriesend
- the upper bound of the range of cp definition inventories (not inclusive)public static java.util.List<CPDefinitionInventory> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> 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 CPDefinitionInventoryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definition inventoriesend
- the upper bound of the range of cp definition inventories (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinitionInventory> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> 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 CPDefinitionInventoryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definition inventoriesend
- the upper bound of the range of cp definition inventories (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionInventory findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator) throws NoSuchCPDefinitionInventoryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionInventoryException
- if a matching cp definition inventory could not be foundpublic static CPDefinitionInventory fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition inventory could not be foundpublic static CPDefinitionInventory findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator) throws NoSuchCPDefinitionInventoryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionInventoryException
- if a matching cp definition inventory could not be foundpublic static CPDefinitionInventory fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition inventory could not be foundpublic static CPDefinitionInventory[] findByUuid_C_PrevAndNext(long CPDefinitionInventoryId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> orderByComparator) throws NoSuchCPDefinitionInventoryException
CPDefinitionInventoryId
- the primary key of the current cp definition inventoryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionInventoryException
- if a cp definition inventory 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 CPDefinitionInventory findByCPDefinitionId(long CPDefinitionId) throws NoSuchCPDefinitionInventoryException
NoSuchCPDefinitionInventoryException
if it could not be found.CPDefinitionId
- the cp definition IDNoSuchCPDefinitionInventoryException
- if a matching cp definition inventory could not be foundpublic static CPDefinitionInventory fetchByCPDefinitionId(long CPDefinitionId)
null
if it could not be found. Uses the finder cache.CPDefinitionId
- the cp definition IDnull
if a matching cp definition inventory could not be foundpublic static CPDefinitionInventory fetchByCPDefinitionId(long CPDefinitionId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.CPDefinitionId
- the cp definition IDuseFinderCache
- whether to use the finder cachenull
if a matching cp definition inventory could not be foundpublic static CPDefinitionInventory removeByCPDefinitionId(long CPDefinitionId) throws NoSuchCPDefinitionInventoryException
CPDefinitionId
- the cp definition IDNoSuchCPDefinitionInventoryException
public static int countByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDpublic static void cacheResult(CPDefinitionInventory cpDefinitionInventory)
cpDefinitionInventory
- the cp definition inventorypublic static void cacheResult(java.util.List<CPDefinitionInventory> cpDefinitionInventories)
cpDefinitionInventories
- the cp definition inventoriespublic static CPDefinitionInventory create(long CPDefinitionInventoryId)
CPDefinitionInventoryId
- the primary key for the new cp definition inventorypublic static CPDefinitionInventory remove(long CPDefinitionInventoryId) throws NoSuchCPDefinitionInventoryException
CPDefinitionInventoryId
- the primary key of the cp definition inventoryNoSuchCPDefinitionInventoryException
- if a cp definition inventory with the primary key could not be foundpublic static CPDefinitionInventory updateImpl(CPDefinitionInventory cpDefinitionInventory)
public static CPDefinitionInventory findByPrimaryKey(long CPDefinitionInventoryId) throws NoSuchCPDefinitionInventoryException
NoSuchCPDefinitionInventoryException
if it could not be found.CPDefinitionInventoryId
- the primary key of the cp definition inventoryNoSuchCPDefinitionInventoryException
- if a cp definition inventory with the primary key could not be foundpublic static CPDefinitionInventory fetchByPrimaryKey(long CPDefinitionInventoryId)
null
if it could not be found.CPDefinitionInventoryId
- the primary key of the cp definition inventorynull
if a cp definition inventory with the primary key could not be foundpublic static java.util.List<CPDefinitionInventory> findAll()
public static java.util.List<CPDefinitionInventory> 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 CPDefinitionInventoryModelImpl
.
start
- the lower bound of the range of cp definition inventoriesend
- the upper bound of the range of cp definition inventories (not inclusive)public static java.util.List<CPDefinitionInventory> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> 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 CPDefinitionInventoryModelImpl
.
start
- the lower bound of the range of cp definition inventoriesend
- the upper bound of the range of cp definition inventories (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinitionInventory> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionInventory> 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 CPDefinitionInventoryModelImpl
.
start
- the lower bound of the range of cp definition inventoriesend
- the upper bound of the range of cp definition inventories (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 CPDefinitionInventoryPersistence getPersistence()