Class AccountEntryUserRelUtil

java.lang.Object
com.liferay.account.service.persistence.AccountEntryUserRelUtil

public class AccountEntryUserRelUtil extends Object
The persistence utility for the account entry user rel service. This utility wraps com.liferay.account.service.persistence.impl.AccountEntryUserRelPersistenceImpl 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 Details

    • AccountEntryUserRelUtil

      public AccountEntryUserRelUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(AccountEntryUserRel accountEntryUserRel)
      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

      public static Map<Serializable,AccountEntryUserRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<AccountEntryUserRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<AccountEntryUserRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<AccountEntryUserRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryUserRel> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static AccountEntryUserRel update(AccountEntryUserRel accountEntryUserRel)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static AccountEntryUserRel update(AccountEntryUserRel accountEntryUserRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByAccountEntryId

      public static List<AccountEntryUserRel> findByAccountEntryId(long accountEntryId)
      Returns all the account entry user rels where accountEntryId = ?.
      Parameters:
      accountEntryId - the account entry ID
      Returns:
      the matching account entry user rels
    • findByAccountEntryId

      public static List<AccountEntryUserRel> findByAccountEntryId(long accountEntryId, int start, int end)
      Returns a range of all the account entry user rels where accountEntryId = ?.

      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 AccountEntryUserRelModelImpl.

      Parameters:
      accountEntryId - the account entry ID
      start - the lower bound of the range of account entry user rels
      end - the upper bound of the range of account entry user rels (not inclusive)
      Returns:
      the range of matching account entry user rels
    • findByAccountEntryId

      public static List<AccountEntryUserRel> findByAccountEntryId(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryUserRel> orderByComparator)
      Returns an ordered range of all the account entry user rels where accountEntryId = ?.

      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 AccountEntryUserRelModelImpl.

      Parameters:
      accountEntryId - the account entry ID
      start - the lower bound of the range of account entry user rels
      end - the upper bound of the range of account entry user rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching account entry user rels
    • findByAccountEntryId

      public static List<AccountEntryUserRel> findByAccountEntryId(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryUserRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the account entry user rels where accountEntryId = ?.

      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 AccountEntryUserRelModelImpl.

      Parameters:
      accountEntryId - the account entry ID
      start - the lower bound of the range of account entry user rels
      end - the upper bound of the range of account entry user rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching account entry user rels
    • findByAccountEntryId_First

      public static AccountEntryUserRel findByAccountEntryId_First(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryUserRel> orderByComparator) throws NoSuchEntryUserRelException
      Returns the first account entry user rel in the ordered set where accountEntryId = ?.
      Parameters:
      accountEntryId - the account entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching account entry user rel
      Throws:
      NoSuchEntryUserRelException - if a matching account entry user rel could not be found
      NoSuchEntryUserRelException
    • fetchByAccountEntryId_First

      public static AccountEntryUserRel fetchByAccountEntryId_First(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryUserRel> orderByComparator)
      Returns the first account entry user rel in the ordered set where accountEntryId = ?.
      Parameters:
      accountEntryId - the account entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching account entry user rel, or null if a matching account entry user rel could not be found
    • findByAccountEntryId_Last

      public static AccountEntryUserRel findByAccountEntryId_Last(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryUserRel> orderByComparator) throws NoSuchEntryUserRelException
      Returns the last account entry user rel in the ordered set where accountEntryId = ?.
      Parameters:
      accountEntryId - the account entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching account entry user rel
      Throws:
      NoSuchEntryUserRelException - if a matching account entry user rel could not be found
      NoSuchEntryUserRelException
    • fetchByAccountEntryId_Last

      public static AccountEntryUserRel fetchByAccountEntryId_Last(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryUserRel> orderByComparator)
      Returns the last account entry user rel in the ordered set where accountEntryId = ?.
      Parameters:
      accountEntryId - the account entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching account entry user rel, or null if a matching account entry user rel could not be found
    • findByAccountEntryId_PrevAndNext

      public static AccountEntryUserRel[] findByAccountEntryId_PrevAndNext(long accountEntryUserRelId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryUserRel> orderByComparator) throws NoSuchEntryUserRelException
      Returns the account entry user rels before and after the current account entry user rel in the ordered set where accountEntryId = ?.
      Parameters:
      accountEntryUserRelId - the primary key of the current account entry user rel
      accountEntryId - the account entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next account entry user rel
      Throws:
      NoSuchEntryUserRelException - if a account entry user rel with the primary key could not be found
      NoSuchEntryUserRelException
    • removeByAccountEntryId

      public static void removeByAccountEntryId(long accountEntryId)
      Removes all the account entry user rels where accountEntryId = ? from the database.
      Parameters:
      accountEntryId - the account entry ID
    • countByAccountEntryId

      public static int countByAccountEntryId(long accountEntryId)
      Returns the number of account entry user rels where accountEntryId = ?.
      Parameters:
      accountEntryId - the account entry ID
      Returns:
      the number of matching account entry user rels
    • findByAccountUserId

      public static List<AccountEntryUserRel> findByAccountUserId(long accountUserId)
      Returns all the account entry user rels where accountUserId = ?.
      Parameters:
      accountUserId - the account user ID
      Returns:
      the matching account entry user rels
    • findByAccountUserId

      public static List<AccountEntryUserRel> findByAccountUserId(long accountUserId, int start, int end)
      Returns a range of all the account entry user rels where accountUserId = ?.

      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 AccountEntryUserRelModelImpl.

      Parameters:
      accountUserId - the account user ID
      start - the lower bound of the range of account entry user rels
      end - the upper bound of the range of account entry user rels (not inclusive)
      Returns:
      the range of matching account entry user rels
    • findByAccountUserId

      public static List<AccountEntryUserRel> findByAccountUserId(long accountUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryUserRel> orderByComparator)
      Returns an ordered range of all the account entry user rels where accountUserId = ?.

      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 AccountEntryUserRelModelImpl.

      Parameters:
      accountUserId - the account user ID
      start - the lower bound of the range of account entry user rels
      end - the upper bound of the range of account entry user rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching account entry user rels
    • findByAccountUserId

      public static List<AccountEntryUserRel> findByAccountUserId(long accountUserId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryUserRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the account entry user rels where accountUserId = ?.

      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 AccountEntryUserRelModelImpl.

      Parameters:
      accountUserId - the account user ID
      start - the lower bound of the range of account entry user rels
      end - the upper bound of the range of account entry user rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching account entry user rels
    • findByAccountUserId_First

      public static AccountEntryUserRel findByAccountUserId_First(long accountUserId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryUserRel> orderByComparator) throws NoSuchEntryUserRelException
      Returns the first account entry user rel in the ordered set where accountUserId = ?.
      Parameters:
      accountUserId - the account user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching account entry user rel
      Throws:
      NoSuchEntryUserRelException - if a matching account entry user rel could not be found
      NoSuchEntryUserRelException
    • fetchByAccountUserId_First

      public static AccountEntryUserRel fetchByAccountUserId_First(long accountUserId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryUserRel> orderByComparator)
      Returns the first account entry user rel in the ordered set where accountUserId = ?.
      Parameters:
      accountUserId - the account user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching account entry user rel, or null if a matching account entry user rel could not be found
    • findByAccountUserId_Last

      public static AccountEntryUserRel findByAccountUserId_Last(long accountUserId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryUserRel> orderByComparator) throws NoSuchEntryUserRelException
      Returns the last account entry user rel in the ordered set where accountUserId = ?.
      Parameters:
      accountUserId - the account user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching account entry user rel
      Throws:
      NoSuchEntryUserRelException - if a matching account entry user rel could not be found
      NoSuchEntryUserRelException
    • fetchByAccountUserId_Last

      public static AccountEntryUserRel fetchByAccountUserId_Last(long accountUserId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryUserRel> orderByComparator)
      Returns the last account entry user rel in the ordered set where accountUserId = ?.
      Parameters:
      accountUserId - the account user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching account entry user rel, or null if a matching account entry user rel could not be found
    • findByAccountUserId_PrevAndNext

      public static AccountEntryUserRel[] findByAccountUserId_PrevAndNext(long accountEntryUserRelId, long accountUserId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryUserRel> orderByComparator) throws NoSuchEntryUserRelException
      Returns the account entry user rels before and after the current account entry user rel in the ordered set where accountUserId = ?.
      Parameters:
      accountEntryUserRelId - the primary key of the current account entry user rel
      accountUserId - the account user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next account entry user rel
      Throws:
      NoSuchEntryUserRelException - if a account entry user rel with the primary key could not be found
      NoSuchEntryUserRelException
    • removeByAccountUserId

      public static void removeByAccountUserId(long accountUserId)
      Removes all the account entry user rels where accountUserId = ? from the database.
      Parameters:
      accountUserId - the account user ID
    • countByAccountUserId

      public static int countByAccountUserId(long accountUserId)
      Returns the number of account entry user rels where accountUserId = ?.
      Parameters:
      accountUserId - the account user ID
      Returns:
      the number of matching account entry user rels
    • findByAEI_AUI

      public static AccountEntryUserRel findByAEI_AUI(long accountEntryId, long accountUserId) throws NoSuchEntryUserRelException
      Returns the account entry user rel where accountEntryId = ? and accountUserId = ? or throws a NoSuchEntryUserRelException if it could not be found.
      Parameters:
      accountEntryId - the account entry ID
      accountUserId - the account user ID
      Returns:
      the matching account entry user rel
      Throws:
      NoSuchEntryUserRelException - if a matching account entry user rel could not be found
      NoSuchEntryUserRelException
    • fetchByAEI_AUI

      public static AccountEntryUserRel fetchByAEI_AUI(long accountEntryId, long accountUserId)
      Returns the account entry user rel where accountEntryId = ? and accountUserId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      accountEntryId - the account entry ID
      accountUserId - the account user ID
      Returns:
      the matching account entry user rel, or null if a matching account entry user rel could not be found
    • fetchByAEI_AUI

      public static AccountEntryUserRel fetchByAEI_AUI(long accountEntryId, long accountUserId, boolean useFinderCache)
      Returns the account entry user rel where accountEntryId = ? and accountUserId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      accountEntryId - the account entry ID
      accountUserId - the account user ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching account entry user rel, or null if a matching account entry user rel could not be found
    • removeByAEI_AUI

      public static AccountEntryUserRel removeByAEI_AUI(long accountEntryId, long accountUserId) throws NoSuchEntryUserRelException
      Removes the account entry user rel where accountEntryId = ? and accountUserId = ? from the database.
      Parameters:
      accountEntryId - the account entry ID
      accountUserId - the account user ID
      Returns:
      the account entry user rel that was removed
      Throws:
      NoSuchEntryUserRelException
    • countByAEI_AUI

      public static int countByAEI_AUI(long accountEntryId, long accountUserId)
      Returns the number of account entry user rels where accountEntryId = ? and accountUserId = ?.
      Parameters:
      accountEntryId - the account entry ID
      accountUserId - the account user ID
      Returns:
      the number of matching account entry user rels
    • cacheResult

      public static void cacheResult(AccountEntryUserRel accountEntryUserRel)
      Caches the account entry user rel in the entity cache if it is enabled.
      Parameters:
      accountEntryUserRel - the account entry user rel
    • cacheResult

      public static void cacheResult(List<AccountEntryUserRel> accountEntryUserRels)
      Caches the account entry user rels in the entity cache if it is enabled.
      Parameters:
      accountEntryUserRels - the account entry user rels
    • create

      public static AccountEntryUserRel create(long accountEntryUserRelId)
      Creates a new account entry user rel with the primary key. Does not add the account entry user rel to the database.
      Parameters:
      accountEntryUserRelId - the primary key for the new account entry user rel
      Returns:
      the new account entry user rel
    • remove

      public static AccountEntryUserRel remove(long accountEntryUserRelId) throws NoSuchEntryUserRelException
      Removes the account entry user rel with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      accountEntryUserRelId - the primary key of the account entry user rel
      Returns:
      the account entry user rel that was removed
      Throws:
      NoSuchEntryUserRelException - if a account entry user rel with the primary key could not be found
      NoSuchEntryUserRelException
    • updateImpl

      public static AccountEntryUserRel updateImpl(AccountEntryUserRel accountEntryUserRel)
    • findByPrimaryKey

      public static AccountEntryUserRel findByPrimaryKey(long accountEntryUserRelId) throws NoSuchEntryUserRelException
      Returns the account entry user rel with the primary key or throws a NoSuchEntryUserRelException if it could not be found.
      Parameters:
      accountEntryUserRelId - the primary key of the account entry user rel
      Returns:
      the account entry user rel
      Throws:
      NoSuchEntryUserRelException - if a account entry user rel with the primary key could not be found
      NoSuchEntryUserRelException
    • fetchByPrimaryKey

      public static AccountEntryUserRel fetchByPrimaryKey(long accountEntryUserRelId)
      Returns the account entry user rel with the primary key or returns null if it could not be found.
      Parameters:
      accountEntryUserRelId - the primary key of the account entry user rel
      Returns:
      the account entry user rel, or null if a account entry user rel with the primary key could not be found
    • findAll

      public static List<AccountEntryUserRel> findAll()
      Returns all the account entry user rels.
      Returns:
      the account entry user rels
    • findAll

      public static List<AccountEntryUserRel> findAll(int start, int end)
      Returns a range of all the account entry user rels.

      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 AccountEntryUserRelModelImpl.

      Parameters:
      start - the lower bound of the range of account entry user rels
      end - the upper bound of the range of account entry user rels (not inclusive)
      Returns:
      the range of account entry user rels
    • findAll

      public static List<AccountEntryUserRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryUserRel> orderByComparator)
      Returns an ordered range of all the account entry user rels.

      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 AccountEntryUserRelModelImpl.

      Parameters:
      start - the lower bound of the range of account entry user rels
      end - the upper bound of the range of account entry user rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of account entry user rels
    • findAll

      public static List<AccountEntryUserRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryUserRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the account entry user rels.

      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 AccountEntryUserRelModelImpl.

      Parameters:
      start - the lower bound of the range of account entry user rels
      end - the upper bound of the range of account entry user rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of account entry user rels
    • removeAll

      public static void removeAll()
      Removes all the account entry user rels from the database.
    • countAll

      public static int countAll()
      Returns the number of account entry user rels.
      Returns:
      the number of account entry user rels
    • getPersistence

      public static AccountEntryUserRelPersistence getPersistence()
    • setPersistence

      public static void setPersistence(AccountEntryUserRelPersistence persistence)