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 |
countByCommerceOrderTypeId(long commerceOrderTypeId)
Returns the number of commerce order type rels where commerceOrderTypeId = ?.
|
static int |
countByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the number of commerce order type rels where externalReferenceCode = ? and companyId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce order type rels where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce order type rels where uuid = ?.
|
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 |
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 |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the commerce order type rel where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found. |
static CommerceOrderTypeRel |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId,
boolean useFinderCache)
Returns the commerce order type rel where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found, optionally using the finder cache. |
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 CommerceOrderTypeRel |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the first commerce order type rel in the ordered set where uuid = ? and companyId = ?.
|
static CommerceOrderTypeRel |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the last commerce order type rel in the ordered set where uuid = ? and companyId = ?.
|
static CommerceOrderTypeRel |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the first commerce order type rel in the ordered set where uuid = ?.
|
static CommerceOrderTypeRel |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the last commerce order type rel in the ordered set where uuid = ?.
|
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 |
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 |
findByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the commerce order type rel where externalReferenceCode = ? and companyId = ? or throws a
NoSuchOrderTypeRelException if it could not be found. |
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 CommerceOrderTypeRel |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the first commerce order type rel in the ordered set where uuid = ? and companyId = ?.
|
static CommerceOrderTypeRel |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the last commerce order type rel in the ordered set where uuid = ? and companyId = ?.
|
static CommerceOrderTypeRel[] |
findByUuid_C_PrevAndNext(long commerceOrderTypeRelId,
java.lang.String uuid,
long companyId,
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 uuid = ? and companyId = ?.
|
static java.util.List<CommerceOrderTypeRel> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce order type rels where uuid = ? and companyId = ?.
|
static java.util.List<CommerceOrderTypeRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce order type rels where uuid = ? and companyId = ?.
|
static java.util.List<CommerceOrderTypeRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns an ordered range of all the commerce order type rels where uuid = ? and companyId = ?.
|
static java.util.List<CommerceOrderTypeRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
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 uuid = ? and companyId = ?.
|
static CommerceOrderTypeRel |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the first commerce order type rel in the ordered set where uuid = ?.
|
static CommerceOrderTypeRel |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns the last commerce order type rel in the ordered set where uuid = ?.
|
static CommerceOrderTypeRel[] |
findByUuid_PrevAndNext(long commerceOrderTypeRelId,
java.lang.String uuid,
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 uuid = ?.
|
static java.util.List<CommerceOrderTypeRel> |
findByUuid(java.lang.String uuid)
Returns all the commerce order type rels where uuid = ?.
|
static java.util.List<CommerceOrderTypeRel> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce order type rels where uuid = ?.
|
static java.util.List<CommerceOrderTypeRel> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
Returns an ordered range of all the commerce order type rels where uuid = ?.
|
static java.util.List<CommerceOrderTypeRel> |
findByUuid(java.lang.String uuid,
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 uuid = ?.
|
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 void |
removeByCommerceOrderTypeId(long commerceOrderTypeId)
Removes all the commerce order type rels where commerceOrderTypeId = ? from the database.
|
static CommerceOrderTypeRel |
removeByERC_C(java.lang.String externalReferenceCode,
long companyId)
Removes the commerce order type rel where externalReferenceCode = ? and companyId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce order type rels where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce order type rels where uuid = ? from the database.
|
static void |
setPersistence(CommerceOrderTypeRelPersistence persistence) |
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> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceOrderTypeRel> findByUuid(java.lang.String uuid, 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
.
uuid
- the uuidstart
- 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> findByUuid(java.lang.String uuid, 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
.
uuid
- the uuidstart
- 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> findByUuid(java.lang.String uuid, 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
.
uuid
- the uuidstart
- 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 findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeRelException
- if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeRelException
- if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel[] findByUuid_PrevAndNext(long commerceOrderTypeRelId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
commerceOrderTypeRelId
- the primary key of the current commerce order type reluuid
- the uuidorderByComparator
- 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 removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceOrderTypeRel> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceOrderTypeRel> findByUuid_C(java.lang.String uuid, long companyId, 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
.
uuid
- the uuidcompanyId
- the company 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> findByUuid_C(java.lang.String uuid, long companyId, 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
.
uuid
- the uuidcompanyId
- the company 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> findByUuid_C(java.lang.String uuid, long companyId, 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
.
uuid
- the uuidcompanyId
- the company 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 findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeRelException
- if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeRelException
- if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel[] findByUuid_C_PrevAndNext(long commerceOrderTypeRelId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderTypeRel> orderByComparator) throws NoSuchOrderTypeRelException
commerceOrderTypeRelId
- the primary key of the current commerce order type reluuid
- the uuidcompanyId
- the company 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 removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic 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 findByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchOrderTypeRelException
NoSuchOrderTypeRelException
if it could not be found.externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchOrderTypeRelException
- if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel fetchByERC_C(java.lang.String externalReferenceCode, long companyId)
null
if it could not be found. Uses the finder cache.externalReferenceCode
- the external reference codecompanyId
- the company IDnull
if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel fetchByERC_C(java.lang.String externalReferenceCode, long companyId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce order type rel could not be foundpublic static CommerceOrderTypeRel removeByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchOrderTypeRelException
externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchOrderTypeRelException
public static int countByERC_C(java.lang.String externalReferenceCode, long companyId)
externalReferenceCode
- the external reference codecompanyId
- the company IDpublic 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()
public static void setPersistence(CommerceOrderTypeRelPersistence persistence)