Class AccountEntryOrganizationRelUtil
com.liferay.account.service.persistence.impl.AccountEntryOrganizationRelPersistenceImpl
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
(AccountEntryOrganizationRel accountEntryOrganizationRel) Caches the account entry organization rel in the entity cache if it is enabled.static void
cacheResult
(List<AccountEntryOrganizationRel> accountEntryOrganizationRels) Caches the account entry organization rels in the entity cache if it is enabled.static void
static void
clearCache
(AccountEntryOrganizationRel accountEntryOrganizationRel) static int
countAll()
Returns the number of account entry organization rels.static int
countByA_O
(long accountEntryId, long organizationId) Returns the number of account entry organization rels where accountEntryId = ? and organizationId = ?.static int
countByAccountEntryId
(long accountEntryId) Returns the number of account entry organization rels where accountEntryId = ?.static int
countByOrganizationId
(long organizationId) Returns the number of account entry organization rels where organizationId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static AccountEntryOrganizationRel
create
(long accountEntryOrganizationRelId) Creates a new account entry organization rel with the primary key.static AccountEntryOrganizationRel
fetchByA_O
(long accountEntryId, long organizationId) Returns the account entry organization rel where accountEntryId = ? and organizationId = ? or returnsnull
if it could not be found.static AccountEntryOrganizationRel
fetchByA_O
(long accountEntryId, long organizationId, boolean useFinderCache) Returns the account entry organization rel where accountEntryId = ? and organizationId = ? or returnsnull
if it could not be found, optionally using the finder cache.static AccountEntryOrganizationRel
fetchByAccountEntryId_First
(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns the first account entry organization rel in the ordered set where accountEntryId = ?.static AccountEntryOrganizationRel
fetchByAccountEntryId_Last
(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns the last account entry organization rel in the ordered set where accountEntryId = ?.static AccountEntryOrganizationRel
fetchByOrganizationId_First
(long organizationId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns the first account entry organization rel in the ordered set where organizationId = ?.static AccountEntryOrganizationRel
fetchByOrganizationId_Last
(long organizationId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns the last account entry organization rel in the ordered set where organizationId = ?.static AccountEntryOrganizationRel
fetchByPrimaryKey
(long accountEntryOrganizationRelId) Returns the account entry organization rel with the primary key or returnsnull
if it could not be found.fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<AccountEntryOrganizationRel>
findAll()
Returns all the account entry organization rels.static List<AccountEntryOrganizationRel>
findAll
(int start, int end) Returns a range of all the account entry organization rels.static List<AccountEntryOrganizationRel>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns an ordered range of all the account entry organization rels.static List<AccountEntryOrganizationRel>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the account entry organization rels.static AccountEntryOrganizationRel
findByA_O
(long accountEntryId, long organizationId) Returns the account entry organization rel where accountEntryId = ? and organizationId = ? or throws aNoSuchEntryOrganizationRelException
if it could not be found.static List<AccountEntryOrganizationRel>
findByAccountEntryId
(long accountEntryId) Returns all the account entry organization rels where accountEntryId = ?.static List<AccountEntryOrganizationRel>
findByAccountEntryId
(long accountEntryId, int start, int end) Returns a range of all the account entry organization rels where accountEntryId = ?.static List<AccountEntryOrganizationRel>
findByAccountEntryId
(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns an ordered range of all the account entry organization rels where accountEntryId = ?.static List<AccountEntryOrganizationRel>
findByAccountEntryId
(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the account entry organization rels where accountEntryId = ?.static AccountEntryOrganizationRel
findByAccountEntryId_First
(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns the first account entry organization rel in the ordered set where accountEntryId = ?.static AccountEntryOrganizationRel
findByAccountEntryId_Last
(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns the last account entry organization rel in the ordered set where accountEntryId = ?.static AccountEntryOrganizationRel[]
findByAccountEntryId_PrevAndNext
(long accountEntryOrganizationRelId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns the account entry organization rels before and after the current account entry organization rel in the ordered set where accountEntryId = ?.static List<AccountEntryOrganizationRel>
findByOrganizationId
(long organizationId) Returns all the account entry organization rels where organizationId = ?.static List<AccountEntryOrganizationRel>
findByOrganizationId
(long organizationId, int start, int end) Returns a range of all the account entry organization rels where organizationId = ?.static List<AccountEntryOrganizationRel>
findByOrganizationId
(long organizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns an ordered range of all the account entry organization rels where organizationId = ?.static List<AccountEntryOrganizationRel>
findByOrganizationId
(long organizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the account entry organization rels where organizationId = ?.static AccountEntryOrganizationRel
findByOrganizationId_First
(long organizationId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns the first account entry organization rel in the ordered set where organizationId = ?.static AccountEntryOrganizationRel
findByOrganizationId_Last
(long organizationId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns the last account entry organization rel in the ordered set where organizationId = ?.static AccountEntryOrganizationRel[]
findByOrganizationId_PrevAndNext
(long accountEntryOrganizationRelId, long organizationId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns the account entry organization rels before and after the current account entry organization rel in the ordered set where organizationId = ?.static AccountEntryOrganizationRel
findByPrimaryKey
(long accountEntryOrganizationRelId) Returns the account entry organization rel with the primary key or throws aNoSuchEntryOrganizationRelException
if it could not be found.static List<AccountEntryOrganizationRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<AccountEntryOrganizationRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<AccountEntryOrganizationRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) static AccountEntryOrganizationRel
remove
(long accountEntryOrganizationRelId) Removes the account entry organization rel with the primary key from the database.static void
Removes all the account entry organization rels from the database.static AccountEntryOrganizationRel
removeByA_O
(long accountEntryId, long organizationId) Removes the account entry organization rel where accountEntryId = ? and organizationId = ? from the database.static void
removeByAccountEntryId
(long accountEntryId) Removes all the account entry organization rels where accountEntryId = ? from the database.static void
removeByOrganizationId
(long organizationId) Removes all the account entry organization rels where organizationId = ? from the database.static void
setPersistence
(AccountEntryOrganizationRelPersistence persistence) static AccountEntryOrganizationRel
update
(AccountEntryOrganizationRel accountEntryOrganizationRel) static AccountEntryOrganizationRel
update
(AccountEntryOrganizationRel accountEntryOrganizationRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) static AccountEntryOrganizationRel
updateImpl
(AccountEntryOrganizationRel accountEntryOrganizationRel)
-
Constructor Details
-
AccountEntryOrganizationRelUtil
public AccountEntryOrganizationRelUtil()
-
-
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
public static Map<Serializable,AccountEntryOrganizationRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<AccountEntryOrganizationRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<AccountEntryOrganizationRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<AccountEntryOrganizationRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static AccountEntryOrganizationRel update(AccountEntryOrganizationRel accountEntryOrganizationRel) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static AccountEntryOrganizationRel update(AccountEntryOrganizationRel accountEntryOrganizationRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByAccountEntryId
Returns all the account entry organization rels where accountEntryId = ?.- Parameters:
accountEntryId
- the account entry ID- Returns:
- the matching account entry organization rels
-
findByAccountEntryId
public static List<AccountEntryOrganizationRel> findByAccountEntryId(long accountEntryId, int start, int end) Returns a range of all the account entry organization rels where accountEntryId = ?.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 fromAccountEntryOrganizationRelModelImpl
.- Parameters:
accountEntryId
- the account entry IDstart
- the lower bound of the range of account entry organization relsend
- the upper bound of the range of account entry organization rels (not inclusive)- Returns:
- the range of matching account entry organization rels
-
findByAccountEntryId
public static List<AccountEntryOrganizationRel> findByAccountEntryId(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns an ordered range of all the account entry organization rels where accountEntryId = ?.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 fromAccountEntryOrganizationRelModelImpl
.- Parameters:
accountEntryId
- the account entry IDstart
- the lower bound of the range of account entry organization relsend
- the upper bound of the range of account entry organization rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching account entry organization rels
-
findByAccountEntryId
public static List<AccountEntryOrganizationRel> findByAccountEntryId(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the account entry organization rels where accountEntryId = ?.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 fromAccountEntryOrganizationRelModelImpl
.- Parameters:
accountEntryId
- the account entry IDstart
- the lower bound of the range of account entry organization relsend
- the upper bound of the range of account entry organization rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching account entry organization rels
-
findByAccountEntryId_First
public static AccountEntryOrganizationRel findByAccountEntryId_First(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) throws NoSuchEntryOrganizationRelException Returns the first account entry organization rel in the ordered set where accountEntryId = ?.- Parameters:
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching account entry organization rel
- Throws:
NoSuchEntryOrganizationRelException
- if a matching account entry organization rel could not be foundNoSuchEntryOrganizationRelException
-
fetchByAccountEntryId_First
public static AccountEntryOrganizationRel fetchByAccountEntryId_First(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns the first account entry organization rel in the ordered set where accountEntryId = ?.- Parameters:
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching account entry organization rel, or
null
if a matching account entry organization rel could not be found
-
findByAccountEntryId_Last
public static AccountEntryOrganizationRel findByAccountEntryId_Last(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) throws NoSuchEntryOrganizationRelException Returns the last account entry organization rel in the ordered set where accountEntryId = ?.- Parameters:
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching account entry organization rel
- Throws:
NoSuchEntryOrganizationRelException
- if a matching account entry organization rel could not be foundNoSuchEntryOrganizationRelException
-
fetchByAccountEntryId_Last
public static AccountEntryOrganizationRel fetchByAccountEntryId_Last(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns the last account entry organization rel in the ordered set where accountEntryId = ?.- Parameters:
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching account entry organization rel, or
null
if a matching account entry organization rel could not be found
-
findByAccountEntryId_PrevAndNext
public static AccountEntryOrganizationRel[] findByAccountEntryId_PrevAndNext(long accountEntryOrganizationRelId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) throws NoSuchEntryOrganizationRelException Returns the account entry organization rels before and after the current account entry organization rel in the ordered set where accountEntryId = ?.- Parameters:
accountEntryOrganizationRelId
- the primary key of the current account entry organization relaccountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next account entry organization rel
- Throws:
NoSuchEntryOrganizationRelException
- if a account entry organization rel with the primary key could not be foundNoSuchEntryOrganizationRelException
-
removeByAccountEntryId
public static void removeByAccountEntryId(long accountEntryId) Removes all the account entry organization 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 organization rels where accountEntryId = ?.- Parameters:
accountEntryId
- the account entry ID- Returns:
- the number of matching account entry organization rels
-
findByOrganizationId
Returns all the account entry organization rels where organizationId = ?.- Parameters:
organizationId
- the organization ID- Returns:
- the matching account entry organization rels
-
findByOrganizationId
public static List<AccountEntryOrganizationRel> findByOrganizationId(long organizationId, int start, int end) Returns a range of all the account entry organization rels where organizationId = ?.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 fromAccountEntryOrganizationRelModelImpl
.- Parameters:
organizationId
- the organization IDstart
- the lower bound of the range of account entry organization relsend
- the upper bound of the range of account entry organization rels (not inclusive)- Returns:
- the range of matching account entry organization rels
-
findByOrganizationId
public static List<AccountEntryOrganizationRel> findByOrganizationId(long organizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns an ordered range of all the account entry organization rels where organizationId = ?.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 fromAccountEntryOrganizationRelModelImpl
.- Parameters:
organizationId
- the organization IDstart
- the lower bound of the range of account entry organization relsend
- the upper bound of the range of account entry organization rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching account entry organization rels
-
findByOrganizationId
public static List<AccountEntryOrganizationRel> findByOrganizationId(long organizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the account entry organization rels where organizationId = ?.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 fromAccountEntryOrganizationRelModelImpl
.- Parameters:
organizationId
- the organization IDstart
- the lower bound of the range of account entry organization relsend
- the upper bound of the range of account entry organization rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching account entry organization rels
-
findByOrganizationId_First
public static AccountEntryOrganizationRel findByOrganizationId_First(long organizationId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) throws NoSuchEntryOrganizationRelException Returns the first account entry organization rel in the ordered set where organizationId = ?.- Parameters:
organizationId
- the organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching account entry organization rel
- Throws:
NoSuchEntryOrganizationRelException
- if a matching account entry organization rel could not be foundNoSuchEntryOrganizationRelException
-
fetchByOrganizationId_First
public static AccountEntryOrganizationRel fetchByOrganizationId_First(long organizationId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns the first account entry organization rel in the ordered set where organizationId = ?.- Parameters:
organizationId
- the organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching account entry organization rel, or
null
if a matching account entry organization rel could not be found
-
findByOrganizationId_Last
public static AccountEntryOrganizationRel findByOrganizationId_Last(long organizationId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) throws NoSuchEntryOrganizationRelException Returns the last account entry organization rel in the ordered set where organizationId = ?.- Parameters:
organizationId
- the organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching account entry organization rel
- Throws:
NoSuchEntryOrganizationRelException
- if a matching account entry organization rel could not be foundNoSuchEntryOrganizationRelException
-
fetchByOrganizationId_Last
public static AccountEntryOrganizationRel fetchByOrganizationId_Last(long organizationId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns the last account entry organization rel in the ordered set where organizationId = ?.- Parameters:
organizationId
- the organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching account entry organization rel, or
null
if a matching account entry organization rel could not be found
-
findByOrganizationId_PrevAndNext
public static AccountEntryOrganizationRel[] findByOrganizationId_PrevAndNext(long accountEntryOrganizationRelId, long organizationId, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) throws NoSuchEntryOrganizationRelException Returns the account entry organization rels before and after the current account entry organization rel in the ordered set where organizationId = ?.- Parameters:
accountEntryOrganizationRelId
- the primary key of the current account entry organization relorganizationId
- the organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next account entry organization rel
- Throws:
NoSuchEntryOrganizationRelException
- if a account entry organization rel with the primary key could not be foundNoSuchEntryOrganizationRelException
-
removeByOrganizationId
public static void removeByOrganizationId(long organizationId) Removes all the account entry organization rels where organizationId = ? from the database.- Parameters:
organizationId
- the organization ID
-
countByOrganizationId
public static int countByOrganizationId(long organizationId) Returns the number of account entry organization rels where organizationId = ?.- Parameters:
organizationId
- the organization ID- Returns:
- the number of matching account entry organization rels
-
findByA_O
public static AccountEntryOrganizationRel findByA_O(long accountEntryId, long organizationId) throws NoSuchEntryOrganizationRelException Returns the account entry organization rel where accountEntryId = ? and organizationId = ? or throws aNoSuchEntryOrganizationRelException
if it could not be found.- Parameters:
accountEntryId
- the account entry IDorganizationId
- the organization ID- Returns:
- the matching account entry organization rel
- Throws:
NoSuchEntryOrganizationRelException
- if a matching account entry organization rel could not be foundNoSuchEntryOrganizationRelException
-
fetchByA_O
Returns the account entry organization rel where accountEntryId = ? and organizationId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
accountEntryId
- the account entry IDorganizationId
- the organization ID- Returns:
- the matching account entry organization rel, or
null
if a matching account entry organization rel could not be found
-
fetchByA_O
public static AccountEntryOrganizationRel fetchByA_O(long accountEntryId, long organizationId, boolean useFinderCache) Returns the account entry organization rel where accountEntryId = ? and organizationId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
accountEntryId
- the account entry IDorganizationId
- the organization IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching account entry organization rel, or
null
if a matching account entry organization rel could not be found
-
removeByA_O
public static AccountEntryOrganizationRel removeByA_O(long accountEntryId, long organizationId) throws NoSuchEntryOrganizationRelException Removes the account entry organization rel where accountEntryId = ? and organizationId = ? from the database.- Parameters:
accountEntryId
- the account entry IDorganizationId
- the organization ID- Returns:
- the account entry organization rel that was removed
- Throws:
NoSuchEntryOrganizationRelException
-
countByA_O
public static int countByA_O(long accountEntryId, long organizationId) Returns the number of account entry organization rels where accountEntryId = ? and organizationId = ?.- Parameters:
accountEntryId
- the account entry IDorganizationId
- the organization ID- Returns:
- the number of matching account entry organization rels
-
cacheResult
Caches the account entry organization rel in the entity cache if it is enabled.- Parameters:
accountEntryOrganizationRel
- the account entry organization rel
-
cacheResult
Caches the account entry organization rels in the entity cache if it is enabled.- Parameters:
accountEntryOrganizationRels
- the account entry organization rels
-
create
Creates a new account entry organization rel with the primary key. Does not add the account entry organization rel to the database.- Parameters:
accountEntryOrganizationRelId
- the primary key for the new account entry organization rel- Returns:
- the new account entry organization rel
-
remove
public static AccountEntryOrganizationRel remove(long accountEntryOrganizationRelId) throws NoSuchEntryOrganizationRelException Removes the account entry organization rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
accountEntryOrganizationRelId
- the primary key of the account entry organization rel- Returns:
- the account entry organization rel that was removed
- Throws:
NoSuchEntryOrganizationRelException
- if a account entry organization rel with the primary key could not be foundNoSuchEntryOrganizationRelException
-
updateImpl
public static AccountEntryOrganizationRel updateImpl(AccountEntryOrganizationRel accountEntryOrganizationRel) -
findByPrimaryKey
public static AccountEntryOrganizationRel findByPrimaryKey(long accountEntryOrganizationRelId) throws NoSuchEntryOrganizationRelException Returns the account entry organization rel with the primary key or throws aNoSuchEntryOrganizationRelException
if it could not be found.- Parameters:
accountEntryOrganizationRelId
- the primary key of the account entry organization rel- Returns:
- the account entry organization rel
- Throws:
NoSuchEntryOrganizationRelException
- if a account entry organization rel with the primary key could not be foundNoSuchEntryOrganizationRelException
-
fetchByPrimaryKey
Returns the account entry organization rel with the primary key or returnsnull
if it could not be found.- Parameters:
accountEntryOrganizationRelId
- the primary key of the account entry organization rel- Returns:
- the account entry organization rel, or
null
if a account entry organization rel with the primary key could not be found
-
findAll
Returns all the account entry organization rels.- Returns:
- the account entry organization rels
-
findAll
Returns a range of all the account entry organization rels.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 fromAccountEntryOrganizationRelModelImpl
.- Parameters:
start
- the lower bound of the range of account entry organization relsend
- the upper bound of the range of account entry organization rels (not inclusive)- Returns:
- the range of account entry organization rels
-
findAll
public static List<AccountEntryOrganizationRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator) Returns an ordered range of all the account entry organization rels.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 fromAccountEntryOrganizationRelModelImpl
.- Parameters:
start
- the lower bound of the range of account entry organization relsend
- the upper bound of the range of account entry organization rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of account entry organization rels
-
findAll
public static List<AccountEntryOrganizationRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountEntryOrganizationRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the account entry organization rels.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 fromAccountEntryOrganizationRelModelImpl
.- Parameters:
start
- the lower bound of the range of account entry organization relsend
- the upper bound of the range of account entry organization rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of account entry organization rels
-
removeAll
public static void removeAll()Removes all the account entry organization rels from the database. -
countAll
public static int countAll()Returns the number of account entry organization rels.- Returns:
- the number of account entry organization rels
-
getPersistence
-
setPersistence
-