Class COREntryRelUtil
com.liferay.commerce.order.rule.service.persistence.impl.COREntryRelPersistenceImpl
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
(COREntryRel corEntryRel) Caches the cor entry rel in the entity cache if it is enabled.static void
cacheResult
(List<COREntryRel> corEntryRels) Caches the cor entry rels in the entity cache if it is enabled.static void
static void
clearCache
(COREntryRel corEntryRel) static int
countAll()
Returns the number of cor entry rels.static int
countByC_C
(long classNameId, long COREntryId) Returns the number of cor entry rels where classNameId = ? and COREntryId = ?.static int
countByC_C_C
(long classNameId, long classPK, long COREntryId) Returns the number of cor entry rels where classNameId = ? and classPK = ? and COREntryId = ?.static int
countByCOREntryId
(long COREntryId) Returns the number of cor entry rels where COREntryId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static COREntryRel
create
(long COREntryRelId) Creates a new cor entry rel with the primary key.static COREntryRel
fetchByC_C_C
(long classNameId, long classPK, long COREntryId) Returns the cor entry rel where classNameId = ? and classPK = ? and COREntryId = ? or returnsnull
if it could not be found.static COREntryRel
fetchByC_C_C
(long classNameId, long classPK, long COREntryId, boolean useFinderCache) Returns the cor entry rel where classNameId = ? and classPK = ? and COREntryId = ? or returnsnull
if it could not be found, optionally using the finder cache.static COREntryRel
fetchByC_C_First
(long classNameId, long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns the first cor entry rel in the ordered set where classNameId = ? and COREntryId = ?.static COREntryRel
fetchByC_C_Last
(long classNameId, long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns the last cor entry rel in the ordered set where classNameId = ? and COREntryId = ?.static COREntryRel
fetchByCOREntryId_First
(long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns the first cor entry rel in the ordered set where COREntryId = ?.static COREntryRel
fetchByCOREntryId_Last
(long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns the last cor entry rel in the ordered set where COREntryId = ?.static COREntryRel
fetchByPrimaryKey
(long COREntryRelId) Returns the cor entry rel with the primary key or returnsnull
if it could not be found.static Map<Serializable,
COREntryRel> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<COREntryRel>
findAll()
Returns all the cor entry rels.static List<COREntryRel>
findAll
(int start, int end) Returns a range of all the cor entry rels.static List<COREntryRel>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns an ordered range of all the cor entry rels.static List<COREntryRel>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cor entry rels.static List<COREntryRel>
findByC_C
(long classNameId, long COREntryId) Returns all the cor entry rels where classNameId = ? and COREntryId = ?.static List<COREntryRel>
findByC_C
(long classNameId, long COREntryId, int start, int end) Returns a range of all the cor entry rels where classNameId = ? and COREntryId = ?.static List<COREntryRel>
findByC_C
(long classNameId, long COREntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns an ordered range of all the cor entry rels where classNameId = ? and COREntryId = ?.static List<COREntryRel>
findByC_C
(long classNameId, long COREntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cor entry rels where classNameId = ? and COREntryId = ?.static COREntryRel
findByC_C_C
(long classNameId, long classPK, long COREntryId) Returns the cor entry rel where classNameId = ? and classPK = ? and COREntryId = ? or throws aNoSuchCOREntryRelException
if it could not be found.static COREntryRel
findByC_C_First
(long classNameId, long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns the first cor entry rel in the ordered set where classNameId = ? and COREntryId = ?.static COREntryRel
findByC_C_Last
(long classNameId, long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns the last cor entry rel in the ordered set where classNameId = ? and COREntryId = ?.static COREntryRel[]
findByC_C_PrevAndNext
(long COREntryRelId, long classNameId, long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns the cor entry rels before and after the current cor entry rel in the ordered set where classNameId = ? and COREntryId = ?.static List<COREntryRel>
findByCOREntryId
(long COREntryId) Returns all the cor entry rels where COREntryId = ?.static List<COREntryRel>
findByCOREntryId
(long COREntryId, int start, int end) Returns a range of all the cor entry rels where COREntryId = ?.static List<COREntryRel>
findByCOREntryId
(long COREntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns an ordered range of all the cor entry rels where COREntryId = ?.static List<COREntryRel>
findByCOREntryId
(long COREntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cor entry rels where COREntryId = ?.static COREntryRel
findByCOREntryId_First
(long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns the first cor entry rel in the ordered set where COREntryId = ?.static COREntryRel
findByCOREntryId_Last
(long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns the last cor entry rel in the ordered set where COREntryId = ?.static COREntryRel[]
findByCOREntryId_PrevAndNext
(long COREntryRelId, long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns the cor entry rels before and after the current cor entry rel in the ordered set where COREntryId = ?.static COREntryRel
findByPrimaryKey
(long COREntryRelId) Returns the cor entry rel with the primary key or throws aNoSuchCOREntryRelException
if it could not be found.static List<COREntryRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<COREntryRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<COREntryRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) static COREntryRelPersistence
static COREntryRel
remove
(long COREntryRelId) Removes the cor entry rel with the primary key from the database.static void
Removes all the cor entry rels from the database.static void
removeByC_C
(long classNameId, long COREntryId) Removes all the cor entry rels where classNameId = ? and COREntryId = ? from the database.static COREntryRel
removeByC_C_C
(long classNameId, long classPK, long COREntryId) Removes the cor entry rel where classNameId = ? and classPK = ? and COREntryId = ? from the database.static void
removeByCOREntryId
(long COREntryId) Removes all the cor entry rels where COREntryId = ? from the database.static void
setPersistence
(COREntryRelPersistence persistence) static COREntryRel
update
(COREntryRel corEntryRel) static COREntryRel
update
(COREntryRel corEntryRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) static COREntryRel
updateImpl
(COREntryRel corEntryRel)
-
Constructor Details
-
COREntryRelUtil
public COREntryRelUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- 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
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<COREntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<COREntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<COREntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static COREntryRel update(COREntryRel corEntryRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCOREntryId
Returns all the cor entry rels where COREntryId = ?.- Parameters:
COREntryId
- the cor entry ID- Returns:
- the matching cor entry rels
-
findByCOREntryId
Returns a range of all the cor entry rels where COREntryId = ?.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 fromCOREntryRelModelImpl
.- Parameters:
COREntryId
- the cor entry IDstart
- the lower bound of the range of cor entry relsend
- the upper bound of the range of cor entry rels (not inclusive)- Returns:
- the range of matching cor entry rels
-
findByCOREntryId
public static List<COREntryRel> findByCOREntryId(long COREntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns an ordered range of all the cor entry rels where COREntryId = ?.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 fromCOREntryRelModelImpl
.- Parameters:
COREntryId
- the cor entry IDstart
- the lower bound of the range of cor entry relsend
- the upper bound of the range of cor entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cor entry rels
-
findByCOREntryId
public static List<COREntryRel> findByCOREntryId(long COREntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cor entry rels where COREntryId = ?.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 fromCOREntryRelModelImpl
.- Parameters:
COREntryId
- the cor entry IDstart
- the lower bound of the range of cor entry relsend
- the upper bound of the range of cor entry 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 cor entry rels
-
findByCOREntryId_First
public static COREntryRel findByCOREntryId_First(long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) throws NoSuchCOREntryRelException Returns the first cor entry rel in the ordered set where COREntryId = ?.- Parameters:
COREntryId
- the cor entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cor entry rel
- Throws:
NoSuchCOREntryRelException
- if a matching cor entry rel could not be foundNoSuchCOREntryRelException
-
fetchByCOREntryId_First
public static COREntryRel fetchByCOREntryId_First(long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns the first cor entry rel in the ordered set where COREntryId = ?.- Parameters:
COREntryId
- the cor entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cor entry rel, or
null
if a matching cor entry rel could not be found
-
findByCOREntryId_Last
public static COREntryRel findByCOREntryId_Last(long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) throws NoSuchCOREntryRelException Returns the last cor entry rel in the ordered set where COREntryId = ?.- Parameters:
COREntryId
- the cor entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cor entry rel
- Throws:
NoSuchCOREntryRelException
- if a matching cor entry rel could not be foundNoSuchCOREntryRelException
-
fetchByCOREntryId_Last
public static COREntryRel fetchByCOREntryId_Last(long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns the last cor entry rel in the ordered set where COREntryId = ?.- Parameters:
COREntryId
- the cor entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cor entry rel, or
null
if a matching cor entry rel could not be found
-
findByCOREntryId_PrevAndNext
public static COREntryRel[] findByCOREntryId_PrevAndNext(long COREntryRelId, long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) throws NoSuchCOREntryRelException Returns the cor entry rels before and after the current cor entry rel in the ordered set where COREntryId = ?.- Parameters:
COREntryRelId
- the primary key of the current cor entry relCOREntryId
- the cor entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cor entry rel
- Throws:
NoSuchCOREntryRelException
- if a cor entry rel with the primary key could not be foundNoSuchCOREntryRelException
-
removeByCOREntryId
public static void removeByCOREntryId(long COREntryId) Removes all the cor entry rels where COREntryId = ? from the database.- Parameters:
COREntryId
- the cor entry ID
-
countByCOREntryId
public static int countByCOREntryId(long COREntryId) Returns the number of cor entry rels where COREntryId = ?.- Parameters:
COREntryId
- the cor entry ID- Returns:
- the number of matching cor entry rels
-
findByC_C
Returns all the cor entry rels where classNameId = ? and COREntryId = ?.- Parameters:
classNameId
- the class name IDCOREntryId
- the cor entry ID- Returns:
- the matching cor entry rels
-
findByC_C
Returns a range of all the cor entry rels where classNameId = ? and COREntryId = ?.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 fromCOREntryRelModelImpl
.- Parameters:
classNameId
- the class name IDCOREntryId
- the cor entry IDstart
- the lower bound of the range of cor entry relsend
- the upper bound of the range of cor entry rels (not inclusive)- Returns:
- the range of matching cor entry rels
-
findByC_C
public static List<COREntryRel> findByC_C(long classNameId, long COREntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns an ordered range of all the cor entry rels where classNameId = ? and COREntryId = ?.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 fromCOREntryRelModelImpl
.- Parameters:
classNameId
- the class name IDCOREntryId
- the cor entry IDstart
- the lower bound of the range of cor entry relsend
- the upper bound of the range of cor entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cor entry rels
-
findByC_C
public static List<COREntryRel> findByC_C(long classNameId, long COREntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cor entry rels where classNameId = ? and COREntryId = ?.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 fromCOREntryRelModelImpl
.- Parameters:
classNameId
- the class name IDCOREntryId
- the cor entry IDstart
- the lower bound of the range of cor entry relsend
- the upper bound of the range of cor entry 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 cor entry rels
-
findByC_C_First
public static COREntryRel findByC_C_First(long classNameId, long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) throws NoSuchCOREntryRelException Returns the first cor entry rel in the ordered set where classNameId = ? and COREntryId = ?.- Parameters:
classNameId
- the class name IDCOREntryId
- the cor entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cor entry rel
- Throws:
NoSuchCOREntryRelException
- if a matching cor entry rel could not be foundNoSuchCOREntryRelException
-
fetchByC_C_First
public static COREntryRel fetchByC_C_First(long classNameId, long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns the first cor entry rel in the ordered set where classNameId = ? and COREntryId = ?.- Parameters:
classNameId
- the class name IDCOREntryId
- the cor entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cor entry rel, or
null
if a matching cor entry rel could not be found
-
findByC_C_Last
public static COREntryRel findByC_C_Last(long classNameId, long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) throws NoSuchCOREntryRelException Returns the last cor entry rel in the ordered set where classNameId = ? and COREntryId = ?.- Parameters:
classNameId
- the class name IDCOREntryId
- the cor entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cor entry rel
- Throws:
NoSuchCOREntryRelException
- if a matching cor entry rel could not be foundNoSuchCOREntryRelException
-
fetchByC_C_Last
public static COREntryRel fetchByC_C_Last(long classNameId, long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns the last cor entry rel in the ordered set where classNameId = ? and COREntryId = ?.- Parameters:
classNameId
- the class name IDCOREntryId
- the cor entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cor entry rel, or
null
if a matching cor entry rel could not be found
-
findByC_C_PrevAndNext
public static COREntryRel[] findByC_C_PrevAndNext(long COREntryRelId, long classNameId, long COREntryId, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) throws NoSuchCOREntryRelException Returns the cor entry rels before and after the current cor entry rel in the ordered set where classNameId = ? and COREntryId = ?.- Parameters:
COREntryRelId
- the primary key of the current cor entry relclassNameId
- the class name IDCOREntryId
- the cor entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cor entry rel
- Throws:
NoSuchCOREntryRelException
- if a cor entry rel with the primary key could not be foundNoSuchCOREntryRelException
-
removeByC_C
public static void removeByC_C(long classNameId, long COREntryId) Removes all the cor entry rels where classNameId = ? and COREntryId = ? from the database.- Parameters:
classNameId
- the class name IDCOREntryId
- the cor entry ID
-
countByC_C
public static int countByC_C(long classNameId, long COREntryId) Returns the number of cor entry rels where classNameId = ? and COREntryId = ?.- Parameters:
classNameId
- the class name IDCOREntryId
- the cor entry ID- Returns:
- the number of matching cor entry rels
-
findByC_C_C
public static COREntryRel findByC_C_C(long classNameId, long classPK, long COREntryId) throws NoSuchCOREntryRelException Returns the cor entry rel where classNameId = ? and classPK = ? and COREntryId = ? or throws aNoSuchCOREntryRelException
if it could not be found.- Parameters:
classNameId
- the class name IDclassPK
- the class pkCOREntryId
- the cor entry ID- Returns:
- the matching cor entry rel
- Throws:
NoSuchCOREntryRelException
- if a matching cor entry rel could not be foundNoSuchCOREntryRelException
-
fetchByC_C_C
Returns the cor entry rel where classNameId = ? and classPK = ? and COREntryId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
classNameId
- the class name IDclassPK
- the class pkCOREntryId
- the cor entry ID- Returns:
- the matching cor entry rel, or
null
if a matching cor entry rel could not be found
-
fetchByC_C_C
public static COREntryRel fetchByC_C_C(long classNameId, long classPK, long COREntryId, boolean useFinderCache) Returns the cor entry rel where classNameId = ? and classPK = ? and COREntryId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
classNameId
- the class name IDclassPK
- the class pkCOREntryId
- the cor entry IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching cor entry rel, or
null
if a matching cor entry rel could not be found
-
removeByC_C_C
public static COREntryRel removeByC_C_C(long classNameId, long classPK, long COREntryId) throws NoSuchCOREntryRelException Removes the cor entry rel where classNameId = ? and classPK = ? and COREntryId = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pkCOREntryId
- the cor entry ID- Returns:
- the cor entry rel that was removed
- Throws:
NoSuchCOREntryRelException
-
countByC_C_C
public static int countByC_C_C(long classNameId, long classPK, long COREntryId) Returns the number of cor entry rels where classNameId = ? and classPK = ? and COREntryId = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkCOREntryId
- the cor entry ID- Returns:
- the number of matching cor entry rels
-
cacheResult
Caches the cor entry rel in the entity cache if it is enabled.- Parameters:
corEntryRel
- the cor entry rel
-
cacheResult
Caches the cor entry rels in the entity cache if it is enabled.- Parameters:
corEntryRels
- the cor entry rels
-
create
Creates a new cor entry rel with the primary key. Does not add the cor entry rel to the database.- Parameters:
COREntryRelId
- the primary key for the new cor entry rel- Returns:
- the new cor entry rel
-
remove
Removes the cor entry rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
COREntryRelId
- the primary key of the cor entry rel- Returns:
- the cor entry rel that was removed
- Throws:
NoSuchCOREntryRelException
- if a cor entry rel with the primary key could not be foundNoSuchCOREntryRelException
-
updateImpl
-
findByPrimaryKey
Returns the cor entry rel with the primary key or throws aNoSuchCOREntryRelException
if it could not be found.- Parameters:
COREntryRelId
- the primary key of the cor entry rel- Returns:
- the cor entry rel
- Throws:
NoSuchCOREntryRelException
- if a cor entry rel with the primary key could not be foundNoSuchCOREntryRelException
-
fetchByPrimaryKey
Returns the cor entry rel with the primary key or returnsnull
if it could not be found.- Parameters:
COREntryRelId
- the primary key of the cor entry rel- Returns:
- the cor entry rel, or
null
if a cor entry rel with the primary key could not be found
-
findAll
Returns all the cor entry rels.- Returns:
- the cor entry rels
-
findAll
Returns a range of all the cor entry 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 fromCOREntryRelModelImpl
.- Parameters:
start
- the lower bound of the range of cor entry relsend
- the upper bound of the range of cor entry rels (not inclusive)- Returns:
- the range of cor entry rels
-
findAll
public static List<COREntryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator) Returns an ordered range of all the cor entry 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 fromCOREntryRelModelImpl
.- Parameters:
start
- the lower bound of the range of cor entry relsend
- the upper bound of the range of cor entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of cor entry rels
-
findAll
public static List<COREntryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<COREntryRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cor entry 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 fromCOREntryRelModelImpl
.- Parameters:
start
- the lower bound of the range of cor entry relsend
- the upper bound of the range of cor entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of cor entry rels
-
removeAll
public static void removeAll()Removes all the cor entry rels from the database. -
countAll
public static int countAll()Returns the number of cor entry rels.- Returns:
- the number of cor entry rels
-
getPersistence
-
setPersistence
-