Class CPSpecificationOptionListTypeDefinitionRelUtil
com.liferay.commerce.product.service.persistence.impl.CPSpecificationOptionListTypeDefinitionRelPersistenceImpl
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CPSpecificationOptionListTypeDefinitionRel cpSpecificationOptionListTypeDefinitionRel) Caches the cp specification option list type definition rel in the entity cache if it is enabled.static void
cacheResult
(List<CPSpecificationOptionListTypeDefinitionRel> cpSpecificationOptionListTypeDefinitionRels) Caches the cp specification option list type definition rels in the entity cache if it is enabled.static void
static void
clearCache
(CPSpecificationOptionListTypeDefinitionRel cpSpecificationOptionListTypeDefinitionRel) static int
countAll()
Returns the number of cp specification option list type definition rels.static int
countByC_L
(long CPSpecificationOptionId, long listTypeDefinitionId) Returns the number of cp specification option list type definition rels where CPSpecificationOptionId = ? and listTypeDefinitionId = ?.static int
countByCPSpecificationOptionId
(long CPSpecificationOptionId) Returns the number of cp specification option list type definition rels where CPSpecificationOptionId = ?.static int
countByListTypeDefinitionId
(long listTypeDefinitionId) Returns the number of cp specification option list type definition rels where listTypeDefinitionId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) create
(long CPSpecificationOptionListTypeDefinitionRelId) Creates a new cp specification option list type definition rel with the primary key.fetchByC_L
(long CPSpecificationOptionId, long listTypeDefinitionId) Returns the cp specification option list type definition rel where CPSpecificationOptionId = ? and listTypeDefinitionId = ? or returnsnull
if it could not be found.fetchByC_L
(long CPSpecificationOptionId, long listTypeDefinitionId, boolean useFinderCache) Returns the cp specification option list type definition rel where CPSpecificationOptionId = ? and listTypeDefinitionId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByCPSpecificationOptionId_First
(long CPSpecificationOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns the first cp specification option list type definition rel in the ordered set where CPSpecificationOptionId = ?.fetchByCPSpecificationOptionId_Last
(long CPSpecificationOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns the last cp specification option list type definition rel in the ordered set where CPSpecificationOptionId = ?.fetchByListTypeDefinitionId_First
(long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns the first cp specification option list type definition rel in the ordered set where listTypeDefinitionId = ?.fetchByListTypeDefinitionId_Last
(long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns the last cp specification option list type definition rel in the ordered set where listTypeDefinitionId = ?.fetchByPrimaryKey
(long CPSpecificationOptionListTypeDefinitionRelId) Returns the cp specification option list type definition rel with the primary key or returnsnull
if it could not be found.fetchByPrimaryKeys
(Set<Serializable> primaryKeys) findAll()
Returns all the cp specification option list type definition rels.findAll
(int start, int end) Returns a range of all the cp specification option list type definition rels.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns an ordered range of all the cp specification option list type definition rels.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp specification option list type definition rels.findByC_L
(long CPSpecificationOptionId, long listTypeDefinitionId) Returns the cp specification option list type definition rel where CPSpecificationOptionId = ? and listTypeDefinitionId = ? or throws aNoSuchCPSpecificationOptionListTypeDefinitionRelException
if it could not be found.findByCPSpecificationOptionId
(long CPSpecificationOptionId) Returns all the cp specification option list type definition rels where CPSpecificationOptionId = ?.findByCPSpecificationOptionId
(long CPSpecificationOptionId, int start, int end) Returns a range of all the cp specification option list type definition rels where CPSpecificationOptionId = ?.findByCPSpecificationOptionId
(long CPSpecificationOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns an ordered range of all the cp specification option list type definition rels where CPSpecificationOptionId = ?.findByCPSpecificationOptionId
(long CPSpecificationOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp specification option list type definition rels where CPSpecificationOptionId = ?.findByCPSpecificationOptionId_First
(long CPSpecificationOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns the first cp specification option list type definition rel in the ordered set where CPSpecificationOptionId = ?.findByCPSpecificationOptionId_Last
(long CPSpecificationOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns the last cp specification option list type definition rel in the ordered set where CPSpecificationOptionId = ?.findByCPSpecificationOptionId_PrevAndNext
(long CPSpecificationOptionListTypeDefinitionRelId, long CPSpecificationOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns the cp specification option list type definition rels before and after the current cp specification option list type definition rel in the ordered set where CPSpecificationOptionId = ?.findByListTypeDefinitionId
(long listTypeDefinitionId) Returns all the cp specification option list type definition rels where listTypeDefinitionId = ?.findByListTypeDefinitionId
(long listTypeDefinitionId, int start, int end) Returns a range of all the cp specification option list type definition rels where listTypeDefinitionId = ?.findByListTypeDefinitionId
(long listTypeDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns an ordered range of all the cp specification option list type definition rels where listTypeDefinitionId = ?.findByListTypeDefinitionId
(long listTypeDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp specification option list type definition rels where listTypeDefinitionId = ?.findByListTypeDefinitionId_First
(long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns the first cp specification option list type definition rel in the ordered set where listTypeDefinitionId = ?.findByListTypeDefinitionId_Last
(long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns the last cp specification option list type definition rel in the ordered set where listTypeDefinitionId = ?.findByListTypeDefinitionId_PrevAndNext
(long CPSpecificationOptionListTypeDefinitionRelId, long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns the cp specification option list type definition rels before and after the current cp specification option list type definition rel in the ordered set where listTypeDefinitionId = ?.findByPrimaryKey
(long CPSpecificationOptionListTypeDefinitionRelId) Returns the cp specification option list type definition rel with the primary key or throws aNoSuchCPSpecificationOptionListTypeDefinitionRelException
if it could not be found.findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) remove
(long CPSpecificationOptionListTypeDefinitionRelId) Removes the cp specification option list type definition rel with the primary key from the database.static void
Removes all the cp specification option list type definition rels from the database.removeByC_L
(long CPSpecificationOptionId, long listTypeDefinitionId) Removes the cp specification option list type definition rel where CPSpecificationOptionId = ? and listTypeDefinitionId = ? from the database.static void
removeByCPSpecificationOptionId
(long CPSpecificationOptionId) Removes all the cp specification option list type definition rels where CPSpecificationOptionId = ? from the database.static void
removeByListTypeDefinitionId
(long listTypeDefinitionId) Removes all the cp specification option list type definition rels where listTypeDefinitionId = ? from the database.static void
update
(CPSpecificationOptionListTypeDefinitionRel cpSpecificationOptionListTypeDefinitionRel) update
(CPSpecificationOptionListTypeDefinitionRel cpSpecificationOptionListTypeDefinitionRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateImpl
(CPSpecificationOptionListTypeDefinitionRel cpSpecificationOptionListTypeDefinitionRel)
-
Constructor Details
-
CPSpecificationOptionListTypeDefinitionRelUtil
public CPSpecificationOptionListTypeDefinitionRelUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
public static void clearCache(CPSpecificationOptionListTypeDefinitionRel cpSpecificationOptionListTypeDefinitionRel) - See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,CPSpecificationOptionListTypeDefinitionRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CPSpecificationOptionListTypeDefinitionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CPSpecificationOptionListTypeDefinitionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CPSpecificationOptionListTypeDefinitionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static CPSpecificationOptionListTypeDefinitionRel update(CPSpecificationOptionListTypeDefinitionRel cpSpecificationOptionListTypeDefinitionRel) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CPSpecificationOptionListTypeDefinitionRel update(CPSpecificationOptionListTypeDefinitionRel cpSpecificationOptionListTypeDefinitionRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCPSpecificationOptionId
public static List<CPSpecificationOptionListTypeDefinitionRel> findByCPSpecificationOptionId(long CPSpecificationOptionId) Returns all the cp specification option list type definition rels where CPSpecificationOptionId = ?.- Parameters:
CPSpecificationOptionId
- the cp specification option ID- Returns:
- the matching cp specification option list type definition rels
-
findByCPSpecificationOptionId
public static List<CPSpecificationOptionListTypeDefinitionRel> findByCPSpecificationOptionId(long CPSpecificationOptionId, int start, int end) Returns a range of all the cp specification option list type definition rels where CPSpecificationOptionId = ?.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 fromCPSpecificationOptionListTypeDefinitionRelModelImpl
.- Parameters:
CPSpecificationOptionId
- the cp specification option IDstart
- the lower bound of the range of cp specification option list type definition relsend
- the upper bound of the range of cp specification option list type definition rels (not inclusive)- Returns:
- the range of matching cp specification option list type definition rels
-
findByCPSpecificationOptionId
public static List<CPSpecificationOptionListTypeDefinitionRel> findByCPSpecificationOptionId(long CPSpecificationOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns an ordered range of all the cp specification option list type definition rels where CPSpecificationOptionId = ?.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 fromCPSpecificationOptionListTypeDefinitionRelModelImpl
.- Parameters:
CPSpecificationOptionId
- the cp specification option IDstart
- the lower bound of the range of cp specification option list type definition relsend
- the upper bound of the range of cp specification option list type definition rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp specification option list type definition rels
-
findByCPSpecificationOptionId
public static List<CPSpecificationOptionListTypeDefinitionRel> findByCPSpecificationOptionId(long CPSpecificationOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp specification option list type definition rels where CPSpecificationOptionId = ?.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 fromCPSpecificationOptionListTypeDefinitionRelModelImpl
.- Parameters:
CPSpecificationOptionId
- the cp specification option IDstart
- the lower bound of the range of cp specification option list type definition relsend
- the upper bound of the range of cp specification option list type definition rels (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 specification option list type definition rels
-
findByCPSpecificationOptionId_First
public static CPSpecificationOptionListTypeDefinitionRel findByCPSpecificationOptionId_First(long CPSpecificationOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) throws NoSuchCPSpecificationOptionListTypeDefinitionRelException Returns the first cp specification option list type definition rel in the ordered set where CPSpecificationOptionId = ?.- Parameters:
CPSpecificationOptionId
- the cp specification option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp specification option list type definition rel
- Throws:
NoSuchCPSpecificationOptionListTypeDefinitionRelException
- if a matching cp specification option list type definition rel could not be foundNoSuchCPSpecificationOptionListTypeDefinitionRelException
-
fetchByCPSpecificationOptionId_First
public static CPSpecificationOptionListTypeDefinitionRel fetchByCPSpecificationOptionId_First(long CPSpecificationOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns the first cp specification option list type definition rel in the ordered set where CPSpecificationOptionId = ?.- Parameters:
CPSpecificationOptionId
- the cp specification option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp specification option list type definition rel, or
null
if a matching cp specification option list type definition rel could not be found
-
findByCPSpecificationOptionId_Last
public static CPSpecificationOptionListTypeDefinitionRel findByCPSpecificationOptionId_Last(long CPSpecificationOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) throws NoSuchCPSpecificationOptionListTypeDefinitionRelException Returns the last cp specification option list type definition rel in the ordered set where CPSpecificationOptionId = ?.- Parameters:
CPSpecificationOptionId
- the cp specification option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp specification option list type definition rel
- Throws:
NoSuchCPSpecificationOptionListTypeDefinitionRelException
- if a matching cp specification option list type definition rel could not be foundNoSuchCPSpecificationOptionListTypeDefinitionRelException
-
fetchByCPSpecificationOptionId_Last
public static CPSpecificationOptionListTypeDefinitionRel fetchByCPSpecificationOptionId_Last(long CPSpecificationOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns the last cp specification option list type definition rel in the ordered set where CPSpecificationOptionId = ?.- Parameters:
CPSpecificationOptionId
- the cp specification option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp specification option list type definition rel, or
null
if a matching cp specification option list type definition rel could not be found
-
findByCPSpecificationOptionId_PrevAndNext
public static CPSpecificationOptionListTypeDefinitionRel[] findByCPSpecificationOptionId_PrevAndNext(long CPSpecificationOptionListTypeDefinitionRelId, long CPSpecificationOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) throws NoSuchCPSpecificationOptionListTypeDefinitionRelException Returns the cp specification option list type definition rels before and after the current cp specification option list type definition rel in the ordered set where CPSpecificationOptionId = ?.- Parameters:
CPSpecificationOptionListTypeDefinitionRelId
- the primary key of the current cp specification option list type definition relCPSpecificationOptionId
- the cp specification option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp specification option list type definition rel
- Throws:
NoSuchCPSpecificationOptionListTypeDefinitionRelException
- if a cp specification option list type definition rel with the primary key could not be foundNoSuchCPSpecificationOptionListTypeDefinitionRelException
-
removeByCPSpecificationOptionId
public static void removeByCPSpecificationOptionId(long CPSpecificationOptionId) Removes all the cp specification option list type definition rels where CPSpecificationOptionId = ? from the database.- Parameters:
CPSpecificationOptionId
- the cp specification option ID
-
countByCPSpecificationOptionId
public static int countByCPSpecificationOptionId(long CPSpecificationOptionId) Returns the number of cp specification option list type definition rels where CPSpecificationOptionId = ?.- Parameters:
CPSpecificationOptionId
- the cp specification option ID- Returns:
- the number of matching cp specification option list type definition rels
-
findByListTypeDefinitionId
public static List<CPSpecificationOptionListTypeDefinitionRel> findByListTypeDefinitionId(long listTypeDefinitionId) Returns all the cp specification option list type definition rels where listTypeDefinitionId = ?.- Parameters:
listTypeDefinitionId
- the list type definition ID- Returns:
- the matching cp specification option list type definition rels
-
findByListTypeDefinitionId
public static List<CPSpecificationOptionListTypeDefinitionRel> findByListTypeDefinitionId(long listTypeDefinitionId, int start, int end) Returns a range of all the cp specification option list type definition rels where listTypeDefinitionId = ?.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 fromCPSpecificationOptionListTypeDefinitionRelModelImpl
.- Parameters:
listTypeDefinitionId
- the list type definition IDstart
- the lower bound of the range of cp specification option list type definition relsend
- the upper bound of the range of cp specification option list type definition rels (not inclusive)- Returns:
- the range of matching cp specification option list type definition rels
-
findByListTypeDefinitionId
public static List<CPSpecificationOptionListTypeDefinitionRel> findByListTypeDefinitionId(long listTypeDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns an ordered range of all the cp specification option list type definition rels where listTypeDefinitionId = ?.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 fromCPSpecificationOptionListTypeDefinitionRelModelImpl
.- Parameters:
listTypeDefinitionId
- the list type definition IDstart
- the lower bound of the range of cp specification option list type definition relsend
- the upper bound of the range of cp specification option list type definition rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp specification option list type definition rels
-
findByListTypeDefinitionId
public static List<CPSpecificationOptionListTypeDefinitionRel> findByListTypeDefinitionId(long listTypeDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp specification option list type definition rels where listTypeDefinitionId = ?.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 fromCPSpecificationOptionListTypeDefinitionRelModelImpl
.- Parameters:
listTypeDefinitionId
- the list type definition IDstart
- the lower bound of the range of cp specification option list type definition relsend
- the upper bound of the range of cp specification option list type definition rels (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 specification option list type definition rels
-
findByListTypeDefinitionId_First
public static CPSpecificationOptionListTypeDefinitionRel findByListTypeDefinitionId_First(long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) throws NoSuchCPSpecificationOptionListTypeDefinitionRelException Returns the first cp specification option list type definition rel in the ordered set where listTypeDefinitionId = ?.- Parameters:
listTypeDefinitionId
- the list type definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp specification option list type definition rel
- Throws:
NoSuchCPSpecificationOptionListTypeDefinitionRelException
- if a matching cp specification option list type definition rel could not be foundNoSuchCPSpecificationOptionListTypeDefinitionRelException
-
fetchByListTypeDefinitionId_First
public static CPSpecificationOptionListTypeDefinitionRel fetchByListTypeDefinitionId_First(long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns the first cp specification option list type definition rel in the ordered set where listTypeDefinitionId = ?.- Parameters:
listTypeDefinitionId
- the list type definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp specification option list type definition rel, or
null
if a matching cp specification option list type definition rel could not be found
-
findByListTypeDefinitionId_Last
public static CPSpecificationOptionListTypeDefinitionRel findByListTypeDefinitionId_Last(long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) throws NoSuchCPSpecificationOptionListTypeDefinitionRelException Returns the last cp specification option list type definition rel in the ordered set where listTypeDefinitionId = ?.- Parameters:
listTypeDefinitionId
- the list type definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp specification option list type definition rel
- Throws:
NoSuchCPSpecificationOptionListTypeDefinitionRelException
- if a matching cp specification option list type definition rel could not be foundNoSuchCPSpecificationOptionListTypeDefinitionRelException
-
fetchByListTypeDefinitionId_Last
public static CPSpecificationOptionListTypeDefinitionRel fetchByListTypeDefinitionId_Last(long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns the last cp specification option list type definition rel in the ordered set where listTypeDefinitionId = ?.- Parameters:
listTypeDefinitionId
- the list type definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp specification option list type definition rel, or
null
if a matching cp specification option list type definition rel could not be found
-
findByListTypeDefinitionId_PrevAndNext
public static CPSpecificationOptionListTypeDefinitionRel[] findByListTypeDefinitionId_PrevAndNext(long CPSpecificationOptionListTypeDefinitionRelId, long listTypeDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) throws NoSuchCPSpecificationOptionListTypeDefinitionRelException Returns the cp specification option list type definition rels before and after the current cp specification option list type definition rel in the ordered set where listTypeDefinitionId = ?.- Parameters:
CPSpecificationOptionListTypeDefinitionRelId
- the primary key of the current cp specification option list type definition rellistTypeDefinitionId
- the list type definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp specification option list type definition rel
- Throws:
NoSuchCPSpecificationOptionListTypeDefinitionRelException
- if a cp specification option list type definition rel with the primary key could not be foundNoSuchCPSpecificationOptionListTypeDefinitionRelException
-
removeByListTypeDefinitionId
public static void removeByListTypeDefinitionId(long listTypeDefinitionId) Removes all the cp specification option list type definition rels where listTypeDefinitionId = ? from the database.- Parameters:
listTypeDefinitionId
- the list type definition ID
-
countByListTypeDefinitionId
public static int countByListTypeDefinitionId(long listTypeDefinitionId) Returns the number of cp specification option list type definition rels where listTypeDefinitionId = ?.- Parameters:
listTypeDefinitionId
- the list type definition ID- Returns:
- the number of matching cp specification option list type definition rels
-
findByC_L
public static CPSpecificationOptionListTypeDefinitionRel findByC_L(long CPSpecificationOptionId, long listTypeDefinitionId) throws NoSuchCPSpecificationOptionListTypeDefinitionRelException Returns the cp specification option list type definition rel where CPSpecificationOptionId = ? and listTypeDefinitionId = ? or throws aNoSuchCPSpecificationOptionListTypeDefinitionRelException
if it could not be found.- Parameters:
CPSpecificationOptionId
- the cp specification option IDlistTypeDefinitionId
- the list type definition ID- Returns:
- the matching cp specification option list type definition rel
- Throws:
NoSuchCPSpecificationOptionListTypeDefinitionRelException
- if a matching cp specification option list type definition rel could not be foundNoSuchCPSpecificationOptionListTypeDefinitionRelException
-
fetchByC_L
public static CPSpecificationOptionListTypeDefinitionRel fetchByC_L(long CPSpecificationOptionId, long listTypeDefinitionId) Returns the cp specification option list type definition rel where CPSpecificationOptionId = ? and listTypeDefinitionId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
CPSpecificationOptionId
- the cp specification option IDlistTypeDefinitionId
- the list type definition ID- Returns:
- the matching cp specification option list type definition rel, or
null
if a matching cp specification option list type definition rel could not be found
-
fetchByC_L
public static CPSpecificationOptionListTypeDefinitionRel fetchByC_L(long CPSpecificationOptionId, long listTypeDefinitionId, boolean useFinderCache) Returns the cp specification option list type definition rel where CPSpecificationOptionId = ? and listTypeDefinitionId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
CPSpecificationOptionId
- the cp specification option IDlistTypeDefinitionId
- the list type definition IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp specification option list type definition rel, or
null
if a matching cp specification option list type definition rel could not be found
-
removeByC_L
public static CPSpecificationOptionListTypeDefinitionRel removeByC_L(long CPSpecificationOptionId, long listTypeDefinitionId) throws NoSuchCPSpecificationOptionListTypeDefinitionRelException Removes the cp specification option list type definition rel where CPSpecificationOptionId = ? and listTypeDefinitionId = ? from the database.- Parameters:
CPSpecificationOptionId
- the cp specification option IDlistTypeDefinitionId
- the list type definition ID- Returns:
- the cp specification option list type definition rel that was removed
- Throws:
NoSuchCPSpecificationOptionListTypeDefinitionRelException
-
countByC_L
public static int countByC_L(long CPSpecificationOptionId, long listTypeDefinitionId) Returns the number of cp specification option list type definition rels where CPSpecificationOptionId = ? and listTypeDefinitionId = ?.- Parameters:
CPSpecificationOptionId
- the cp specification option IDlistTypeDefinitionId
- the list type definition ID- Returns:
- the number of matching cp specification option list type definition rels
-
cacheResult
public static void cacheResult(CPSpecificationOptionListTypeDefinitionRel cpSpecificationOptionListTypeDefinitionRel) Caches the cp specification option list type definition rel in the entity cache if it is enabled.- Parameters:
cpSpecificationOptionListTypeDefinitionRel
- the cp specification option list type definition rel
-
cacheResult
public static void cacheResult(List<CPSpecificationOptionListTypeDefinitionRel> cpSpecificationOptionListTypeDefinitionRels) Caches the cp specification option list type definition rels in the entity cache if it is enabled.- Parameters:
cpSpecificationOptionListTypeDefinitionRels
- the cp specification option list type definition rels
-
create
public static CPSpecificationOptionListTypeDefinitionRel create(long CPSpecificationOptionListTypeDefinitionRelId) Creates a new cp specification option list type definition rel with the primary key. Does not add the cp specification option list type definition rel to the database.- Parameters:
CPSpecificationOptionListTypeDefinitionRelId
- the primary key for the new cp specification option list type definition rel- Returns:
- the new cp specification option list type definition rel
-
remove
public static CPSpecificationOptionListTypeDefinitionRel remove(long CPSpecificationOptionListTypeDefinitionRelId) throws NoSuchCPSpecificationOptionListTypeDefinitionRelException Removes the cp specification option list type definition rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
CPSpecificationOptionListTypeDefinitionRelId
- the primary key of the cp specification option list type definition rel- Returns:
- the cp specification option list type definition rel that was removed
- Throws:
NoSuchCPSpecificationOptionListTypeDefinitionRelException
- if a cp specification option list type definition rel with the primary key could not be foundNoSuchCPSpecificationOptionListTypeDefinitionRelException
-
updateImpl
public static CPSpecificationOptionListTypeDefinitionRel updateImpl(CPSpecificationOptionListTypeDefinitionRel cpSpecificationOptionListTypeDefinitionRel) -
findByPrimaryKey
public static CPSpecificationOptionListTypeDefinitionRel findByPrimaryKey(long CPSpecificationOptionListTypeDefinitionRelId) throws NoSuchCPSpecificationOptionListTypeDefinitionRelException Returns the cp specification option list type definition rel with the primary key or throws aNoSuchCPSpecificationOptionListTypeDefinitionRelException
if it could not be found.- Parameters:
CPSpecificationOptionListTypeDefinitionRelId
- the primary key of the cp specification option list type definition rel- Returns:
- the cp specification option list type definition rel
- Throws:
NoSuchCPSpecificationOptionListTypeDefinitionRelException
- if a cp specification option list type definition rel with the primary key could not be foundNoSuchCPSpecificationOptionListTypeDefinitionRelException
-
fetchByPrimaryKey
public static CPSpecificationOptionListTypeDefinitionRel fetchByPrimaryKey(long CPSpecificationOptionListTypeDefinitionRelId) Returns the cp specification option list type definition rel with the primary key or returnsnull
if it could not be found.- Parameters:
CPSpecificationOptionListTypeDefinitionRelId
- the primary key of the cp specification option list type definition rel- Returns:
- the cp specification option list type definition rel, or
null
if a cp specification option list type definition rel with the primary key could not be found
-
findAll
Returns all the cp specification option list type definition rels.- Returns:
- the cp specification option list type definition rels
-
findAll
Returns a range of all the cp specification option list type definition rels.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 fromCPSpecificationOptionListTypeDefinitionRelModelImpl
.- Parameters:
start
- the lower bound of the range of cp specification option list type definition relsend
- the upper bound of the range of cp specification option list type definition rels (not inclusive)- Returns:
- the range of cp specification option list type definition rels
-
findAll
public static List<CPSpecificationOptionListTypeDefinitionRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator) Returns an ordered range of all the cp specification option list type definition rels.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 fromCPSpecificationOptionListTypeDefinitionRelModelImpl
.- Parameters:
start
- the lower bound of the range of cp specification option list type definition relsend
- the upper bound of the range of cp specification option list type definition rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of cp specification option list type definition rels
-
findAll
public static List<CPSpecificationOptionListTypeDefinitionRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOptionListTypeDefinitionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp specification option list type definition rels.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 fromCPSpecificationOptionListTypeDefinitionRelModelImpl
.- Parameters:
start
- the lower bound of the range of cp specification option list type definition relsend
- the upper bound of the range of cp specification option list type definition rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of cp specification option list type definition rels
-
removeAll
public static void removeAll()Removes all the cp specification option list type definition rels from the database. -
countAll
public static int countAll()Returns the number of cp specification option list type definition rels.- Returns:
- the number of cp specification option list type definition rels
-
getPersistence
-
setPersistence
public static void setPersistence(CPSpecificationOptionListTypeDefinitionRelPersistence persistence)
-