public class CommerceOrderTypeRelUtil
extends java.lang.Object
com.liferay.commerce.service.persistence.impl.CommerceOrderTypeRelPersistenceImpl
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
CommerceOrderTypeRelPersistence
Constructor and Description |
---|
CommerceOrderTypeRelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceOrderTypeRel commerceOrderTypeRel)
Caches the commerce order type rel in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceOrderTypeRel> commerceOrderTypeRels)
Caches the commerce order type rels in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceOrderTypeRel commerceOrderTypeRel) |
static int |
countAll()
Returns the number of commerce order type rels.
|
static int |
countByC_C_C(long classNameId,
long classPK,
long commerceOrderTypeId)
Returns the number of commerce order type rels where classNameId = ? and classPK = ? and commerceOrderTypeId = ?.
|
static int |
countByC_C(long classNameId,
long commerceOrderTypeId)
Returns the number of commerce order type rels where classNameId = ? and commerceOrderTypeId = ?.
|
static int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce order type rels where companyId = ? and externalReferenceCode = ?.
|
static int |
countByCommerceOrderTypeId(long commerceOrderTypeId)
Returns the number of commerce order type rels where commerceOrderTypeId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceOrderTypeRel |
create(long commerceOrderTypeRelId)
Creates a new commerce order type rel with the primary key.
|
static CommerceOrderTypeRel |
fetchByC_C_C(long classNameId,
long classPK,
long commerceOrderTypeId)
Returns the commerce order type rel where classNameId = ? and classPK = ? and commerceOrderTypeId = ? or returns
null if it could not be found. |
static CommerceOrderTypeRel |
fetchByC_C_C(long classNameId,
long classPK,
long commerceOrderTypeId,
boolean useFinderCache)
Returns the commerce order type rel where classNameId = ? and classPK = ? and commerceOrderTypeId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceOrderTypeRel |
fetchByC_C_First(long classNameId,
long commerceOrderTypeId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the first commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.
|
static CommerceOrderTypeRel |
fetchByC_C_Last(long classNameId,
long commerceOrderTypeId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the last commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.
|
static CommerceOrderTypeRel |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce order type rel where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static CommerceOrderTypeRel |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the commerce order type rel where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceOrderTypeRel |
fetchByCommerceOrderTypeId_First(long commerceOrderTypeId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the first commerce order type rel in the ordered set where commerceOrderTypeId = ?.
|
static CommerceOrderTypeRel |
fetchByCommerceOrderTypeId_Last(long commerceOrderTypeId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the last commerce order type rel in the ordered set where commerceOrderTypeId = ?.
|
static CommerceOrderTypeRel |
fetchByPrimaryKey(long commerceOrderTypeRelId)
Returns the commerce order type rel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceOrderTypeRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceOrderTypeRel> |
findAll()
Returns all the commerce order type rels.
|
static java.util.List<CommerceOrderTypeRel> |
findAll(int start,
int end)
Returns a range of all the commerce order type rels.
|
static java.util.List<CommerceOrderTypeRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns an ordered range of all the commerce order type rels.
|
static java.util.List<CommerceOrderTypeRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order type rels.
|
static CommerceOrderTypeRel |
findByC_C_C(long classNameId,
long classPK,
long commerceOrderTypeId)
Returns the commerce order type rel where classNameId = ? and classPK = ? and commerceOrderTypeId = ? or throws a
NoSuchOrderTypeRelException if it could not be found. |
static CommerceOrderTypeRel |
findByC_C_First(long classNameId,
long commerceOrderTypeId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the first commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.
|
static CommerceOrderTypeRel |
findByC_C_Last(long classNameId,
long commerceOrderTypeId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the last commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.
|
static CommerceOrderTypeRel[] |
findByC_C_PrevAndNext(long commerceOrderTypeRelId,
long classNameId,
long commerceOrderTypeId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the commerce order type rels before and after the current commerce order type rel in the ordered set where classNameId = ? and commerceOrderTypeId = ?.
|
static java.util.List<CommerceOrderTypeRel> |
findByC_C(long classNameId,
long commerceOrderTypeId)
Returns all the commerce order type rels where classNameId = ? and commerceOrderTypeId = ?.
|
static java.util.List<CommerceOrderTypeRel> |
findByC_C(long classNameId,
long commerceOrderTypeId,
int start,
int end)
Returns a range of all the commerce order type rels where classNameId = ? and commerceOrderTypeId = ?.
|
static java.util.List<CommerceOrderTypeRel> |
findByC_C(long classNameId,
long commerceOrderTypeId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns an ordered range of all the commerce order type rels where classNameId = ? and commerceOrderTypeId = ?.
|
static java.util.List<CommerceOrderTypeRel> |
findByC_C(long classNameId,
long commerceOrderTypeId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order type rels where classNameId = ? and commerceOrderTypeId = ?.
|
static CommerceOrderTypeRel |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce order type rel where companyId = ? and externalReferenceCode = ? or throws a
NoSuchOrderTypeRelException if it could not be found. |
static CommerceOrderTypeRel |
findByCommerceOrderTypeId_First(long commerceOrderTypeId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the first commerce order type rel in the ordered set where commerceOrderTypeId = ?.
|
static CommerceOrderTypeRel |
findByCommerceOrderTypeId_Last(long commerceOrderTypeId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the last commerce order type rel in the ordered set where commerceOrderTypeId = ?.
|
static CommerceOrderTypeRel[] |
findByCommerceOrderTypeId_PrevAndNext(long commerceOrderTypeRelId,
long commerceOrderTypeId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the commerce order type rels before and after the current commerce order type rel in the ordered set where commerceOrderTypeId = ?.
|
static java.util.List<CommerceOrderTypeRel> |
findByCommerceOrderTypeId(long commerceOrderTypeId)
Returns all the commerce order type rels where commerceOrderTypeId = ?.
|
static java.util.List<CommerceOrderTypeRel> |
findByCommerceOrderTypeId(long commerceOrderTypeId,
int start,
int end)
Returns a range of all the commerce order type rels where commerceOrderTypeId = ?.
|
static java.util.List<CommerceOrderTypeRel> |
findByCommerceOrderTypeId(long commerceOrderTypeId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns an ordered range of all the commerce order type rels where commerceOrderTypeId = ?.
|
static java.util.List<CommerceOrderTypeRel> |
findByCommerceOrderTypeId(long commerceOrderTypeId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order type rels where commerceOrderTypeId = ?.
|
static CommerceOrderTypeRel |
findByPrimaryKey(long commerceOrderTypeRelId)
Returns the commerce order type rel with the primary key or throws a
NoSuchOrderTypeRelException if it could not be found. |
static java.util.List<CommerceOrderTypeRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceOrderTypeRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceOrderTypeRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) |
static CommerceOrderTypeRelPersistence |
getPersistence() |
static CommerceOrderTypeRel |
remove(long commerceOrderTypeRelId)
Removes the commerce order type rel with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce order type rels from the database.
|
static CommerceOrderTypeRel |
removeByC_C_C(long classNameId,
long classPK,
long commerceOrderTypeId)
Removes the commerce order type rel where classNameId = ? and classPK = ? and commerceOrderTypeId = ? from the database.
|
static void |
removeByC_C(long classNameId,
long commerceOrderTypeId)
Removes all the commerce order type rels where classNameId = ? and commerceOrderTypeId = ? from the database.
|
static CommerceOrderTypeRel |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce order type rel where companyId = ? and externalReferenceCode = ? from the database.
|
static void |
removeByCommerceOrderTypeId(long commerceOrderTypeId)
Removes all the commerce order type rels where commerceOrderTypeId = ? from the database.
|
static CommerceOrderTypeRel |
update(CommerceOrderTypeRel commerceOrderTypeRel) |
static CommerceOrderTypeRel |
update(CommerceOrderTypeRel commerceOrderTypeRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceOrderTypeRel |
updateImpl(CommerceOrderTypeRel commerceOrderTypeRel) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceOrderTypeRel commerceOrderTypeRel)
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,CommerceOrderTypeRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceOrderTypeRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceOrderTypeRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceOrderTypeRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceOrderTypeRel update(CommerceOrderTypeRel commerceOrderTypeRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceOrderTypeRel update(CommerceOrderTypeRel commerceOrderTypeRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId)
commerceOrderTypeId
- the commerce order type IDpublic static java.util.List<CommerceOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, 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 CommerceOrderTypeRelModelImpl
.
commerceOrderTypeId
- the commerce order type IDstart
- the lower bound of the range of commerce order type relsend
- the upper bound of the range of commerce order type rels (not inclusive)public static java.util.List<CommerceOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> 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 CommerceOrderTypeRelModelImpl
.
commerceOrderTypeId
- the commerce order type IDstart
- the lower bound of the range of commerce order type relsend
- the upper bound of the range of commerce order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> 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 CommerceOrderTypeRelModelImpl
.
commerceOrderTypeId
- the commerce order type IDstart
- the lower bound of the range of commerce order type relsend
- the upper bound of the range of commerce order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceOrderTypeRel findByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
commerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeRelException
- if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel fetchByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
commerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel findByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
commerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeRelException
- if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel fetchByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
commerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel[] findByCommerceOrderTypeId_PrevAndNext(long commerceOrderTypeRelId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
commerceOrderTypeRelId
- the primary key of the current commerce order type relcommerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeRelException
- if a commerce order type rel with the primary key could not be foundpublic static void removeByCommerceOrderTypeId(long commerceOrderTypeId)
commerceOrderTypeId
- the commerce order type IDpublic static int countByCommerceOrderTypeId(long commerceOrderTypeId)
commerceOrderTypeId
- the commerce order type IDpublic static java.util.List<CommerceOrderTypeRel> findByC_C(long classNameId, long commerceOrderTypeId)
classNameId
- the class name IDcommerceOrderTypeId
- the commerce order type IDpublic static java.util.List<CommerceOrderTypeRel> findByC_C(long classNameId, long commerceOrderTypeId, 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 CommerceOrderTypeRelModelImpl
.
classNameId
- the class name IDcommerceOrderTypeId
- the commerce order type IDstart
- the lower bound of the range of commerce order type relsend
- the upper bound of the range of commerce order type rels (not inclusive)public static java.util.List<CommerceOrderTypeRel> findByC_C(long classNameId, long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> 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 CommerceOrderTypeRelModelImpl
.
classNameId
- the class name IDcommerceOrderTypeId
- the commerce order type IDstart
- the lower bound of the range of commerce order type relsend
- the upper bound of the range of commerce order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrderTypeRel> findByC_C(long classNameId, long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> 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 CommerceOrderTypeRelModelImpl
.
classNameId
- the class name IDcommerceOrderTypeId
- the commerce order type IDstart
- the lower bound of the range of commerce order type relsend
- the upper bound of the range of commerce order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceOrderTypeRel findByC_C_First(long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
classNameId
- the class name IDcommerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeRelException
- if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel fetchByC_C_First(long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
classNameId
- the class name IDcommerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel findByC_C_Last(long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
classNameId
- the class name IDcommerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeRelException
- if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel fetchByC_C_Last(long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
classNameId
- the class name IDcommerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel[] findByC_C_PrevAndNext(long commerceOrderTypeRelId, long classNameId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
commerceOrderTypeRelId
- the primary key of the current commerce order type relclassNameId
- the class name IDcommerceOrderTypeId
- the commerce order type IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeRelException
- if a commerce order type rel with the primary key could not be foundpublic static void removeByC_C(long classNameId, long commerceOrderTypeId)
classNameId
- the class name IDcommerceOrderTypeId
- the commerce order type IDpublic static int countByC_C(long classNameId, long commerceOrderTypeId)
classNameId
- the class name IDcommerceOrderTypeId
- the commerce order type IDpublic static CommerceOrderTypeRel findByC_C_C(long classNameId, long classPK, long commerceOrderTypeId) throws NoSuchOrderTypeRelException
NoSuchOrderTypeRelException
if it could not be found.classNameId
- the class name IDclassPK
- the class pkcommerceOrderTypeId
- the commerce order type IDNoSuchOrderTypeRelException
- if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel fetchByC_C_C(long classNameId, long classPK, long commerceOrderTypeId)
null
if it could not be found. Uses the finder cache.classNameId
- the class name IDclassPK
- the class pkcommerceOrderTypeId
- the commerce order type IDnull
if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel fetchByC_C_C(long classNameId, long classPK, long commerceOrderTypeId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.classNameId
- the class name IDclassPK
- the class pkcommerceOrderTypeId
- the commerce order type IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel removeByC_C_C(long classNameId, long classPK, long commerceOrderTypeId) throws NoSuchOrderTypeRelException
classNameId
- the class name IDclassPK
- the class pkcommerceOrderTypeId
- the commerce order type IDNoSuchOrderTypeRelException
public static int countByC_C_C(long classNameId, long classPK, long commerceOrderTypeId)
classNameId
- the class name IDclassPK
- the class pkcommerceOrderTypeId
- the commerce order type IDpublic static CommerceOrderTypeRel findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchOrderTypeRelException
NoSuchOrderTypeRelException
if it could not be found.companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchOrderTypeRelException
- if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel fetchByC_ERC(long companyId, java.lang.String externalReferenceCode)
null
if it could not be found. Uses the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codenull
if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel fetchByC_ERC(long companyId, java.lang.String externalReferenceCode, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codeuseFinderCache
- whether to use the finder cachenull
if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchOrderTypeRelException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchOrderTypeRelException
public static int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codepublic static void cacheResult(CommerceOrderTypeRel commerceOrderTypeRel)
commerceOrderTypeRel
- the commerce order type relpublic static void cacheResult(java.util.List<CommerceOrderTypeRel> commerceOrderTypeRels)
commerceOrderTypeRels
- the commerce order type relspublic static CommerceOrderTypeRel create(long commerceOrderTypeRelId)
commerceOrderTypeRelId
- the primary key for the new commerce order type relpublic static CommerceOrderTypeRel remove(long commerceOrderTypeRelId) throws NoSuchOrderTypeRelException
commerceOrderTypeRelId
- the primary key of the commerce order type relNoSuchOrderTypeRelException
- if a commerce order type rel with the primary key could not be foundpublic static CommerceOrderTypeRel updateImpl(CommerceOrderTypeRel commerceOrderTypeRel)
public static CommerceOrderTypeRel findByPrimaryKey(long commerceOrderTypeRelId) throws NoSuchOrderTypeRelException
NoSuchOrderTypeRelException
if it could not be found.commerceOrderTypeRelId
- the primary key of the commerce order type relNoSuchOrderTypeRelException
- if a commerce order type rel with the primary key could not be foundpublic static CommerceOrderTypeRel fetchByPrimaryKey(long commerceOrderTypeRelId)
null
if it could not be found.commerceOrderTypeRelId
- the primary key of the commerce order type relnull
if a commerce order type rel with the primary key could not be foundpublic static java.util.List<CommerceOrderTypeRel> findAll()
public static java.util.List<CommerceOrderTypeRel> 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 CommerceOrderTypeRelModelImpl
.
start
- the lower bound of the range of commerce order type relsend
- the upper bound of the range of commerce order type rels (not inclusive)public static java.util.List<CommerceOrderTypeRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> 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 CommerceOrderTypeRelModelImpl
.
start
- the lower bound of the range of commerce order type relsend
- the upper bound of the range of commerce order type rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrderTypeRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> 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 CommerceOrderTypeRelModelImpl
.
start
- the lower bound of the range of commerce order type relsend
- the upper bound of the range of commerce order type 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 CommerceOrderTypeRelPersistence getPersistence()