Class CommerceOrderNoteUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommerceOrderNote commerceOrderNote) Caches the commerce order note in the entity cache if it is enabled.static void
cacheResult
(List<CommerceOrderNote> commerceOrderNotes) Caches the commerce order notes in the entity cache if it is enabled.static void
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
(String externalReferenceCode, long companyId) Returns the number of commerce order notes where externalReferenceCode = ? and companyId = ?.static int
countByUuid
(String uuid) Returns the number of commerce order notes where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of commerce order notes where uuid = ? and companyId = ?.static int
countByUUID_G
(String uuid, long groupId) Returns the number of commerce order notes where uuid = ? and groupId = ?.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
(String externalReferenceCode, long companyId) Returns the commerce order note where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.static CommerceOrderNote
fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce order note where externalReferenceCode = ? and companyId = ? or returnsnull
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 returnsnull
if it could not be found.static Map<Serializable,
CommerceOrderNote> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static CommerceOrderNote
fetchByUuid_C_First
(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
(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
(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
(String uuid, long groupId) Returns the commerce order note where uuid = ? and groupId = ? or returnsnull
if it could not be found.static CommerceOrderNote
fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the commerce order note where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CommerceOrderNote
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) Returns the last commerce order note in the ordered set where uuid = ?.static List<CommerceOrderNote>
findAll()
Returns all the commerce order notes.static List<CommerceOrderNote>
findAll
(int start, int end) Returns a range of all the commerce order notes.static 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 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 List<CommerceOrderNote>
findByC_R
(long commerceOrderId, boolean restricted) Returns all the commerce order notes where commerceOrderId = ? and restricted = ?.static 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 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 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
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 List<CommerceOrderNote>
findByCommerceOrderId
(long commerceOrderId) Returns all the commerce order notes where commerceOrderId = ?.static List<CommerceOrderNote>
findByCommerceOrderId
(long commerceOrderId, int start, int end) Returns a range of all the commerce order notes where commerceOrderId = ?.static 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 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
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 CommerceOrderNote
findByERC_C
(String externalReferenceCode, long companyId) Returns the commerce order note where externalReferenceCode = ? and companyId = ? or throws aNoSuchOrderNoteException
if it could not be found.static CommerceOrderNote
findByPrimaryKey
(long commerceOrderNoteId) Returns the commerce order note with the primary key or throws aNoSuchOrderNoteException
if it could not be found.static List<CommerceOrderNote>
findByUuid
(String uuid) Returns all the commerce order notes where uuid = ?.static List<CommerceOrderNote>
findByUuid
(String uuid, int start, int end) Returns a range of all the commerce order notes where uuid = ?.static List<CommerceOrderNote>
findByUuid
(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 List<CommerceOrderNote>
findByUuid
(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 List<CommerceOrderNote>
findByUuid_C
(String uuid, long companyId) Returns all the commerce order notes where uuid = ? and companyId = ?.static List<CommerceOrderNote>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce order notes where uuid = ? and companyId = ?.static List<CommerceOrderNote>
findByUuid_C
(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 List<CommerceOrderNote>
findByUuid_C
(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_C_First
(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
(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, 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 CommerceOrderNote
findByUuid_First
(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
(String uuid, long groupId) Returns the commerce order note where uuid = ? and groupId = ? or throws aNoSuchOrderNoteException
if it could not be found.static CommerceOrderNote
findByUuid_Last
(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, 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 List<CommerceOrderNote>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceOrderNote>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static 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
static CommerceOrderNote
remove
(long commerceOrderNoteId) Removes the commerce order note with the primary key from the database.static void
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
(String externalReferenceCode, long companyId) Removes the commerce order note where externalReferenceCode = ? and companyId = ? from the database.static void
removeByUuid
(String uuid) Removes all the commerce order notes where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the commerce order notes where uuid = ? and companyId = ? from the database.static CommerceOrderNote
removeByUUID_G
(String uuid, long groupId) Removes the commerce order note where uuid = ? and groupId = ? 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)
-
Constructor Details
-
CommerceOrderNoteUtil
public CommerceOrderNoteUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceOrderNote> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceOrderNote> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceOrderNote> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceOrderNote update(CommerceOrderNote commerceOrderNote, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the commerce order notes where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce order notes
-
findByUuid
Returns a range of all the commerce order notes where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderNoteModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order notes
-
findByUuid
public static List<CommerceOrderNote> findByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderNoteModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order notes
-
findByUuid
public static List<CommerceOrderNote> findByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderNoteModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order notes
-
findByUuid_First
public static CommerceOrderNote findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException Returns the first commerce order note in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order note
- Throws:
NoSuchOrderNoteException
- if a matching commerce order note could not be foundNoSuchOrderNoteException
-
fetchByUuid_First
public static CommerceOrderNote fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) Returns the first commerce order note in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order note, or
null
if a matching commerce order note could not be found
-
findByUuid_Last
public static CommerceOrderNote findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException Returns the last commerce order note in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order note
- Throws:
NoSuchOrderNoteException
- if a matching commerce order note could not be foundNoSuchOrderNoteException
-
fetchByUuid_Last
public static CommerceOrderNote fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) Returns the last commerce order note in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order note, or
null
if a matching commerce order note could not be found
-
findByUuid_PrevAndNext
public static CommerceOrderNote[] findByUuid_PrevAndNext(long commerceOrderNoteId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException Returns the commerce order notes before and after the current commerce order note in the ordered set where uuid = ?.- Parameters:
commerceOrderNoteId
- the primary key of the current commerce order noteuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order note
- Throws:
NoSuchOrderNoteException
- if a commerce order note with the primary key could not be foundNoSuchOrderNoteException
-
removeByUuid
Removes all the commerce order notes where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of commerce order notes where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce order notes
-
findByUUID_G
public static CommerceOrderNote findByUUID_G(String uuid, long groupId) throws NoSuchOrderNoteException Returns the commerce order note where uuid = ? and groupId = ? or throws aNoSuchOrderNoteException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching commerce order note
- Throws:
NoSuchOrderNoteException
- if a matching commerce order note could not be foundNoSuchOrderNoteException
-
fetchByUUID_G
Returns the commerce order note where uuid = ? and groupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching commerce order note, or
null
if a matching commerce order note could not be found
-
fetchByUUID_G
Returns the commerce order note where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce order note, or
null
if a matching commerce order note could not be found
-
removeByUUID_G
public static CommerceOrderNote removeByUUID_G(String uuid, long groupId) throws NoSuchOrderNoteException Removes the commerce order note where uuid = ? and groupId = ? from the database.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the commerce order note that was removed
- Throws:
NoSuchOrderNoteException
-
countByUUID_G
Returns the number of commerce order notes where uuid = ? and groupId = ?.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the number of matching commerce order notes
-
findByUuid_C
Returns all the commerce order notes where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce order notes
-
findByUuid_C
Returns a range of all the commerce order notes where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderNoteModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order notes
-
findByUuid_C
public static List<CommerceOrderNote> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderNoteModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order notes
-
findByUuid_C
public static List<CommerceOrderNote> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderNoteModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order notes
-
findByUuid_C_First
public static CommerceOrderNote findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException Returns the first commerce order note in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order note
- Throws:
NoSuchOrderNoteException
- if a matching commerce order note could not be foundNoSuchOrderNoteException
-
fetchByUuid_C_First
public static CommerceOrderNote fetchByUuid_C_First(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 = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order note, or
null
if a matching commerce order note could not be found
-
findByUuid_C_Last
public static CommerceOrderNote findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException Returns the last commerce order note in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order note
- Throws:
NoSuchOrderNoteException
- if a matching commerce order note could not be foundNoSuchOrderNoteException
-
fetchByUuid_C_Last
public static CommerceOrderNote fetchByUuid_C_Last(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 = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order note, or
null
if a matching commerce order note could not be found
-
findByUuid_C_PrevAndNext
public static CommerceOrderNote[] findByUuid_C_PrevAndNext(long commerceOrderNoteId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException Returns the commerce order notes before and after the current commerce order note in the ordered set where uuid = ? and companyId = ?.- Parameters:
commerceOrderNoteId
- the primary key of the current commerce order noteuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order note
- Throws:
NoSuchOrderNoteException
- if a commerce order note with the primary key could not be foundNoSuchOrderNoteException
-
removeByUuid_C
Removes all the commerce order notes where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of commerce order notes where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce order notes
-
findByCommerceOrderId
Returns all the commerce order notes where commerceOrderId = ?.- Parameters:
commerceOrderId
- the commerce order ID- Returns:
- the matching commerce order notes
-
findByCommerceOrderId
public static List<CommerceOrderNote> findByCommerceOrderId(long commerceOrderId, int start, int end) Returns a range of all the commerce order notes where commerceOrderId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderNoteModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order notes
-
findByCommerceOrderId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderNoteModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order notes
-
findByCommerceOrderId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderNoteModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order notes
-
findByCommerceOrderId_First
public static CommerceOrderNote findByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException Returns the first commerce order note in the ordered set where commerceOrderId = ?.- Parameters:
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order note
- Throws:
NoSuchOrderNoteException
- if a matching commerce order note could not be foundNoSuchOrderNoteException
-
fetchByCommerceOrderId_First
public 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 = ?.- Parameters:
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order note, or
null
if a matching commerce order note could not be found
-
findByCommerceOrderId_Last
public static CommerceOrderNote findByCommerceOrderId_Last(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException Returns the last commerce order note in the ordered set where commerceOrderId = ?.- Parameters:
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order note
- Throws:
NoSuchOrderNoteException
- if a matching commerce order note could not be foundNoSuchOrderNoteException
-
fetchByCommerceOrderId_Last
public 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 = ?.- Parameters:
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order note, or
null
if a matching commerce order note could not be found
-
findByCommerceOrderId_PrevAndNext
public static CommerceOrderNote[] findByCommerceOrderId_PrevAndNext(long commerceOrderNoteId, long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException Returns the commerce order notes before and after the current commerce order note in the ordered set where commerceOrderId = ?.- Parameters:
commerceOrderNoteId
- the primary key of the current commerce order notecommerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order note
- Throws:
NoSuchOrderNoteException
- if a commerce order note with the primary key could not be foundNoSuchOrderNoteException
-
removeByCommerceOrderId
public static void removeByCommerceOrderId(long commerceOrderId) Removes all the commerce order notes where commerceOrderId = ? from the database.- Parameters:
commerceOrderId
- the commerce order ID
-
countByCommerceOrderId
public static int countByCommerceOrderId(long commerceOrderId) Returns the number of commerce order notes where commerceOrderId = ?.- Parameters:
commerceOrderId
- the commerce order ID- Returns:
- the number of matching commerce order notes
-
findByC_R
Returns all the commerce order notes where commerceOrderId = ? and restricted = ?.- Parameters:
commerceOrderId
- the commerce order IDrestricted
- the restricted- Returns:
- the matching commerce order notes
-
findByC_R
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderNoteModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order notes
-
findByC_R
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderNoteModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order notes
-
findByC_R
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderNoteModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order notes
-
findByC_R_First
public static CommerceOrderNote findByC_R_First(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException Returns the first commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.- Parameters:
commerceOrderId
- the commerce order IDrestricted
- the restrictedorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order note
- Throws:
NoSuchOrderNoteException
- if a matching commerce order note could not be foundNoSuchOrderNoteException
-
fetchByC_R_First
public 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 = ?.- Parameters:
commerceOrderId
- the commerce order IDrestricted
- the restrictedorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order note, or
null
if a matching commerce order note could not be found
-
findByC_R_Last
public static CommerceOrderNote findByC_R_Last(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException Returns the last commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.- Parameters:
commerceOrderId
- the commerce order IDrestricted
- the restrictedorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order note
- Throws:
NoSuchOrderNoteException
- if a matching commerce order note could not be foundNoSuchOrderNoteException
-
fetchByC_R_Last
public 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 = ?.- Parameters:
commerceOrderId
- the commerce order IDrestricted
- the restrictedorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order note, or
null
if a matching commerce order note could not be found
-
findByC_R_PrevAndNext
public static CommerceOrderNote[] findByC_R_PrevAndNext(long commerceOrderNoteId, long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderNote> orderByComparator) throws NoSuchOrderNoteException Returns the commerce order notes before and after the current commerce order note in the ordered set where commerceOrderId = ? and restricted = ?.- Parameters:
commerceOrderNoteId
- the primary key of the current commerce order notecommerceOrderId
- the commerce order IDrestricted
- the restrictedorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order note
- Throws:
NoSuchOrderNoteException
- if a commerce order note with the primary key could not be foundNoSuchOrderNoteException
-
removeByC_R
public static void removeByC_R(long commerceOrderId, boolean restricted) Removes all the commerce order notes where commerceOrderId = ? and restricted = ? from the database.- Parameters:
commerceOrderId
- the commerce order IDrestricted
- the restricted
-
countByC_R
public static int countByC_R(long commerceOrderId, boolean restricted) Returns the number of commerce order notes where commerceOrderId = ? and restricted = ?.- Parameters:
commerceOrderId
- the commerce order IDrestricted
- the restricted- Returns:
- the number of matching commerce order notes
-
findByERC_C
public static CommerceOrderNote findByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrderNoteException Returns the commerce order note where externalReferenceCode = ? and companyId = ? or throws aNoSuchOrderNoteException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce order note
- Throws:
NoSuchOrderNoteException
- if a matching commerce order note could not be foundNoSuchOrderNoteException
-
fetchByERC_C
Returns the commerce order note where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce order note, or
null
if a matching commerce order note could not be found
-
fetchByERC_C
public static CommerceOrderNote fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce order note where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce order note, or
null
if a matching commerce order note could not be found
-
removeByERC_C
public static CommerceOrderNote removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrderNoteException Removes the commerce order note where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the commerce order note that was removed
- Throws:
NoSuchOrderNoteException
-
countByERC_C
Returns the number of commerce order notes where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching commerce order notes
-
cacheResult
Caches the commerce order note in the entity cache if it is enabled.- Parameters:
commerceOrderNote
- the commerce order note
-
cacheResult
Caches the commerce order notes in the entity cache if it is enabled.- Parameters:
commerceOrderNotes
- the commerce order notes
-
create
Creates a new commerce order note with the primary key. Does not add the commerce order note to the database.- Parameters:
commerceOrderNoteId
- the primary key for the new commerce order note- Returns:
- the new commerce order note
-
remove
Removes the commerce order note with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceOrderNoteId
- the primary key of the commerce order note- Returns:
- the commerce order note that was removed
- Throws:
NoSuchOrderNoteException
- if a commerce order note with the primary key could not be foundNoSuchOrderNoteException
-
updateImpl
-
findByPrimaryKey
public static CommerceOrderNote findByPrimaryKey(long commerceOrderNoteId) throws NoSuchOrderNoteException Returns the commerce order note with the primary key or throws aNoSuchOrderNoteException
if it could not be found.- Parameters:
commerceOrderNoteId
- the primary key of the commerce order note- Returns:
- the commerce order note
- Throws:
NoSuchOrderNoteException
- if a commerce order note with the primary key could not be foundNoSuchOrderNoteException
-
fetchByPrimaryKey
Returns the commerce order note with the primary key or returnsnull
if it could not be found.- Parameters:
commerceOrderNoteId
- the primary key of the commerce order note- Returns:
- the commerce order note, or
null
if a commerce order note with the primary key could not be found
-
findAll
Returns all the commerce order notes.- Returns:
- the commerce order notes
-
findAll
Returns a range of all the commerce order notes.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderNoteModelImpl
.- Parameters:
start
- the lower bound of the range of commerce order notesend
- the upper bound of the range of commerce order notes (not inclusive)- Returns:
- the range of commerce order notes
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderNoteModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of commerce order notes
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderNoteModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce order notes
-
removeAll
public static void removeAll()Removes all the commerce order notes from the database. -
countAll
public static int countAll()Returns the number of commerce order notes.- Returns:
- the number of commerce order notes
-
getPersistence
-
setPersistence
-