public class CommerceTermEntryRelUtil
extends java.lang.Object
com.liferay.commerce.term.service.persistence.impl.CommerceTermEntryRelPersistenceImpl
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
CommerceTermEntryRelPersistence
Constructor and Description |
---|
CommerceTermEntryRelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceTermEntryRel commerceTermEntryRel)
Caches the commerce term entry rel in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceTermEntryRel> commerceTermEntryRels)
Caches the commerce term entry rels in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceTermEntryRel commerceTermEntryRel) |
static int |
countAll()
Returns the number of commerce term entry rels.
|
static int |
countByC_C_C(long classNameId,
long classPK,
long commerceTermEntryId)
Returns the number of commerce term entry rels where classNameId = ? and classPK = ? and commerceTermEntryId = ?.
|
static int |
countByC_C(long classNameId,
long commerceTermEntryId)
Returns the number of commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.
|
static int |
countByCommerceTermEntryId(long commerceTermEntryId)
Returns the number of commerce term entry rels where commerceTermEntryId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceTermEntryRel |
create(long commerceTermEntryRelId)
Creates a new commerce term entry rel with the primary key.
|
static CommerceTermEntryRel |
fetchByC_C_C(long classNameId,
long classPK,
long commerceTermEntryId)
Returns the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? or returns
null if it could not be found. |
static CommerceTermEntryRel |
fetchByC_C_C(long classNameId,
long classPK,
long commerceTermEntryId,
boolean useFinderCache)
Returns the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceTermEntryRel |
fetchByC_C_First(long classNameId,
long commerceTermEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
Returns the first commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.
|
static CommerceTermEntryRel |
fetchByC_C_Last(long classNameId,
long commerceTermEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
Returns the last commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.
|
static CommerceTermEntryRel |
fetchByCommerceTermEntryId_First(long commerceTermEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
Returns the first commerce term entry rel in the ordered set where commerceTermEntryId = ?.
|
static CommerceTermEntryRel |
fetchByCommerceTermEntryId_Last(long commerceTermEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
Returns the last commerce term entry rel in the ordered set where commerceTermEntryId = ?.
|
static CommerceTermEntryRel |
fetchByPrimaryKey(long commerceTermEntryRelId)
Returns the commerce term entry rel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceTermEntryRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceTermEntryRel> |
findAll()
Returns all the commerce term entry rels.
|
static java.util.List<CommerceTermEntryRel> |
findAll(int start,
int end)
Returns a range of all the commerce term entry rels.
|
static java.util.List<CommerceTermEntryRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
Returns an ordered range of all the commerce term entry rels.
|
static java.util.List<CommerceTermEntryRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce term entry rels.
|
static CommerceTermEntryRel |
findByC_C_C(long classNameId,
long classPK,
long commerceTermEntryId)
Returns the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? or throws a
NoSuchTermEntryRelException if it could not be found. |
static CommerceTermEntryRel |
findByC_C_First(long classNameId,
long commerceTermEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
Returns the first commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.
|
static CommerceTermEntryRel |
findByC_C_Last(long classNameId,
long commerceTermEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
Returns the last commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.
|
static CommerceTermEntryRel[] |
findByC_C_PrevAndNext(long commerceTermEntryRelId,
long classNameId,
long commerceTermEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
Returns the commerce term entry rels before and after the current commerce term entry rel in the ordered set where classNameId = ? and commerceTermEntryId = ?.
|
static java.util.List<CommerceTermEntryRel> |
findByC_C(long classNameId,
long commerceTermEntryId)
Returns all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.
|
static java.util.List<CommerceTermEntryRel> |
findByC_C(long classNameId,
long commerceTermEntryId,
int start,
int end)
Returns a range of all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.
|
static java.util.List<CommerceTermEntryRel> |
findByC_C(long classNameId,
long commerceTermEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
Returns an ordered range of all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.
|
static java.util.List<CommerceTermEntryRel> |
findByC_C(long classNameId,
long commerceTermEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ?.
|
static CommerceTermEntryRel |
findByCommerceTermEntryId_First(long commerceTermEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
Returns the first commerce term entry rel in the ordered set where commerceTermEntryId = ?.
|
static CommerceTermEntryRel |
findByCommerceTermEntryId_Last(long commerceTermEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
Returns the last commerce term entry rel in the ordered set where commerceTermEntryId = ?.
|
static CommerceTermEntryRel[] |
findByCommerceTermEntryId_PrevAndNext(long commerceTermEntryRelId,
long commerceTermEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
Returns the commerce term entry rels before and after the current commerce term entry rel in the ordered set where commerceTermEntryId = ?.
|
static java.util.List<CommerceTermEntryRel> |
findByCommerceTermEntryId(long commerceTermEntryId)
Returns all the commerce term entry rels where commerceTermEntryId = ?.
|
static java.util.List<CommerceTermEntryRel> |
findByCommerceTermEntryId(long commerceTermEntryId,
int start,
int end)
Returns a range of all the commerce term entry rels where commerceTermEntryId = ?.
|
static java.util.List<CommerceTermEntryRel> |
findByCommerceTermEntryId(long commerceTermEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
Returns an ordered range of all the commerce term entry rels where commerceTermEntryId = ?.
|
static java.util.List<CommerceTermEntryRel> |
findByCommerceTermEntryId(long commerceTermEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce term entry rels where commerceTermEntryId = ?.
|
static CommerceTermEntryRel |
findByPrimaryKey(long commerceTermEntryRelId)
Returns the commerce term entry rel with the primary key or throws a
NoSuchTermEntryRelException if it could not be found. |
static java.util.List<CommerceTermEntryRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceTermEntryRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceTermEntryRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) |
static CommerceTermEntryRelPersistence |
getPersistence() |
static CommerceTermEntryRel |
remove(long commerceTermEntryRelId)
Removes the commerce term entry rel with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce term entry rels from the database.
|
static CommerceTermEntryRel |
removeByC_C_C(long classNameId,
long classPK,
long commerceTermEntryId)
Removes the commerce term entry rel where classNameId = ? and classPK = ? and commerceTermEntryId = ? from the database.
|
static void |
removeByC_C(long classNameId,
long commerceTermEntryId)
Removes all the commerce term entry rels where classNameId = ? and commerceTermEntryId = ? from the database.
|
static void |
removeByCommerceTermEntryId(long commerceTermEntryId)
Removes all the commerce term entry rels where commerceTermEntryId = ? from the database.
|
static void |
setPersistence(CommerceTermEntryRelPersistence persistence) |
static CommerceTermEntryRel |
update(CommerceTermEntryRel commerceTermEntryRel) |
static CommerceTermEntryRel |
update(CommerceTermEntryRel commerceTermEntryRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceTermEntryRel |
updateImpl(CommerceTermEntryRel commerceTermEntryRel) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceTermEntryRel commerceTermEntryRel)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CommerceTermEntryRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceTermEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceTermEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceTermEntryRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceTermEntryRel update(CommerceTermEntryRel commerceTermEntryRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceTermEntryRel update(CommerceTermEntryRel commerceTermEntryRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceTermEntryRel> findByCommerceTermEntryId(long commerceTermEntryId)
commerceTermEntryId
- the commerce term entry IDpublic static java.util.List<CommerceTermEntryRel> findByCommerceTermEntryId(long commerceTermEntryId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTermEntryRelModelImpl
.
commerceTermEntryId
- the commerce term entry IDstart
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry rels (not inclusive)public static java.util.List<CommerceTermEntryRel> findByCommerceTermEntryId(long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTermEntryRelModelImpl
.
commerceTermEntryId
- the commerce term entry IDstart
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceTermEntryRel> findByCommerceTermEntryId(long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTermEntryRelModelImpl
.
commerceTermEntryId
- the commerce term entry IDstart
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceTermEntryRel findByCommerceTermEntryId_First(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException
commerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTermEntryRelException
- if a matching commerce term entry rel could not be foundpublic static CommerceTermEntryRel fetchByCommerceTermEntryId_First(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
commerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce term entry rel could not be foundpublic static CommerceTermEntryRel findByCommerceTermEntryId_Last(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException
commerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTermEntryRelException
- if a matching commerce term entry rel could not be foundpublic static CommerceTermEntryRel fetchByCommerceTermEntryId_Last(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
commerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce term entry rel could not be foundpublic static CommerceTermEntryRel[] findByCommerceTermEntryId_PrevAndNext(long commerceTermEntryRelId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException
commerceTermEntryRelId
- the primary key of the current commerce term entry relcommerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTermEntryRelException
- if a commerce term entry rel with the primary key could not be foundpublic static void removeByCommerceTermEntryId(long commerceTermEntryId)
commerceTermEntryId
- the commerce term entry IDpublic static int countByCommerceTermEntryId(long commerceTermEntryId)
commerceTermEntryId
- the commerce term entry IDpublic static java.util.List<CommerceTermEntryRel> findByC_C(long classNameId, long commerceTermEntryId)
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDpublic static java.util.List<CommerceTermEntryRel> findByC_C(long classNameId, long commerceTermEntryId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTermEntryRelModelImpl
.
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDstart
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry rels (not inclusive)public static java.util.List<CommerceTermEntryRel> findByC_C(long classNameId, long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTermEntryRelModelImpl
.
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDstart
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceTermEntryRel> findByC_C(long classNameId, long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTermEntryRelModelImpl
.
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDstart
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceTermEntryRel findByC_C_First(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTermEntryRelException
- if a matching commerce term entry rel could not be foundpublic static CommerceTermEntryRel fetchByC_C_First(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce term entry rel could not be foundpublic static CommerceTermEntryRel findByC_C_Last(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTermEntryRelException
- if a matching commerce term entry rel could not be foundpublic static CommerceTermEntryRel fetchByC_C_Last(long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce term entry rel could not be foundpublic static CommerceTermEntryRel[] findByC_C_PrevAndNext(long commerceTermEntryRelId, long classNameId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator) throws NoSuchTermEntryRelException
commerceTermEntryRelId
- the primary key of the current commerce term entry relclassNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTermEntryRelException
- if a commerce term entry rel with the primary key could not be foundpublic static void removeByC_C(long classNameId, long commerceTermEntryId)
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDpublic static int countByC_C(long classNameId, long commerceTermEntryId)
classNameId
- the class name IDcommerceTermEntryId
- the commerce term entry IDpublic static CommerceTermEntryRel findByC_C_C(long classNameId, long classPK, long commerceTermEntryId) throws NoSuchTermEntryRelException
NoSuchTermEntryRelException
if it could not be found.classNameId
- the class name IDclassPK
- the class pkcommerceTermEntryId
- the commerce term entry IDNoSuchTermEntryRelException
- if a matching commerce term entry rel could not be foundpublic static CommerceTermEntryRel fetchByC_C_C(long classNameId, long classPK, long commerceTermEntryId)
null
if it could not be found. Uses the finder cache.classNameId
- the class name IDclassPK
- the class pkcommerceTermEntryId
- the commerce term entry IDnull
if a matching commerce term entry rel could not be foundpublic static CommerceTermEntryRel fetchByC_C_C(long classNameId, long classPK, long commerceTermEntryId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.classNameId
- the class name IDclassPK
- the class pkcommerceTermEntryId
- the commerce term entry IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce term entry rel could not be foundpublic static CommerceTermEntryRel removeByC_C_C(long classNameId, long classPK, long commerceTermEntryId) throws NoSuchTermEntryRelException
classNameId
- the class name IDclassPK
- the class pkcommerceTermEntryId
- the commerce term entry IDNoSuchTermEntryRelException
public static int countByC_C_C(long classNameId, long classPK, long commerceTermEntryId)
classNameId
- the class name IDclassPK
- the class pkcommerceTermEntryId
- the commerce term entry IDpublic static void cacheResult(CommerceTermEntryRel commerceTermEntryRel)
commerceTermEntryRel
- the commerce term entry relpublic static void cacheResult(java.util.List<CommerceTermEntryRel> commerceTermEntryRels)
commerceTermEntryRels
- the commerce term entry relspublic static CommerceTermEntryRel create(long commerceTermEntryRelId)
commerceTermEntryRelId
- the primary key for the new commerce term entry relpublic static CommerceTermEntryRel remove(long commerceTermEntryRelId) throws NoSuchTermEntryRelException
commerceTermEntryRelId
- the primary key of the commerce term entry relNoSuchTermEntryRelException
- if a commerce term entry rel with the primary key could not be foundpublic static CommerceTermEntryRel updateImpl(CommerceTermEntryRel commerceTermEntryRel)
public static CommerceTermEntryRel findByPrimaryKey(long commerceTermEntryRelId) throws NoSuchTermEntryRelException
NoSuchTermEntryRelException
if it could not be found.commerceTermEntryRelId
- the primary key of the commerce term entry relNoSuchTermEntryRelException
- if a commerce term entry rel with the primary key could not be foundpublic static CommerceTermEntryRel fetchByPrimaryKey(long commerceTermEntryRelId)
null
if it could not be found.commerceTermEntryRelId
- the primary key of the commerce term entry relnull
if a commerce term entry rel with the primary key could not be foundpublic static java.util.List<CommerceTermEntryRel> findAll()
public static java.util.List<CommerceTermEntryRel> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTermEntryRelModelImpl
.
start
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry rels (not inclusive)public static java.util.List<CommerceTermEntryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTermEntryRelModelImpl
.
start
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceTermEntryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTermEntryRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceTermEntryRelModelImpl
.
start
- the lower bound of the range of commerce term entry relsend
- the upper bound of the range of commerce term entry rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceTermEntryRelPersistence getPersistence()
public static void setPersistence(CommerceTermEntryRelPersistence persistence)