public class CommerceOrderNoteUtil
extends java.lang.Object
com.liferay.commerce.service.persistence.impl.CommerceOrderNotePersistenceImpl
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
CommerceOrderNotePersistence
Constructor and Description |
---|
CommerceOrderNoteUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceOrderNote commerceOrderNote)
Caches the commerce order note in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceOrderNote> commerceOrderNotes)
Caches the commerce order notes in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceOrderNote commerceOrderNote) |
static int |
countAll()
Returns the number of commerce order notes.
|
static int |
countByC_R(long commerceOrderId,
boolean restricted)
Returns the number of commerce order notes where commerceOrderId = ? and restricted = ?.
|
static int |
countByCommerceOrderId(long commerceOrderId)
Returns the number of commerce order notes where commerceOrderId = ?.
|
static int |
countByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the number of commerce order notes where externalReferenceCode = ? and companyId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce order notes where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of commerce order notes where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce order notes where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceOrderNote |
create(long commerceOrderNoteId)
Creates a new commerce order note with the primary key.
|
static CommerceOrderNote |
fetchByC_R_First(long commerceOrderId,
boolean restricted,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the first commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.
|
static CommerceOrderNote |
fetchByC_R_Last(long commerceOrderId,
boolean restricted,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the last commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.
|
static CommerceOrderNote |
fetchByCommerceOrderId_First(long commerceOrderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the first commerce order note in the ordered set where commerceOrderId = ?.
|
static CommerceOrderNote |
fetchByCommerceOrderId_Last(long commerceOrderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the last commerce order note in the ordered set where commerceOrderId = ?.
|
static CommerceOrderNote |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the commerce order note where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found. |
static CommerceOrderNote |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId,
boolean useFinderCache)
Returns the commerce order note where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceOrderNote |
fetchByPrimaryKey(long commerceOrderNoteId)
Returns the commerce order note with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceOrderNote> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommerceOrderNote |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the first commerce order note in the ordered set where uuid = ? and companyId = ?.
|
static CommerceOrderNote |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the last commerce order note in the ordered set where uuid = ? and companyId = ?.
|
static CommerceOrderNote |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the first commerce order note in the ordered set where uuid = ?.
|
static CommerceOrderNote |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the commerce order note where uuid = ? and groupId = ? or returns
null if it could not be found. |
static CommerceOrderNote |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the commerce order note where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceOrderNote |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the last commerce order note in the ordered set where uuid = ?.
|
static java.util.List<CommerceOrderNote> |
findAll()
Returns all the commerce order notes.
|
static java.util.List<CommerceOrderNote> |
findAll(int start,
int end)
Returns a range of all the commerce order notes.
|
static java.util.List<CommerceOrderNote> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns an ordered range of all the commerce order notes.
|
static java.util.List<CommerceOrderNote> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order notes.
|
static CommerceOrderNote |
findByC_R_First(long commerceOrderId,
boolean restricted,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the first commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.
|
static CommerceOrderNote |
findByC_R_Last(long commerceOrderId,
boolean restricted,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the last commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.
|
static CommerceOrderNote[] |
findByC_R_PrevAndNext(long commerceOrderNoteId,
long commerceOrderId,
boolean restricted,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the commerce order notes before and after the current commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.
|
static java.util.List<CommerceOrderNote> |
findByC_R(long commerceOrderId,
boolean restricted)
Returns all the commerce order notes where commerceOrderId = ? and restricted = ?.
|
static java.util.List<CommerceOrderNote> |
findByC_R(long commerceOrderId,
boolean restricted,
int start,
int end)
Returns a range of all the commerce order notes where commerceOrderId = ? and restricted = ?.
|
static java.util.List<CommerceOrderNote> |
findByC_R(long commerceOrderId,
boolean restricted,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns an ordered range of all the commerce order notes where commerceOrderId = ? and restricted = ?.
|
static java.util.List<CommerceOrderNote> |
findByC_R(long commerceOrderId,
boolean restricted,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order notes where commerceOrderId = ? and restricted = ?.
|
static CommerceOrderNote |
findByCommerceOrderId_First(long commerceOrderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the first commerce order note in the ordered set where commerceOrderId = ?.
|
static CommerceOrderNote |
findByCommerceOrderId_Last(long commerceOrderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the last commerce order note in the ordered set where commerceOrderId = ?.
|
static CommerceOrderNote[] |
findByCommerceOrderId_PrevAndNext(long commerceOrderNoteId,
long commerceOrderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the commerce order notes before and after the current commerce order note in the ordered set where commerceOrderId = ?.
|
static java.util.List<CommerceOrderNote> |
findByCommerceOrderId(long commerceOrderId)
Returns all the commerce order notes where commerceOrderId = ?.
|
static java.util.List<CommerceOrderNote> |
findByCommerceOrderId(long commerceOrderId,
int start,
int end)
Returns a range of all the commerce order notes where commerceOrderId = ?.
|
static java.util.List<CommerceOrderNote> |
findByCommerceOrderId(long commerceOrderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns an ordered range of all the commerce order notes where commerceOrderId = ?.
|
static java.util.List<CommerceOrderNote> |
findByCommerceOrderId(long commerceOrderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order notes where commerceOrderId = ?.
|
static CommerceOrderNote |
findByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the commerce order note where externalReferenceCode = ? and companyId = ? or throws a
NoSuchOrderNoteException if it could not be found. |
static CommerceOrderNote |
findByPrimaryKey(long commerceOrderNoteId)
Returns the commerce order note with the primary key or throws a
NoSuchOrderNoteException if it could not be found. |
static CommerceOrderNote |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the first commerce order note in the ordered set where uuid = ? and companyId = ?.
|
static CommerceOrderNote |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the last commerce order note in the ordered set where uuid = ? and companyId = ?.
|
static CommerceOrderNote[] |
findByUuid_C_PrevAndNext(long commerceOrderNoteId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the commerce order notes before and after the current commerce order note in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CommerceOrderNote> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce order notes where uuid = ? and companyId = ?.
|
static java.util.List<CommerceOrderNote> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce order notes where uuid = ? and companyId = ?.
|
static java.util.List<CommerceOrderNote> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns an ordered range of all the commerce order notes where uuid = ? and companyId = ?.
|
static java.util.List<CommerceOrderNote> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order notes where uuid = ? and companyId = ?.
|
static CommerceOrderNote |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the first commerce order note in the ordered set where uuid = ?.
|
static CommerceOrderNote |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the commerce order note where uuid = ? and groupId = ? or throws a
NoSuchOrderNoteException if it could not be found. |
static CommerceOrderNote |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the last commerce order note in the ordered set where uuid = ?.
|
static CommerceOrderNote[] |
findByUuid_PrevAndNext(long commerceOrderNoteId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns the commerce order notes before and after the current commerce order note in the ordered set where uuid = ?.
|
static java.util.List<CommerceOrderNote> |
findByUuid(java.lang.String uuid)
Returns all the commerce order notes where uuid = ?.
|
static java.util.List<CommerceOrderNote> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce order notes where uuid = ?.
|
static java.util.List<CommerceOrderNote> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
Returns an ordered range of all the commerce order notes where uuid = ?.
|
static java.util.List<CommerceOrderNote> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order notes where uuid = ?.
|
static java.util.List<CommerceOrderNote> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceOrderNote> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceOrderNote> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) |
static CommerceOrderNotePersistence |
getPersistence() |
static CommerceOrderNote |
remove(long commerceOrderNoteId)
Removes the commerce order note with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce order notes from the database.
|
static void |
removeByC_R(long commerceOrderId,
boolean restricted)
Removes all the commerce order notes where commerceOrderId = ? and restricted = ? from the database.
|
static void |
removeByCommerceOrderId(long commerceOrderId)
Removes all the commerce order notes where commerceOrderId = ? from the database.
|
static CommerceOrderNote |
removeByERC_C(java.lang.String externalReferenceCode,
long companyId)
Removes the commerce order note where externalReferenceCode = ? and companyId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce order notes where uuid = ? and companyId = ? from the database.
|
static CommerceOrderNote |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the commerce order note where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce order notes where uuid = ? from the database.
|
static void |
setPersistence(CommerceOrderNotePersistence persistence) |
static CommerceOrderNote |
update(CommerceOrderNote commerceOrderNote) |
static CommerceOrderNote |
update(CommerceOrderNote commerceOrderNote,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceOrderNote |
updateImpl(CommerceOrderNote commerceOrderNote) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceOrderNote commerceOrderNote)
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,CommerceOrderNote> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceOrderNote> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceOrderNote> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceOrderNote> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceOrderNote update(CommerceOrderNote commerceOrderNote)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceOrderNote update(CommerceOrderNote commerceOrderNote, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceOrderNote> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceOrderNote> 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 CommerceOrderNoteModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce order notesend
- the upper bound of the range of commerce order notes (not inclusive)public static java.util.List<CommerceOrderNote> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> 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 CommerceOrderNoteModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce order notesend
- the upper bound of the range of commerce order notes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrderNote> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> 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 CommerceOrderNoteModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce order notesend
- the upper bound of the range of commerce order notes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceOrderNote findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderNoteException
- if a matching commerce order note could not be foundpublic static CommerceOrderNote fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order note could not be foundpublic static CommerceOrderNote findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderNoteException
- if a matching commerce order note could not be foundpublic static CommerceOrderNote fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order note could not be foundpublic static CommerceOrderNote[] findByUuid_PrevAndNext(long commerceOrderNoteId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
commerceOrderNoteId
- the primary key of the current commerce order noteuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderNoteException
- if a commerce order note 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 CommerceOrderNote findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchOrderNoteException
NoSuchOrderNoteException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchOrderNoteException
- if a matching commerce order note could not be foundpublic static CommerceOrderNote fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching commerce order note could not be foundpublic static CommerceOrderNote fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce order note could not be foundpublic static CommerceOrderNote removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchOrderNoteException
uuid
- the uuidgroupId
- the group IDNoSuchOrderNoteException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<CommerceOrderNote> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceOrderNote> 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 CommerceOrderNoteModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce order notesend
- the upper bound of the range of commerce order notes (not inclusive)public static java.util.List<CommerceOrderNote> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> 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 CommerceOrderNoteModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce order notesend
- the upper bound of the range of commerce order notes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrderNote> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> 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 CommerceOrderNoteModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce order notesend
- the upper bound of the range of commerce order notes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceOrderNote findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderNoteException
- if a matching commerce order note could not be foundpublic static CommerceOrderNote fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order note could not be foundpublic static CommerceOrderNote findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderNoteException
- if a matching commerce order note could not be foundpublic static CommerceOrderNote fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order note could not be foundpublic static CommerceOrderNote[] findByUuid_C_PrevAndNext(long commerceOrderNoteId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
commerceOrderNoteId
- the primary key of the current commerce order noteuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderNoteException
- if a commerce order note 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<CommerceOrderNote> findByCommerceOrderId(long commerceOrderId)
commerceOrderId
- the commerce order IDpublic static java.util.List<CommerceOrderNote> findByCommerceOrderId(long commerceOrderId, 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 CommerceOrderNoteModelImpl
.
commerceOrderId
- the commerce order IDstart
- the lower bound of the range of commerce order notesend
- the upper bound of the range of commerce order notes (not inclusive)public static java.util.List<CommerceOrderNote> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> 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 CommerceOrderNoteModelImpl
.
commerceOrderId
- the commerce order IDstart
- the lower bound of the range of commerce order notesend
- the upper bound of the range of commerce order notes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrderNote> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> 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 CommerceOrderNoteModelImpl
.
commerceOrderId
- the commerce order IDstart
- the lower bound of the range of commerce order notesend
- the upper bound of the range of commerce order notes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceOrderNote findByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderNoteException
- if a matching commerce order note could not be foundpublic static CommerceOrderNote fetchByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order note could not be foundpublic static CommerceOrderNote findByCommerceOrderId_Last(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderNoteException
- if a matching commerce order note could not be foundpublic static CommerceOrderNote fetchByCommerceOrderId_Last(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order note could not be foundpublic static CommerceOrderNote[] findByCommerceOrderId_PrevAndNext(long commerceOrderNoteId, long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
commerceOrderNoteId
- the primary key of the current commerce order notecommerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderNoteException
- if a commerce order note with the primary key could not be foundpublic static void removeByCommerceOrderId(long commerceOrderId)
commerceOrderId
- the commerce order IDpublic static int countByCommerceOrderId(long commerceOrderId)
commerceOrderId
- the commerce order IDpublic static java.util.List<CommerceOrderNote> findByC_R(long commerceOrderId, boolean restricted)
commerceOrderId
- the commerce order IDrestricted
- the restrictedpublic static java.util.List<CommerceOrderNote> findByC_R(long commerceOrderId, boolean restricted, 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 CommerceOrderNoteModelImpl
.
commerceOrderId
- the commerce order IDrestricted
- the restrictedstart
- the lower bound of the range of commerce order notesend
- the upper bound of the range of commerce order notes (not inclusive)public static java.util.List<CommerceOrderNote> findByC_R(long commerceOrderId, boolean restricted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> 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 CommerceOrderNoteModelImpl
.
commerceOrderId
- the commerce order IDrestricted
- the restrictedstart
- the lower bound of the range of commerce order notesend
- the upper bound of the range of commerce order notes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrderNote> findByC_R(long commerceOrderId, boolean restricted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> 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 CommerceOrderNoteModelImpl
.
commerceOrderId
- the commerce order IDrestricted
- the restrictedstart
- the lower bound of the range of commerce order notesend
- the upper bound of the range of commerce order notes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceOrderNote findByC_R_First(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
commerceOrderId
- the commerce order IDrestricted
- the restrictedorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderNoteException
- if a matching commerce order note could not be foundpublic static CommerceOrderNote fetchByC_R_First(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
commerceOrderId
- the commerce order IDrestricted
- the restrictedorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order note could not be foundpublic static CommerceOrderNote findByC_R_Last(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
commerceOrderId
- the commerce order IDrestricted
- the restrictedorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderNoteException
- if a matching commerce order note could not be foundpublic static CommerceOrderNote fetchByC_R_Last(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator)
commerceOrderId
- the commerce order IDrestricted
- the restrictedorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order note could not be foundpublic static CommerceOrderNote[] findByC_R_PrevAndNext(long commerceOrderNoteId, long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException
commerceOrderNoteId
- the primary key of the current commerce order notecommerceOrderId
- the commerce order IDrestricted
- the restrictedorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderNoteException
- if a commerce order note with the primary key could not be foundpublic static void removeByC_R(long commerceOrderId, boolean restricted)
commerceOrderId
- the commerce order IDrestricted
- the restrictedpublic static int countByC_R(long commerceOrderId, boolean restricted)
commerceOrderId
- the commerce order IDrestricted
- the restrictedpublic static CommerceOrderNote findByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchOrderNoteException
NoSuchOrderNoteException
if it could not be found.externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchOrderNoteException
- if a matching commerce order note could not be foundpublic static CommerceOrderNote 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 note could not be foundpublic static CommerceOrderNote 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 note could not be foundpublic static CommerceOrderNote removeByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchOrderNoteException
externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchOrderNoteException
public static int countByERC_C(java.lang.String externalReferenceCode, long companyId)
externalReferenceCode
- the external reference codecompanyId
- the company IDpublic static void cacheResult(CommerceOrderNote commerceOrderNote)
commerceOrderNote
- the commerce order notepublic static void cacheResult(java.util.List<CommerceOrderNote> commerceOrderNotes)
commerceOrderNotes
- the commerce order notespublic static CommerceOrderNote create(long commerceOrderNoteId)
commerceOrderNoteId
- the primary key for the new commerce order notepublic static CommerceOrderNote remove(long commerceOrderNoteId) throws NoSuchOrderNoteException
commerceOrderNoteId
- the primary key of the commerce order noteNoSuchOrderNoteException
- if a commerce order note with the primary key could not be foundpublic static CommerceOrderNote updateImpl(CommerceOrderNote commerceOrderNote)
public static CommerceOrderNote findByPrimaryKey(long commerceOrderNoteId) throws NoSuchOrderNoteException
NoSuchOrderNoteException
if it could not be found.commerceOrderNoteId
- the primary key of the commerce order noteNoSuchOrderNoteException
- if a commerce order note with the primary key could not be foundpublic static CommerceOrderNote fetchByPrimaryKey(long commerceOrderNoteId)
null
if it could not be found.commerceOrderNoteId
- the primary key of the commerce order notenull
if a commerce order note with the primary key could not be foundpublic static java.util.List<CommerceOrderNote> findAll()
public static java.util.List<CommerceOrderNote> 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 CommerceOrderNoteModelImpl
.
start
- the lower bound of the range of commerce order notesend
- the upper bound of the range of commerce order notes (not inclusive)public static java.util.List<CommerceOrderNote> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> 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 CommerceOrderNoteModelImpl
.
start
- the lower bound of the range of commerce order notesend
- the upper bound of the range of commerce order notes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrderNote> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> 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 CommerceOrderNoteModelImpl
.
start
- the lower bound of the range of commerce order notesend
- the upper bound of the range of commerce order notes (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 CommerceOrderNotePersistence getPersistence()
public static void setPersistence(CommerceOrderNotePersistence persistence)