public class CommerceAccountUserRelUtil
extends java.lang.Object
com.liferay.commerce.account.service.persistence.impl.CommerceAccountUserRelPersistenceImpl 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
CommerceAccountUserRelPersistence| Constructor and Description |
|---|
CommerceAccountUserRelUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(CommerceAccountUserRel commerceAccountUserRel)
Caches the commerce account user rel in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceAccountUserRel> commerceAccountUserRels)
Caches the commerce account user rels in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceAccountUserRel commerceAccountUserRel) |
static int |
countAll()
Returns the number of commerce account user rels.
|
static int |
countByCommerceAccountId(long commerceAccountId)
Returns the number of commerce account user rels where commerceAccountId = ?.
|
static int |
countByCommerceAccountUserId(long commerceAccountUserId)
Returns the number of commerce account user rels where commerceAccountUserId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceAccountUserRel |
create(CommerceAccountUserRelPK commerceAccountUserRelPK)
Creates a new commerce account user rel with the primary key.
|
static CommerceAccountUserRel |
fetchByCommerceAccountId_First(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
Returns the first commerce account user rel in the ordered set where commerceAccountId = ?.
|
static CommerceAccountUserRel |
fetchByCommerceAccountId_Last(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
Returns the last commerce account user rel in the ordered set where commerceAccountId = ?.
|
static CommerceAccountUserRel |
fetchByCommerceAccountUserId_First(long commerceAccountUserId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
Returns the first commerce account user rel in the ordered set where commerceAccountUserId = ?.
|
static CommerceAccountUserRel |
fetchByCommerceAccountUserId_Last(long commerceAccountUserId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
Returns the last commerce account user rel in the ordered set where commerceAccountUserId = ?.
|
static CommerceAccountUserRel |
fetchByPrimaryKey(CommerceAccountUserRelPK commerceAccountUserRelPK)
Returns the commerce account user rel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceAccountUserRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceAccountUserRel> |
findAll()
Returns all the commerce account user rels.
|
static java.util.List<CommerceAccountUserRel> |
findAll(int start,
int end)
Returns a range of all the commerce account user rels.
|
static java.util.List<CommerceAccountUserRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
Returns an ordered range of all the commerce account user rels.
|
static java.util.List<CommerceAccountUserRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce account user rels.
|
static CommerceAccountUserRel |
findByCommerceAccountId_First(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
Returns the first commerce account user rel in the ordered set where commerceAccountId = ?.
|
static CommerceAccountUserRel |
findByCommerceAccountId_Last(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
Returns the last commerce account user rel in the ordered set where commerceAccountId = ?.
|
static CommerceAccountUserRel[] |
findByCommerceAccountId_PrevAndNext(CommerceAccountUserRelPK commerceAccountUserRelPK,
long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
Returns the commerce account user rels before and after the current commerce account user rel in the ordered set where commerceAccountId = ?.
|
static java.util.List<CommerceAccountUserRel> |
findByCommerceAccountId(long commerceAccountId)
Returns all the commerce account user rels where commerceAccountId = ?.
|
static java.util.List<CommerceAccountUserRel> |
findByCommerceAccountId(long commerceAccountId,
int start,
int end)
Returns a range of all the commerce account user rels where commerceAccountId = ?.
|
static java.util.List<CommerceAccountUserRel> |
findByCommerceAccountId(long commerceAccountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
Returns an ordered range of all the commerce account user rels where commerceAccountId = ?.
|
static java.util.List<CommerceAccountUserRel> |
findByCommerceAccountId(long commerceAccountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce account user rels where commerceAccountId = ?.
|
static CommerceAccountUserRel |
findByCommerceAccountUserId_First(long commerceAccountUserId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
Returns the first commerce account user rel in the ordered set where commerceAccountUserId = ?.
|
static CommerceAccountUserRel |
findByCommerceAccountUserId_Last(long commerceAccountUserId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
Returns the last commerce account user rel in the ordered set where commerceAccountUserId = ?.
|
static CommerceAccountUserRel[] |
findByCommerceAccountUserId_PrevAndNext(CommerceAccountUserRelPK commerceAccountUserRelPK,
long commerceAccountUserId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
Returns the commerce account user rels before and after the current commerce account user rel in the ordered set where commerceAccountUserId = ?.
|
static java.util.List<CommerceAccountUserRel> |
findByCommerceAccountUserId(long commerceAccountUserId)
Returns all the commerce account user rels where commerceAccountUserId = ?.
|
static java.util.List<CommerceAccountUserRel> |
findByCommerceAccountUserId(long commerceAccountUserId,
int start,
int end)
Returns a range of all the commerce account user rels where commerceAccountUserId = ?.
|
static java.util.List<CommerceAccountUserRel> |
findByCommerceAccountUserId(long commerceAccountUserId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
Returns an ordered range of all the commerce account user rels where commerceAccountUserId = ?.
|
static java.util.List<CommerceAccountUserRel> |
findByCommerceAccountUserId(long commerceAccountUserId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce account user rels where commerceAccountUserId = ?.
|
static CommerceAccountUserRel |
findByPrimaryKey(CommerceAccountUserRelPK commerceAccountUserRelPK)
Returns the commerce account user rel with the primary key or throws a
NoSuchAccountUserRelException if it could not be found. |
static java.util.List<CommerceAccountUserRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceAccountUserRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceAccountUserRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator) |
static java.util.Set<java.lang.String> |
getCompoundPKColumnNames() |
static CommerceAccountUserRelPersistence |
getPersistence() |
static CommerceAccountUserRel |
remove(CommerceAccountUserRelPK commerceAccountUserRelPK)
Removes the commerce account user rel with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce account user rels from the database.
|
static void |
removeByCommerceAccountId(long commerceAccountId)
Removes all the commerce account user rels where commerceAccountId = ? from the database.
|
static void |
removeByCommerceAccountUserId(long commerceAccountUserId)
Removes all the commerce account user rels where commerceAccountUserId = ? from the database.
|
static CommerceAccountUserRel |
update(CommerceAccountUserRel commerceAccountUserRel) |
static CommerceAccountUserRel |
update(CommerceAccountUserRel commerceAccountUserRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceAccountUserRel |
updateImpl(CommerceAccountUserRel commerceAccountUserRel) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(CommerceAccountUserRel commerceAccountUserRel)
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,CommerceAccountUserRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)public static java.util.List<CommerceAccountUserRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<CommerceAccountUserRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<CommerceAccountUserRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static CommerceAccountUserRel update(CommerceAccountUserRel commerceAccountUserRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static CommerceAccountUserRel update(CommerceAccountUserRel commerceAccountUserRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<CommerceAccountUserRel> findByCommerceAccountId(long commerceAccountId)
commerceAccountId - the commerce account IDpublic static java.util.List<CommerceAccountUserRel> findByCommerceAccountId(long commerceAccountId, 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 CommerceAccountUserRelModelImpl.
commerceAccountId - the commerce account IDstart - the lower bound of the range of commerce account user relsend - the upper bound of the range of commerce account user rels (not inclusive)public static java.util.List<CommerceAccountUserRel> findByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> 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 CommerceAccountUserRelModelImpl.
commerceAccountId - the commerce account IDstart - the lower bound of the range of commerce account user relsend - the upper bound of the range of commerce account user rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAccountUserRel> findByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> 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 CommerceAccountUserRelModelImpl.
commerceAccountId - the commerce account IDstart - the lower bound of the range of commerce account user relsend - the upper bound of the range of commerce account user rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceAccountUserRel findByCommerceAccountId_First(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator) throws NoSuchAccountUserRelException
commerceAccountId - the commerce account IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountUserRelException - if a matching commerce account user rel could not be foundpublic static CommerceAccountUserRel fetchByCommerceAccountId_First(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
commerceAccountId - the commerce account IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce account user rel could not be foundpublic static CommerceAccountUserRel findByCommerceAccountId_Last(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator) throws NoSuchAccountUserRelException
commerceAccountId - the commerce account IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountUserRelException - if a matching commerce account user rel could not be foundpublic static CommerceAccountUserRel fetchByCommerceAccountId_Last(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
commerceAccountId - the commerce account IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce account user rel could not be foundpublic static CommerceAccountUserRel[] findByCommerceAccountId_PrevAndNext(CommerceAccountUserRelPK commerceAccountUserRelPK, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator) throws NoSuchAccountUserRelException
commerceAccountUserRelPK - the primary key of the current commerce account user relcommerceAccountId - the commerce account IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountUserRelException - if a commerce account user rel with the primary key could not be foundpublic static void removeByCommerceAccountId(long commerceAccountId)
commerceAccountId - the commerce account IDpublic static int countByCommerceAccountId(long commerceAccountId)
commerceAccountId - the commerce account IDpublic static java.util.List<CommerceAccountUserRel> findByCommerceAccountUserId(long commerceAccountUserId)
commerceAccountUserId - the commerce account user IDpublic static java.util.List<CommerceAccountUserRel> findByCommerceAccountUserId(long commerceAccountUserId, 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 CommerceAccountUserRelModelImpl.
commerceAccountUserId - the commerce account user IDstart - the lower bound of the range of commerce account user relsend - the upper bound of the range of commerce account user rels (not inclusive)public static java.util.List<CommerceAccountUserRel> findByCommerceAccountUserId(long commerceAccountUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> 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 CommerceAccountUserRelModelImpl.
commerceAccountUserId - the commerce account user IDstart - the lower bound of the range of commerce account user relsend - the upper bound of the range of commerce account user rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAccountUserRel> findByCommerceAccountUserId(long commerceAccountUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> 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 CommerceAccountUserRelModelImpl.
commerceAccountUserId - the commerce account user IDstart - the lower bound of the range of commerce account user relsend - the upper bound of the range of commerce account user rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceAccountUserRel findByCommerceAccountUserId_First(long commerceAccountUserId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator) throws NoSuchAccountUserRelException
commerceAccountUserId - the commerce account user IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountUserRelException - if a matching commerce account user rel could not be foundpublic static CommerceAccountUserRel fetchByCommerceAccountUserId_First(long commerceAccountUserId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
commerceAccountUserId - the commerce account user IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce account user rel could not be foundpublic static CommerceAccountUserRel findByCommerceAccountUserId_Last(long commerceAccountUserId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator) throws NoSuchAccountUserRelException
commerceAccountUserId - the commerce account user IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountUserRelException - if a matching commerce account user rel could not be foundpublic static CommerceAccountUserRel fetchByCommerceAccountUserId_Last(long commerceAccountUserId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator)
commerceAccountUserId - the commerce account user IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce account user rel could not be foundpublic static CommerceAccountUserRel[] findByCommerceAccountUserId_PrevAndNext(CommerceAccountUserRelPK commerceAccountUserRelPK, long commerceAccountUserId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> orderByComparator) throws NoSuchAccountUserRelException
commerceAccountUserRelPK - the primary key of the current commerce account user relcommerceAccountUserId - the commerce account user IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountUserRelException - if a commerce account user rel with the primary key could not be foundpublic static void removeByCommerceAccountUserId(long commerceAccountUserId)
commerceAccountUserId - the commerce account user IDpublic static int countByCommerceAccountUserId(long commerceAccountUserId)
commerceAccountUserId - the commerce account user IDpublic static void cacheResult(CommerceAccountUserRel commerceAccountUserRel)
commerceAccountUserRel - the commerce account user relpublic static void cacheResult(java.util.List<CommerceAccountUserRel> commerceAccountUserRels)
commerceAccountUserRels - the commerce account user relspublic static CommerceAccountUserRel create(CommerceAccountUserRelPK commerceAccountUserRelPK)
commerceAccountUserRelPK - the primary key for the new commerce account user relpublic static CommerceAccountUserRel remove(CommerceAccountUserRelPK commerceAccountUserRelPK) throws NoSuchAccountUserRelException
commerceAccountUserRelPK - the primary key of the commerce account user relNoSuchAccountUserRelException - if a commerce account user rel with the primary key could not be foundpublic static CommerceAccountUserRel updateImpl(CommerceAccountUserRel commerceAccountUserRel)
public static CommerceAccountUserRel findByPrimaryKey(CommerceAccountUserRelPK commerceAccountUserRelPK) throws NoSuchAccountUserRelException
NoSuchAccountUserRelException if it could not be found.commerceAccountUserRelPK - the primary key of the commerce account user relNoSuchAccountUserRelException - if a commerce account user rel with the primary key could not be foundpublic static CommerceAccountUserRel fetchByPrimaryKey(CommerceAccountUserRelPK commerceAccountUserRelPK)
null if it could not be found.commerceAccountUserRelPK - the primary key of the commerce account user relnull if a commerce account user rel with the primary key could not be foundpublic static java.util.List<CommerceAccountUserRel> findAll()
public static java.util.List<CommerceAccountUserRel> 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 CommerceAccountUserRelModelImpl.
start - the lower bound of the range of commerce account user relsend - the upper bound of the range of commerce account user rels (not inclusive)public static java.util.List<CommerceAccountUserRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> 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 CommerceAccountUserRelModelImpl.
start - the lower bound of the range of commerce account user relsend - the upper bound of the range of commerce account user rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAccountUserRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountUserRel> 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 CommerceAccountUserRelModelImpl.
start - the lower bound of the range of commerce account user relsend - the upper bound of the range of commerce account user rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static java.util.Set<java.lang.String> getCompoundPKColumnNames()
public static CommerceAccountUserRelPersistence getPersistence()