Class AudiencesEntryUtil
com.liferay.audiences.service.persistence.impl.AudiencesEntryPersistenceImpl 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 voidcacheResult(AudiencesEntry audiencesEntry) static voidcacheResult(List<AudiencesEntry> audiencesEntries) static voidstatic voidclearCache(AudiencesEntry audiencesEntry) static intcountByC_LikeN(long companyId, String name) Returns the number of audiences entries where companyId = ? and name LIKE ?.static intcountByCompanyId(long companyId) Returns the number of audiences entries where companyId = ?.static intcountByERC_C(String externalReferenceCode, long companyId) Returns the number of audiences entries where externalReferenceCode = ? and companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static AudiencesEntrycreate(long audiencesEntryId) Creates a new audiences entry with the primary key.static AudiencesEntryfetchByC_LikeN_First(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) Returns the first audiences entry in the ordered set where companyId = ? and name LIKE ?.static AudiencesEntryfetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) Returns the first audiences entry in the ordered set where companyId = ?.static AudiencesEntryfetchByERC_C(String externalReferenceCode, long companyId) Returns the audiences entry where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found.static AudiencesEntryfetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the audiences entry where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.static AudiencesEntryfetchByPrimaryKey(long audiencesEntryId) Returns the audiences entry with the primary key or returnsnullif it could not be found.static Map<Serializable, AudiencesEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<AudiencesEntry> findByC_LikeN(long companyId, String name) Returns all the audiences entries where companyId = ? and name LIKE ?.static List<AudiencesEntry> findByC_LikeN(long companyId, String name, int start, int end) Returns a range of all the audiences entries where companyId = ? and name LIKE ?.static List<AudiencesEntry> findByC_LikeN(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) Returns an ordered range of all the audiences entries where companyId = ? and name LIKE ?.static List<AudiencesEntry> findByC_LikeN(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the audiences entries where companyId = ? and name LIKE ?.static AudiencesEntryfindByC_LikeN_First(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) Returns the first audiences entry in the ordered set where companyId = ? and name LIKE ?.static List<AudiencesEntry> findByCompanyId(long companyId) Returns all the audiences entries where companyId = ?.static List<AudiencesEntry> findByCompanyId(long companyId, int start, int end) Returns a range of all the audiences entries where companyId = ?.static List<AudiencesEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) Returns an ordered range of all the audiences entries where companyId = ?.static List<AudiencesEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the audiences entries where companyId = ?.static AudiencesEntryfindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) Returns the first audiences entry in the ordered set where companyId = ?.static AudiencesEntryfindByERC_C(String externalReferenceCode, long companyId) Returns the audiences entry where externalReferenceCode = ? and companyId = ? or throws aNoSuchAudiencesEntryExceptionif it could not be found.static AudiencesEntryfindByPrimaryKey(long audiencesEntryId) Returns the audiences entry with the primary key or throws aNoSuchAudiencesEntryExceptionif it could not be found.static List<AudiencesEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<AudiencesEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<AudiencesEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) static AudiencesEntryPersistencestatic AudiencesEntryremove(long audiencesEntryId) Removes the audiences entry with the primary key from the database.static voidremoveByC_LikeN(long companyId, String name) Removes all the audiences entries where companyId = ? and name LIKE ? from the database.static voidremoveByCompanyId(long companyId) Removes all the audiences entries where companyId = ? from the database.static AudiencesEntryremoveByERC_C(String externalReferenceCode, long companyId) Removes the audiences entry where externalReferenceCode = ? and companyId = ? from the database.static voidsetPersistence(AudiencesEntryPersistence persistence) static AudiencesEntryupdate(AudiencesEntry audiencesEntry) static AudiencesEntryupdate(AudiencesEntry audiencesEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) static AudiencesEntryupdateImpl(AudiencesEntry audiencesEntry)
-
Constructor Details
-
AudiencesEntryUtil
public AudiencesEntryUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
public static List<AudiencesEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<AudiencesEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<AudiencesEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static AudiencesEntry update(AudiencesEntry audiencesEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByCompanyId
public static List<AudiencesEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the audiences entries where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.audiences.model.impl.AudiencesEntryModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of audiences entriesend- the upper bound of the range of audiences entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching audiences entries
-
findByCompanyId_First
public static AudiencesEntry findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) throws NoSuchAudiencesEntryException Returns the first audiences entry in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching audiences entry
-
fetchByCompanyId_First
public static AudiencesEntry fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) Returns the first audiences entry in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching audiences entry, or
nullif a matching audiences entry could not be found
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the audiences entries where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of audiences entries where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching audiences entries
-
findByC_LikeN
Returns all the audiences entries where companyId = ? and name LIKE ?.- Parameters:
companyId- the company IDname- the name- Returns:
- the matching audiences entries
-
findByC_LikeN
Returns a range of all the audiences entries where companyId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.audiences.model.impl.AudiencesEntryModelImpl.- Parameters:
companyId- the company IDname- the namestart- the lower bound of the range of audiences entriesend- the upper bound of the range of audiences entries (not inclusive)- Returns:
- the range of matching audiences entries
-
findByC_LikeN
public static List<AudiencesEntry> findByC_LikeN(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) Returns an ordered range of all the audiences entries where companyId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.audiences.model.impl.AudiencesEntryModelImpl.- Parameters:
companyId- the company IDname- the namestart- the lower bound of the range of audiences entriesend- the upper bound of the range of audiences entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching audiences entries
-
findByC_LikeN
public static List<AudiencesEntry> findByC_LikeN(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the audiences entries where companyId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.audiences.model.impl.AudiencesEntryModelImpl.- Parameters:
companyId- the company IDname- the namestart- the lower bound of the range of audiences entriesend- the upper bound of the range of audiences entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching audiences entries
-
findByC_LikeN_First
public static AudiencesEntry findByC_LikeN_First(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) throws NoSuchAudiencesEntryException Returns the first audiences entry in the ordered set where companyId = ? and name LIKE ?.- Parameters:
companyId- the company IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching audiences entry
-
fetchByC_LikeN_First
public static AudiencesEntry fetchByC_LikeN_First(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) Returns the first audiences entry in the ordered set where companyId = ? and name LIKE ?.- Parameters:
companyId- the company IDname- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching audiences entry, or
nullif a matching audiences entry could not be found
-
removeByC_LikeN
Removes all the audiences entries where companyId = ? and name LIKE ? from the database.- Parameters:
companyId- the company IDname- the name
-
countByC_LikeN
Returns the number of audiences entries where companyId = ? and name LIKE ?.- Parameters:
companyId- the company IDname- the name- Returns:
- the number of matching audiences entries
-
findByERC_C
public static AudiencesEntry findByERC_C(String externalReferenceCode, long companyId) throws NoSuchAudiencesEntryException Returns the audiences entry where externalReferenceCode = ? and companyId = ? or throws aNoSuchAudiencesEntryExceptionif it could not be found.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching audiences entry
-
fetchByERC_C
public static AudiencesEntry fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the audiences entry where externalReferenceCode = ? and companyId = ? or returnsnullif 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 audiences entry, or
nullif a matching audiences entry could not be found
-
removeByERC_C
public static AudiencesEntry removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchAudiencesEntryException Removes the audiences entry where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the audiences entry that was removed
- Throws:
NoSuchAudiencesEntryException
-
countByERC_C
Returns the number of audiences entries where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the number of matching audiences entries
-
create
Creates a new audiences entry with the primary key. Does not add the audiences entry to the database.- Parameters:
audiencesEntryId- the primary key for the new audiences entry- Returns:
- the new audiences entry
-
remove
Removes the audiences entry with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
audiencesEntryId- the primary key of the audiences entry- Returns:
- the audiences entry that was removed
-
updateImpl
-
findByPrimaryKey
public static AudiencesEntry findByPrimaryKey(long audiencesEntryId) throws NoSuchAudiencesEntryException Returns the audiences entry with the primary key or throws aNoSuchAudiencesEntryExceptionif it could not be found.- Parameters:
audiencesEntryId- the primary key of the audiences entry- Returns:
- the audiences entry
-
fetchByPrimaryKey
Returns the audiences entry with the primary key or returnsnullif it could not be found.- Parameters:
audiencesEntryId- the primary key of the audiences entry- Returns:
- the audiences entry, or
nullif a audiences entry with the primary key could not be found
-
fetchByERC_C
Returns the audiences entry where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching audiences entry, or
nullif a matching audiences entry could not be found
-
findByCompanyId
Returns all the audiences entries where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching audiences entries
-
findByCompanyId
Returns a range of all the audiences entries where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.audiences.model.impl.AudiencesEntryModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of audiences entriesend- the upper bound of the range of audiences entries (not inclusive)- Returns:
- the range of matching audiences entries
-
findByCompanyId
public static List<AudiencesEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) Returns an ordered range of all the audiences entries where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.audiences.model.impl.AudiencesEntryModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of audiences entriesend- the upper bound of the range of audiences entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching audiences entries
-
getPersistence
-
setPersistence
-