Interface CPOptionPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CPOption>
,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPOption>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CPOption cpOption) Caches the cp option in the entity cache if it is enabled.void
cacheResult
(List<CPOption> cpOptions) Caches the cp options in the entity cache if it is enabled.int
countAll()
Returns the number of cp options.int
countByC_K
(long companyId, String key) Returns the number of cp options where companyId = ? and key = ?.int
countByCompanyId
(long companyId) Returns the number of cp options where companyId = ?.int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of cp options where externalReferenceCode = ? and companyId = ?.int
countByUuid
(String uuid) Returns the number of cp options where uuid = ?.int
countByUuid_C
(String uuid, long companyId) Returns the number of cp options where uuid = ? and companyId = ?.create
(long CPOptionId) Creates a new cp option with the primary key.fetchByC_K
(long companyId, String key) Returns the cp option where companyId = ? and key = ? or returnsnull
if it could not be found.fetchByC_K
(long companyId, String key, boolean useFinderCache) Returns the cp option where companyId = ? 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<CPOption> orderByComparator) Returns the first cp option in the ordered set where companyId = ?.fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the last cp option in the ordered set where companyId = ?.fetchByERC_C
(String externalReferenceCode, long companyId) Returns the cp option where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the cp option where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByPrimaryKey
(long CPOptionId) Returns the cp option 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<CPOption> orderByComparator) Returns the first cp option in the ordered set where uuid = ? and companyId = ?.fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the last cp option in the ordered set where uuid = ? and companyId = ?.fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the first cp option in the ordered set where uuid = ?.fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the last cp option in the ordered set where uuid = ?.int
filterCountByCompanyId
(long companyId) Returns the number of cp options that the user has permission to view where companyId = ?.int
filterCountByUuid
(String uuid) Returns the number of cp options that the user has permission to view where uuid = ?.int
filterCountByUuid_C
(String uuid, long companyId) Returns the number of cp options that the user has permission to view where uuid = ? and companyId = ?.filterFindByCompanyId
(long companyId) Returns all the cp options that the user has permission to view where companyId = ?.filterFindByCompanyId
(long companyId, int start, int end) Returns a range of all the cp options that the user has permission to view where companyId = ?.filterFindByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns an ordered range of all the cp options that the user has permissions to view where companyId = ?.CPOption[]
filterFindByCompanyId_PrevAndNext
(long CPOptionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the cp options before and after the current cp option in the ordered set of cp options that the user has permission to view where companyId = ?.filterFindByUuid
(String uuid) Returns all the cp options that the user has permission to view where uuid = ?.filterFindByUuid
(String uuid, int start, int end) Returns a range of all the cp options that the user has permission to view where uuid = ?.filterFindByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns an ordered range of all the cp options that the user has permissions to view where uuid = ?.filterFindByUuid_C
(String uuid, long companyId) Returns all the cp options that the user has permission to view where uuid = ? and companyId = ?.filterFindByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the cp options that the user has permission to view where uuid = ? and companyId = ?.filterFindByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns an ordered range of all the cp options that the user has permissions to view where uuid = ? and companyId = ?.CPOption[]
filterFindByUuid_C_PrevAndNext
(long CPOptionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the cp options before and after the current cp option in the ordered set of cp options that the user has permission to view where uuid = ? and companyId = ?.CPOption[]
filterFindByUuid_PrevAndNext
(long CPOptionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the cp options before and after the current cp option in the ordered set of cp options that the user has permission to view where uuid = ?.findAll()
Returns all the cp options.findAll
(int start, int end) Returns a range of all the cp options.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns an ordered range of all the cp options.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp options.Returns the cp option where companyId = ? and key = ? or throws aNoSuchCPOptionException
if it could not be found.findByCompanyId
(long companyId) Returns all the cp options where companyId = ?.findByCompanyId
(long companyId, int start, int end) Returns a range of all the cp options where companyId = ?.findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns an ordered range of all the cp options where companyId = ?.findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp options where companyId = ?.findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the first cp option in the ordered set where companyId = ?.findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the last cp option in the ordered set where companyId = ?.CPOption[]
findByCompanyId_PrevAndNext
(long CPOptionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the cp options before and after the current cp option in the ordered set where companyId = ?.findByERC_C
(String externalReferenceCode, long companyId) Returns the cp option where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPOptionException
if it could not be found.findByPrimaryKey
(long CPOptionId) Returns the cp option with the primary key or throws aNoSuchCPOptionException
if it could not be found.findByUuid
(String uuid) Returns all the cp options where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the cp options where uuid = ?.findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns an ordered range of all the cp options where uuid = ?.findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp options where uuid = ?.findByUuid_C
(String uuid, long companyId) Returns all the cp options where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the cp options where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns an ordered range of all the cp options where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp options where uuid = ? and companyId = ?.findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the first cp option in the ordered set where uuid = ? and companyId = ?.findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the last cp option in the ordered set where uuid = ? and companyId = ?.CPOption[]
findByUuid_C_PrevAndNext
(long CPOptionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the cp options before and after the current cp option in the ordered set where uuid = ? and companyId = ?.findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the first cp option in the ordered set where uuid = ?.findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the last cp option in the ordered set where uuid = ?.CPOption[]
findByUuid_PrevAndNext
(long CPOptionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the cp options before and after the current cp option in the ordered set where uuid = ?.remove
(long CPOptionId) Removes the cp option with the primary key from the database.void
Removes all the cp options from the database.removeByC_K
(long companyId, String key) Removes the cp option where companyId = ? and key = ? from the database.void
removeByCompanyId
(long companyId) Removes all the cp options where companyId = ? from the database.removeByERC_C
(String externalReferenceCode, long companyId) Removes the cp option where externalReferenceCode = ? and companyId = ? from the database.void
removeByUuid
(String uuid) Removes all the cp options where uuid = ? from the database.void
removeByUuid_C
(String uuid, long companyId) Removes all the cp options where uuid = ? and companyId = ? from the database.updateImpl
(CPOption cpOption) 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 options where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching cp options
-
findByUuid
Returns a range of all the cp options 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 fromCPOptionModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)- Returns:
- the range of matching cp options
-
findByUuid
List<CPOption> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns an ordered range of all the cp options 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 fromCPOptionModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp options
-
findByUuid
List<CPOption> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp options 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 fromCPOptionModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (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 options
-
findByUuid_First
CPOption findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException Returns the first cp option in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option
- Throws:
NoSuchCPOptionException
- if a matching cp option could not be found
-
fetchByUuid_First
CPOption fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the first cp option in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option, or
null
if a matching cp option could not be found
-
findByUuid_Last
CPOption findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException Returns the last cp option in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option
- Throws:
NoSuchCPOptionException
- if a matching cp option could not be found
-
fetchByUuid_Last
CPOption fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the last cp option in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option, or
null
if a matching cp option could not be found
-
findByUuid_PrevAndNext
CPOption[] findByUuid_PrevAndNext(long CPOptionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException Returns the cp options before and after the current cp option in the ordered set where uuid = ?.- Parameters:
CPOptionId
- the primary key of the current cp optionuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp option
- Throws:
NoSuchCPOptionException
- if a cp option with the primary key could not be found
-
filterFindByUuid
Returns all the cp options that the user has permission to view where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching cp options that the user has permission to view
-
filterFindByUuid
Returns a range of all the cp options that the user has permission to view 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 fromCPOptionModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)- Returns:
- the range of matching cp options that the user has permission to view
-
filterFindByUuid
List<CPOption> filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns an ordered range of all the cp options that the user has permissions to view 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 fromCPOptionModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp options that the user has permission to view
-
filterFindByUuid_PrevAndNext
CPOption[] filterFindByUuid_PrevAndNext(long CPOptionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException Returns the cp options before and after the current cp option in the ordered set of cp options that the user has permission to view where uuid = ?.- Parameters:
CPOptionId
- the primary key of the current cp optionuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp option
- Throws:
NoSuchCPOptionException
- if a cp option with the primary key could not be found
-
removeByUuid
Removes all the cp options where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of cp options where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching cp options
-
filterCountByUuid
Returns the number of cp options that the user has permission to view where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching cp options that the user has permission to view
-
findByUuid_C
Returns all the cp options where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching cp options
-
findByUuid_C
Returns a range of all the cp options 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 fromCPOptionModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)- Returns:
- the range of matching cp options
-
findByUuid_C
List<CPOption> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns an ordered range of all the cp options 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 fromCPOptionModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp options
-
findByUuid_C
List<CPOption> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp options 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 fromCPOptionModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (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 options
-
findByUuid_C_First
CPOption findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException Returns the first cp option 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
- Throws:
NoSuchCPOptionException
- if a matching cp option could not be found
-
fetchByUuid_C_First
CPOption fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the first cp option 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, or
null
if a matching cp option could not be found
-
findByUuid_C_Last
CPOption findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException Returns the last cp option 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
- Throws:
NoSuchCPOptionException
- if a matching cp option could not be found
-
fetchByUuid_C_Last
CPOption fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the last cp option 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, or
null
if a matching cp option could not be found
-
findByUuid_C_PrevAndNext
CPOption[] findByUuid_C_PrevAndNext(long CPOptionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException Returns the cp options before and after the current cp option in the ordered set where uuid = ? and companyId = ?.- Parameters:
CPOptionId
- the primary key of the current cp optionuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp option
- Throws:
NoSuchCPOptionException
- if a cp option with the primary key could not be found
-
filterFindByUuid_C
Returns all the cp options that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching cp options that the user has permission to view
-
filterFindByUuid_C
Returns a range of all the cp options that the user has permission to view 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 fromCPOptionModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)- Returns:
- the range of matching cp options that the user has permission to view
-
filterFindByUuid_C
List<CPOption> filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns an ordered range of all the cp options that the user has permissions to view 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 fromCPOptionModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp options that the user has permission to view
-
filterFindByUuid_C_PrevAndNext
CPOption[] filterFindByUuid_C_PrevAndNext(long CPOptionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException Returns the cp options before and after the current cp option in the ordered set of cp options that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
CPOptionId
- the primary key of the current cp optionuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp option
- Throws:
NoSuchCPOptionException
- if a cp option with the primary key could not be found
-
removeByUuid_C
Removes all the cp options where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of cp options where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching cp options
-
filterCountByUuid_C
Returns the number of cp options that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching cp options that the user has permission to view
-
findByCompanyId
Returns all the cp options where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching cp options
-
findByCompanyId
Returns a range of all the cp options 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 fromCPOptionModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)- Returns:
- the range of matching cp options
-
findByCompanyId
List<CPOption> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns an ordered range of all the cp options 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 fromCPOptionModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp options
-
findByCompanyId
List<CPOption> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp options 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 fromCPOptionModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (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 options
-
findByCompanyId_First
CPOption findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException Returns the first cp option 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
- Throws:
NoSuchCPOptionException
- if a matching cp option could not be found
-
fetchByCompanyId_First
CPOption fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the first cp option 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, or
null
if a matching cp option could not be found
-
findByCompanyId_Last
CPOption findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException Returns the last cp option 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
- Throws:
NoSuchCPOptionException
- if a matching cp option could not be found
-
fetchByCompanyId_Last
CPOption fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns the last cp option 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, or
null
if a matching cp option could not be found
-
findByCompanyId_PrevAndNext
CPOption[] findByCompanyId_PrevAndNext(long CPOptionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException Returns the cp options before and after the current cp option in the ordered set where companyId = ?.- Parameters:
CPOptionId
- the primary key of the current cp optioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp option
- Throws:
NoSuchCPOptionException
- if a cp option with the primary key could not be found
-
filterFindByCompanyId
Returns all the cp options that the user has permission to view where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching cp options that the user has permission to view
-
filterFindByCompanyId
Returns a range of all the cp options that the user has permission to view 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 fromCPOptionModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)- Returns:
- the range of matching cp options that the user has permission to view
-
filterFindByCompanyId
List<CPOption> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns an ordered range of all the cp options that the user has permissions to view 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 fromCPOptionModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp options that the user has permission to view
-
filterFindByCompanyId_PrevAndNext
CPOption[] filterFindByCompanyId_PrevAndNext(long CPOptionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException Returns the cp options before and after the current cp option in the ordered set of cp options that the user has permission to view where companyId = ?.- Parameters:
CPOptionId
- the primary key of the current cp optioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp option
- Throws:
NoSuchCPOptionException
- if a cp option with the primary key could not be found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the cp options where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of cp options where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching cp options
-
filterCountByCompanyId
int filterCountByCompanyId(long companyId) Returns the number of cp options that the user has permission to view where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching cp options that the user has permission to view
-
findByC_K
Returns the cp option where companyId = ? and key = ? or throws aNoSuchCPOptionException
if it could not be found.- Parameters:
companyId
- the company IDkey
- the key- Returns:
- the matching cp option
- Throws:
NoSuchCPOptionException
- if a matching cp option could not be found
-
fetchByC_K
Returns the cp option where companyId = ? and key = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDkey
- the key- Returns:
- the matching cp option, or
null
if a matching cp option could not be found
-
fetchByC_K
Returns the cp option where companyId = ? and key = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDkey
- the keyuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp option, or
null
if a matching cp option could not be found
-
removeByC_K
Removes the cp option where companyId = ? and key = ? from the database.- Parameters:
companyId
- the company IDkey
- the key- Returns:
- the cp option that was removed
- Throws:
NoSuchCPOptionException
-
countByC_K
Returns the number of cp options where companyId = ? and key = ?.- Parameters:
companyId
- the company IDkey
- the key- Returns:
- the number of matching cp options
-
findByERC_C
Returns the cp option where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPOptionException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching cp option
- Throws:
NoSuchCPOptionException
- if a matching cp option could not be found
-
fetchByERC_C
Returns the cp option 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, or
null
if a matching cp option could not be found
-
fetchByERC_C
Returns the cp option 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, or
null
if a matching cp option could not be found
-
removeByERC_C
Removes the cp option where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the cp option that was removed
- Throws:
NoSuchCPOptionException
-
countByERC_C
Returns the number of cp options where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching cp options
-
cacheResult
Caches the cp option in the entity cache if it is enabled.- Parameters:
cpOption
- the cp option
-
cacheResult
Caches the cp options in the entity cache if it is enabled.- Parameters:
cpOptions
- the cp options
-
create
Creates a new cp option with the primary key. Does not add the cp option to the database.- Parameters:
CPOptionId
- the primary key for the new cp option- Returns:
- the new cp option
-
remove
Removes the cp option with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
CPOptionId
- the primary key of the cp option- Returns:
- the cp option that was removed
- Throws:
NoSuchCPOptionException
- if a cp option with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the cp option with the primary key or throws aNoSuchCPOptionException
if it could not be found.- Parameters:
CPOptionId
- the primary key of the cp option- Returns:
- the cp option
- Throws:
NoSuchCPOptionException
- if a cp option with the primary key could not be found
-
fetchByPrimaryKey
Returns the cp option with the primary key or returnsnull
if it could not be found.- Parameters:
CPOptionId
- the primary key of the cp option- Returns:
- the cp option, or
null
if a cp option with the primary key could not be found
-
findAll
Returns all the cp options.- Returns:
- the cp options
-
findAll
Returns a range of all the cp options.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 fromCPOptionModelImpl
.- Parameters:
start
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)- Returns:
- the range of cp options
-
findAll
List<CPOption> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) Returns an ordered range of all the cp options.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 fromCPOptionModelImpl
.- Parameters:
start
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of cp options
-
findAll
List<CPOption> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp options.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 fromCPOptionModelImpl
.- Parameters:
start
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of cp options
-
removeAll
void removeAll()Removes all the cp options from the database. -
countAll
int countAll()Returns the number of cp options.- Returns:
- the number of cp options
-