public class CPDefinitionVirtualSettingUtil
extends java.lang.Object
com.liferay.commerce.product.type.virtual.service.persistence.impl.CPDefinitionVirtualSettingPersistenceImpl
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
CPDefinitionVirtualSettingPersistence
Constructor and Description |
---|
CPDefinitionVirtualSettingUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CPDefinitionVirtualSetting cpDefinitionVirtualSetting)
Caches the cp definition virtual setting in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CPDefinitionVirtualSetting> cpDefinitionVirtualSettings)
Caches the cp definition virtual settings in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CPDefinitionVirtualSetting cpDefinitionVirtualSetting) |
static int |
countAll()
Returns the number of cp definition virtual settings.
|
static int |
countByC_C(long classNameId,
long classPK)
Returns the number of cp definition virtual settings where classNameId = ? and classPK = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp definition virtual settings where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of cp definition virtual settings where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of cp definition virtual settings where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CPDefinitionVirtualSetting |
create(long CPDefinitionVirtualSettingId)
Creates a new cp definition virtual setting with the primary key.
|
static CPDefinitionVirtualSetting |
fetchByC_C(long classNameId,
long classPK)
Returns the cp definition virtual setting where classNameId = ? and classPK = ? or returns
null if it could not be found. |
static CPDefinitionVirtualSetting |
fetchByC_C(long classNameId,
long classPK,
boolean useFinderCache)
Returns the cp definition virtual setting where classNameId = ? and classPK = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPDefinitionVirtualSetting |
fetchByPrimaryKey(long CPDefinitionVirtualSettingId)
Returns the cp definition virtual setting with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CPDefinitionVirtualSetting> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CPDefinitionVirtualSetting |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
Returns the first cp definition virtual setting in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinitionVirtualSetting |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
Returns the last cp definition virtual setting in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinitionVirtualSetting |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
Returns the first cp definition virtual setting in the ordered set where uuid = ?.
|
static CPDefinitionVirtualSetting |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the cp definition virtual setting where uuid = ? and groupId = ? or returns
null if it could not be found. |
static CPDefinitionVirtualSetting |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the cp definition virtual setting where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPDefinitionVirtualSetting |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
Returns the last cp definition virtual setting in the ordered set where uuid = ?.
|
static java.util.List<CPDefinitionVirtualSetting> |
findAll()
Returns all the cp definition virtual settings.
|
static java.util.List<CPDefinitionVirtualSetting> |
findAll(int start,
int end)
Returns a range of all the cp definition virtual settings.
|
static java.util.List<CPDefinitionVirtualSetting> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
Returns an ordered range of all the cp definition virtual settings.
|
static java.util.List<CPDefinitionVirtualSetting> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definition virtual settings.
|
static CPDefinitionVirtualSetting |
findByC_C(long classNameId,
long classPK)
Returns the cp definition virtual setting where classNameId = ? and classPK = ? or throws a
NoSuchCPDefinitionVirtualSettingException if it could not be found. |
static CPDefinitionVirtualSetting |
findByPrimaryKey(long CPDefinitionVirtualSettingId)
Returns the cp definition virtual setting with the primary key or throws a
NoSuchCPDefinitionVirtualSettingException if it could not be found. |
static CPDefinitionVirtualSetting |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
Returns the first cp definition virtual setting in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinitionVirtualSetting |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
Returns the last cp definition virtual setting in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinitionVirtualSetting[] |
findByUuid_C_PrevAndNext(long CPDefinitionVirtualSettingId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
Returns the cp definition virtual settings before and after the current cp definition virtual setting in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionVirtualSetting> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp definition virtual settings where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionVirtualSetting> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the cp definition virtual settings where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionVirtualSetting> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
Returns an ordered range of all the cp definition virtual settings where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionVirtualSetting> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definition virtual settings where uuid = ? and companyId = ?.
|
static CPDefinitionVirtualSetting |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
Returns the first cp definition virtual setting in the ordered set where uuid = ?.
|
static CPDefinitionVirtualSetting |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the cp definition virtual setting where uuid = ? and groupId = ? or throws a
NoSuchCPDefinitionVirtualSettingException if it could not be found. |
static CPDefinitionVirtualSetting |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
Returns the last cp definition virtual setting in the ordered set where uuid = ?.
|
static CPDefinitionVirtualSetting[] |
findByUuid_PrevAndNext(long CPDefinitionVirtualSettingId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
Returns the cp definition virtual settings before and after the current cp definition virtual setting in the ordered set where uuid = ?.
|
static java.util.List<CPDefinitionVirtualSetting> |
findByUuid(java.lang.String uuid)
Returns all the cp definition virtual settings where uuid = ?.
|
static java.util.List<CPDefinitionVirtualSetting> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp definition virtual settings where uuid = ?.
|
static java.util.List<CPDefinitionVirtualSetting> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
Returns an ordered range of all the cp definition virtual settings where uuid = ?.
|
static java.util.List<CPDefinitionVirtualSetting> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definition virtual settings where uuid = ?.
|
static java.util.List<CPDefinitionVirtualSetting> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CPDefinitionVirtualSetting> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CPDefinitionVirtualSetting> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator) |
static CPDefinitionVirtualSettingPersistence |
getPersistence() |
static CPDefinitionVirtualSetting |
remove(long CPDefinitionVirtualSettingId)
Removes the cp definition virtual setting with the primary key from the database.
|
static void |
removeAll()
Removes all the cp definition virtual settings from the database.
|
static CPDefinitionVirtualSetting |
removeByC_C(long classNameId,
long classPK)
Removes the cp definition virtual setting where classNameId = ? and classPK = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp definition virtual settings where uuid = ? and companyId = ? from the database.
|
static CPDefinitionVirtualSetting |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the cp definition virtual setting where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the cp definition virtual settings where uuid = ? from the database.
|
static CPDefinitionVirtualSetting |
update(CPDefinitionVirtualSetting cpDefinitionVirtualSetting) |
static CPDefinitionVirtualSetting |
update(CPDefinitionVirtualSetting cpDefinitionVirtualSetting,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CPDefinitionVirtualSetting |
updateImpl(CPDefinitionVirtualSetting cpDefinitionVirtualSetting) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CPDefinitionVirtualSetting cpDefinitionVirtualSetting)
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,CPDefinitionVirtualSetting> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CPDefinitionVirtualSetting> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CPDefinitionVirtualSetting> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CPDefinitionVirtualSetting> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CPDefinitionVirtualSetting update(CPDefinitionVirtualSetting cpDefinitionVirtualSetting)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CPDefinitionVirtualSetting update(CPDefinitionVirtualSetting cpDefinitionVirtualSetting, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CPDefinitionVirtualSetting> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPDefinitionVirtualSetting> 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 CPDefinitionVirtualSettingModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp definition virtual settingsend
- the upper bound of the range of cp definition virtual settings (not inclusive)public static java.util.List<CPDefinitionVirtualSetting> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> 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 CPDefinitionVirtualSettingModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp definition virtual settingsend
- the upper bound of the range of cp definition virtual settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinitionVirtualSetting> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> 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 CPDefinitionVirtualSettingModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp definition virtual settingsend
- the upper bound of the range of cp definition virtual settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionVirtualSetting findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator) throws NoSuchCPDefinitionVirtualSettingException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionVirtualSettingException
- if a matching cp definition virtual setting could not be foundpublic static CPDefinitionVirtualSetting fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition virtual setting could not be foundpublic static CPDefinitionVirtualSetting findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator) throws NoSuchCPDefinitionVirtualSettingException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionVirtualSettingException
- if a matching cp definition virtual setting could not be foundpublic static CPDefinitionVirtualSetting fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition virtual setting could not be foundpublic static CPDefinitionVirtualSetting[] findByUuid_PrevAndNext(long CPDefinitionVirtualSettingId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator) throws NoSuchCPDefinitionVirtualSettingException
CPDefinitionVirtualSettingId
- the primary key of the current cp definition virtual settinguuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionVirtualSettingException
- if a cp definition virtual setting 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 CPDefinitionVirtualSetting findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPDefinitionVirtualSettingException
NoSuchCPDefinitionVirtualSettingException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchCPDefinitionVirtualSettingException
- if a matching cp definition virtual setting could not be foundpublic static CPDefinitionVirtualSetting 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 virtual setting could not be foundpublic static CPDefinitionVirtualSetting 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 virtual setting could not be foundpublic static CPDefinitionVirtualSetting removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPDefinitionVirtualSettingException
uuid
- the uuidgroupId
- the group IDNoSuchCPDefinitionVirtualSettingException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<CPDefinitionVirtualSetting> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPDefinitionVirtualSetting> 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 CPDefinitionVirtualSettingModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definition virtual settingsend
- the upper bound of the range of cp definition virtual settings (not inclusive)public static java.util.List<CPDefinitionVirtualSetting> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> 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 CPDefinitionVirtualSettingModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definition virtual settingsend
- the upper bound of the range of cp definition virtual settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinitionVirtualSetting> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> 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 CPDefinitionVirtualSettingModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definition virtual settingsend
- the upper bound of the range of cp definition virtual settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionVirtualSetting findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator) throws NoSuchCPDefinitionVirtualSettingException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionVirtualSettingException
- if a matching cp definition virtual setting could not be foundpublic static CPDefinitionVirtualSetting fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition virtual setting could not be foundpublic static CPDefinitionVirtualSetting findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator) throws NoSuchCPDefinitionVirtualSettingException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionVirtualSettingException
- if a matching cp definition virtual setting could not be foundpublic static CPDefinitionVirtualSetting fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition virtual setting could not be foundpublic static CPDefinitionVirtualSetting[] findByUuid_C_PrevAndNext(long CPDefinitionVirtualSettingId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> orderByComparator) throws NoSuchCPDefinitionVirtualSettingException
CPDefinitionVirtualSettingId
- the primary key of the current cp definition virtual settinguuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionVirtualSettingException
- if a cp definition virtual setting 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 CPDefinitionVirtualSetting findByC_C(long classNameId, long classPK) throws NoSuchCPDefinitionVirtualSettingException
NoSuchCPDefinitionVirtualSettingException
if it could not be found.classNameId
- the class name IDclassPK
- the class pkNoSuchCPDefinitionVirtualSettingException
- if a matching cp definition virtual setting could not be foundpublic static CPDefinitionVirtualSetting fetchByC_C(long classNameId, long classPK)
null
if it could not be found. Uses the finder cache.classNameId
- the class name IDclassPK
- the class pknull
if a matching cp definition virtual setting could not be foundpublic static CPDefinitionVirtualSetting fetchByC_C(long classNameId, long classPK, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.classNameId
- the class name IDclassPK
- the class pkuseFinderCache
- whether to use the finder cachenull
if a matching cp definition virtual setting could not be foundpublic static CPDefinitionVirtualSetting removeByC_C(long classNameId, long classPK) throws NoSuchCPDefinitionVirtualSettingException
classNameId
- the class name IDclassPK
- the class pkNoSuchCPDefinitionVirtualSettingException
public static int countByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static void cacheResult(CPDefinitionVirtualSetting cpDefinitionVirtualSetting)
cpDefinitionVirtualSetting
- the cp definition virtual settingpublic static void cacheResult(java.util.List<CPDefinitionVirtualSetting> cpDefinitionVirtualSettings)
cpDefinitionVirtualSettings
- the cp definition virtual settingspublic static CPDefinitionVirtualSetting create(long CPDefinitionVirtualSettingId)
CPDefinitionVirtualSettingId
- the primary key for the new cp definition virtual settingpublic static CPDefinitionVirtualSetting remove(long CPDefinitionVirtualSettingId) throws NoSuchCPDefinitionVirtualSettingException
CPDefinitionVirtualSettingId
- the primary key of the cp definition virtual settingNoSuchCPDefinitionVirtualSettingException
- if a cp definition virtual setting with the primary key could not be foundpublic static CPDefinitionVirtualSetting updateImpl(CPDefinitionVirtualSetting cpDefinitionVirtualSetting)
public static CPDefinitionVirtualSetting findByPrimaryKey(long CPDefinitionVirtualSettingId) throws NoSuchCPDefinitionVirtualSettingException
NoSuchCPDefinitionVirtualSettingException
if it could not be found.CPDefinitionVirtualSettingId
- the primary key of the cp definition virtual settingNoSuchCPDefinitionVirtualSettingException
- if a cp definition virtual setting with the primary key could not be foundpublic static CPDefinitionVirtualSetting fetchByPrimaryKey(long CPDefinitionVirtualSettingId)
null
if it could not be found.CPDefinitionVirtualSettingId
- the primary key of the cp definition virtual settingnull
if a cp definition virtual setting with the primary key could not be foundpublic static java.util.List<CPDefinitionVirtualSetting> findAll()
public static java.util.List<CPDefinitionVirtualSetting> 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 CPDefinitionVirtualSettingModelImpl
.
start
- the lower bound of the range of cp definition virtual settingsend
- the upper bound of the range of cp definition virtual settings (not inclusive)public static java.util.List<CPDefinitionVirtualSetting> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> 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 CPDefinitionVirtualSettingModelImpl
.
start
- the lower bound of the range of cp definition virtual settingsend
- the upper bound of the range of cp definition virtual settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinitionVirtualSetting> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionVirtualSetting> 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 CPDefinitionVirtualSettingModelImpl
.
start
- the lower bound of the range of cp definition virtual settingsend
- the upper bound of the range of cp definition virtual settings (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 CPDefinitionVirtualSettingPersistence getPersistence()