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_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce order notes where companyId = ? and externalReferenceCode = ?.
|
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 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_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce order note where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static CommerceOrderNote |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the commerce order note where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
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 |
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 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_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce order note where companyId = ? and externalReferenceCode = ? or throws a
NoSuchOrderNoteException if it could not be found. |
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 |
findByPrimaryKey(long commerceOrderNoteId)
Returns the commerce order note with the primary key or throws a
NoSuchOrderNoteException if it could not be found. |
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 CommerceOrderNote |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce order note where companyId = ? and externalReferenceCode = ? 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 |
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> 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 findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchOrderNoteException
NoSuchOrderNoteException
if it could not be found.companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchOrderNoteException
- if a matching commerce order note could not be foundpublic static CommerceOrderNote 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 note could not be foundpublic static CommerceOrderNote 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 note could not be foundpublic static CommerceOrderNote removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchOrderNoteException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchOrderNoteException
public static int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codepublic 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()