Interface CPOptionValuePersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CPOptionValue>
,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPOptionValue>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CPOptionValue cpOptionValue) Caches the cp option value in the entity cache if it is enabled.void
cacheResult
(List<CPOptionValue> cpOptionValues) Caches the cp option values in the entity cache if it is enabled.int
countAll()
Returns the number of cp option values.int
countByC_K
(long CPOptionId, String key) Returns the number of cp option values where CPOptionId = ? and key = ?.int
countByCompanyId
(long companyId) Returns the number of cp option values where companyId = ?.int
countByCPOptionId
(long CPOptionId) Returns the number of cp option values where CPOptionId = ?.int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of cp option values where externalReferenceCode = ? and companyId = ?.int
countByUuid
(String uuid) Returns the number of cp option values where uuid = ?.int
countByUuid_C
(String uuid, long companyId) Returns the number of cp option values where uuid = ? and companyId = ?.create
(long CPOptionValueId) Creates a new cp option value with the primary key.fetchByC_K
(long CPOptionId, String key) Returns the cp option value where CPOptionId = ? and key = ? or returnsnull
if it could not be found.fetchByC_K
(long CPOptionId, String key, boolean useFinderCache) Returns the cp option value where CPOptionId = ? and key = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where companyId = ?.fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where companyId = ?.fetchByCPOptionId_First
(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where CPOptionId = ?.fetchByCPOptionId_Last
(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where CPOptionId = ?.fetchByERC_C
(String externalReferenceCode, long companyId) Returns the cp option value where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the cp option value where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByPrimaryKey
(long CPOptionValueId) Returns the cp option value with the primary key or returnsnull
if it could not be found.fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where uuid = ? and companyId = ?.fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where uuid = ? and companyId = ?.fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where uuid = ?.fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where uuid = ?.findAll()
Returns all the cp option values.findAll
(int start, int end) Returns a range of all the cp option values.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values.Returns the cp option value where CPOptionId = ? and key = ? or throws aNoSuchCPOptionValueException
if it could not be found.findByCompanyId
(long companyId) Returns all the cp option values where companyId = ?.findByCompanyId
(long companyId, int start, int end) Returns a range of all the cp option values where companyId = ?.findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values where companyId = ?.findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values where companyId = ?.findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where companyId = ?.findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where companyId = ?.findByCompanyId_PrevAndNext
(long CPOptionValueId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the cp option values before and after the current cp option value in the ordered set where companyId = ?.findByCPOptionId
(long CPOptionId) Returns all the cp option values where CPOptionId = ?.findByCPOptionId
(long CPOptionId, int start, int end) Returns a range of all the cp option values where CPOptionId = ?.findByCPOptionId
(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values where CPOptionId = ?.findByCPOptionId
(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values where CPOptionId = ?.findByCPOptionId_First
(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where CPOptionId = ?.findByCPOptionId_Last
(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where CPOptionId = ?.findByCPOptionId_PrevAndNext
(long CPOptionValueId, long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the cp option values before and after the current cp option value in the ordered set where CPOptionId = ?.findByERC_C
(String externalReferenceCode, long companyId) Returns the cp option value where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPOptionValueException
if it could not be found.findByPrimaryKey
(long CPOptionValueId) Returns the cp option value with the primary key or throws aNoSuchCPOptionValueException
if it could not be found.findByUuid
(String uuid) Returns all the cp option values where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the cp option values where uuid = ?.findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values where uuid = ?.findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values where uuid = ?.findByUuid_C
(String uuid, long companyId) Returns all the cp option values where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the cp option values where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values where uuid = ? and companyId = ?.findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where uuid = ? and companyId = ?.findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where uuid = ? and companyId = ?.findByUuid_C_PrevAndNext
(long CPOptionValueId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the cp option values before and after the current cp option value in the ordered set where uuid = ? and companyId = ?.findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where uuid = ?.findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where uuid = ?.findByUuid_PrevAndNext
(long CPOptionValueId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the cp option values before and after the current cp option value in the ordered set where uuid = ?.remove
(long CPOptionValueId) Removes the cp option value with the primary key from the database.void
Removes all the cp option values from the database.removeByC_K
(long CPOptionId, String key) Removes the cp option value where CPOptionId = ? and key = ? from the database.void
removeByCompanyId
(long companyId) Removes all the cp option values where companyId = ? from the database.void
removeByCPOptionId
(long CPOptionId) Removes all the cp option values where CPOptionId = ? from the database.removeByERC_C
(String externalReferenceCode, long companyId) Removes the cp option value where externalReferenceCode = ? and companyId = ? from the database.void
removeByUuid
(String uuid) Removes all the cp option values where uuid = ? from the database.void
removeByUuid_C
(String uuid, long companyId) Removes all the cp option values where uuid = ? and companyId = ? from the database.updateImpl
(CPOptionValue cpOptionValue) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByUuid
Returns all the cp option values where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching cp option values
-
findByUuid
Returns a range of all the cp option values where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPOptionValueModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)- Returns:
- the range of matching cp option values
-
findByUuid
List<CPOptionValue> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPOptionValueModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp option values
-
findByUuid
List<CPOptionValue> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPOptionValueModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp option values
-
findByUuid_First
CPOptionValue findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the first cp option value in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be found
-
fetchByUuid_First
CPOptionValue fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option value, or
null
if a matching cp option value could not be found
-
findByUuid_Last
CPOptionValue findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the last cp option value in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be found
-
fetchByUuid_Last
CPOptionValue fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option value, or
null
if a matching cp option value could not be found
-
findByUuid_PrevAndNext
CPOptionValue[] findByUuid_PrevAndNext(long CPOptionValueId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the cp option values before and after the current cp option value in the ordered set where uuid = ?.- Parameters:
CPOptionValueId
- the primary key of the current cp option valueuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp option value
- Throws:
NoSuchCPOptionValueException
- if a cp option value with the primary key could not be found
-
removeByUuid
Removes all the cp option values where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of cp option values where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching cp option values
-
findByUuid_C
Returns all the cp option values where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching cp option values
-
findByUuid_C
Returns a range of all the cp option values where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPOptionValueModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)- Returns:
- the range of matching cp option values
-
findByUuid_C
List<CPOptionValue> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPOptionValueModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp option values
-
findByUuid_C
List<CPOptionValue> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPOptionValueModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp option values
-
findByUuid_C_First
CPOptionValue findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the first cp option value in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be found
-
fetchByUuid_C_First
CPOptionValue fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option value, or
null
if a matching cp option value could not be found
-
findByUuid_C_Last
CPOptionValue findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the last cp option value in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be found
-
fetchByUuid_C_Last
CPOptionValue fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option value, or
null
if a matching cp option value could not be found
-
findByUuid_C_PrevAndNext
CPOptionValue[] findByUuid_C_PrevAndNext(long CPOptionValueId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the cp option values before and after the current cp option value in the ordered set where uuid = ? and companyId = ?.- Parameters:
CPOptionValueId
- the primary key of the current cp option valueuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp option value
- Throws:
NoSuchCPOptionValueException
- if a cp option value with the primary key could not be found
-
removeByUuid_C
Removes all the cp option values where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of cp option values where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching cp option values
-
findByCompanyId
Returns all the cp option values where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching cp option values
-
findByCompanyId
Returns a range of all the cp option values where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPOptionValueModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)- Returns:
- the range of matching cp option values
-
findByCompanyId
List<CPOptionValue> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPOptionValueModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp option values
-
findByCompanyId
List<CPOptionValue> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPOptionValueModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp option values
-
findByCompanyId_First
CPOptionValue findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the first cp option value in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be found
-
fetchByCompanyId_First
CPOptionValue fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option value, or
null
if a matching cp option value could not be found
-
findByCompanyId_Last
CPOptionValue findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the last cp option value in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be found
-
fetchByCompanyId_Last
CPOptionValue fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option value, or
null
if a matching cp option value could not be found
-
findByCompanyId_PrevAndNext
CPOptionValue[] findByCompanyId_PrevAndNext(long CPOptionValueId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the cp option values before and after the current cp option value in the ordered set where companyId = ?.- Parameters:
CPOptionValueId
- the primary key of the current cp option valuecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp option value
- Throws:
NoSuchCPOptionValueException
- if a cp option value with the primary key could not be found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the cp option values where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of cp option values where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching cp option values
-
findByCPOptionId
Returns all the cp option values where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option ID- Returns:
- the matching cp option values
-
findByCPOptionId
Returns a range of all the cp option values where CPOptionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPOptionValueModelImpl
.- Parameters:
CPOptionId
- the cp option IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)- Returns:
- the range of matching cp option values
-
findByCPOptionId
List<CPOptionValue> findByCPOptionId(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values where CPOptionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPOptionValueModelImpl
.- Parameters:
CPOptionId
- the cp option IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp option values
-
findByCPOptionId
List<CPOptionValue> findByCPOptionId(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values where CPOptionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPOptionValueModelImpl
.- Parameters:
CPOptionId
- the cp option IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp option values
-
findByCPOptionId_First
CPOptionValue findByCPOptionId_First(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the first cp option value in the ordered set where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be found
-
fetchByCPOptionId_First
CPOptionValue fetchByCPOptionId_First(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option value, or
null
if a matching cp option value could not be found
-
findByCPOptionId_Last
CPOptionValue findByCPOptionId_Last(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the last cp option value in the ordered set where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be found
-
fetchByCPOptionId_Last
CPOptionValue fetchByCPOptionId_Last(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option value, or
null
if a matching cp option value could not be found
-
findByCPOptionId_PrevAndNext
CPOptionValue[] findByCPOptionId_PrevAndNext(long CPOptionValueId, long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the cp option values before and after the current cp option value in the ordered set where CPOptionId = ?.- Parameters:
CPOptionValueId
- the primary key of the current cp option valueCPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp option value
- Throws:
NoSuchCPOptionValueException
- if a cp option value with the primary key could not be found
-
removeByCPOptionId
void removeByCPOptionId(long CPOptionId) Removes all the cp option values where CPOptionId = ? from the database.- Parameters:
CPOptionId
- the cp option ID
-
countByCPOptionId
int countByCPOptionId(long CPOptionId) Returns the number of cp option values where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option ID- Returns:
- the number of matching cp option values
-
findByC_K
Returns the cp option value where CPOptionId = ? and key = ? or throws aNoSuchCPOptionValueException
if it could not be found.- Parameters:
CPOptionId
- the cp option IDkey
- the key- Returns:
- the matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be found
-
fetchByC_K
Returns the cp option value where CPOptionId = ? and key = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
CPOptionId
- the cp option IDkey
- the key- Returns:
- the matching cp option value, or
null
if a matching cp option value could not be found
-
fetchByC_K
Returns the cp option value where CPOptionId = ? and key = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
CPOptionId
- the cp option IDkey
- the keyuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp option value, or
null
if a matching cp option value could not be found
-
removeByC_K
Removes the cp option value where CPOptionId = ? and key = ? from the database.- Parameters:
CPOptionId
- the cp option IDkey
- the key- Returns:
- the cp option value that was removed
- Throws:
NoSuchCPOptionValueException
-
countByC_K
Returns the number of cp option values where CPOptionId = ? and key = ?.- Parameters:
CPOptionId
- the cp option IDkey
- the key- Returns:
- the number of matching cp option values
-
findByERC_C
CPOptionValue findByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPOptionValueException Returns the cp option value where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPOptionValueException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be found
-
fetchByERC_C
Returns the cp option value where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching cp option value, or
null
if a matching cp option value could not be found
-
fetchByERC_C
Returns the cp option value where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp option value, or
null
if a matching cp option value could not be found
-
removeByERC_C
CPOptionValue removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPOptionValueException Removes the cp option value where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the cp option value that was removed
- Throws:
NoSuchCPOptionValueException
-
countByERC_C
Returns the number of cp option values where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching cp option values
-
cacheResult
Caches the cp option value in the entity cache if it is enabled.- Parameters:
cpOptionValue
- the cp option value
-
cacheResult
Caches the cp option values in the entity cache if it is enabled.- Parameters:
cpOptionValues
- the cp option values
-
create
Creates a new cp option value with the primary key. Does not add the cp option value to the database.- Parameters:
CPOptionValueId
- the primary key for the new cp option value- Returns:
- the new cp option value
-
remove
Removes the cp option value with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
CPOptionValueId
- the primary key of the cp option value- Returns:
- the cp option value that was removed
- Throws:
NoSuchCPOptionValueException
- if a cp option value with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the cp option value with the primary key or throws aNoSuchCPOptionValueException
if it could not be found.- Parameters:
CPOptionValueId
- the primary key of the cp option value- Returns:
- the cp option value
- Throws:
NoSuchCPOptionValueException
- if a cp option value with the primary key could not be found
-
fetchByPrimaryKey
Returns the cp option value with the primary key or returnsnull
if it could not be found.- Parameters:
CPOptionValueId
- the primary key of the cp option value- Returns:
- the cp option value, or
null
if a cp option value with the primary key could not be found
-
findAll
List<CPOptionValue> findAll()Returns all the cp option values.- Returns:
- the cp option values
-
findAll
Returns a range of all the cp option values.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPOptionValueModelImpl
.- Parameters:
start
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)- Returns:
- the range of cp option values
-
findAll
List<CPOptionValue> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPOptionValueModelImpl
.- Parameters:
start
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of cp option values
-
findAll
List<CPOptionValue> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPOptionValueModelImpl
.- Parameters:
start
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of cp option values
-
removeAll
void removeAll()Removes all the cp option values from the database. -
countAll
int countAll()Returns the number of cp option values.- Returns:
- the number of cp option values
-