Interface AudiencesEntryPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<AudiencesEntry>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByC_LikeN(long companyId, String name) Returns the number of audiences entries where companyId = ? and name LIKE ?.intcountByCompanyId(long companyId) Returns the number of audiences entries where companyId = ?.intcountByERC_C(String externalReferenceCode, long companyId) Returns the number of audiences entries where externalReferenceCode = ? and companyId = ?.create(long audiencesEntryId) Creates a new audiences entry with the primary key.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 ?.fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) Returns the first audiences entry in the ordered set where companyId = ?.default AudiencesEntryfetchByERC_C(String externalReferenceCode, long companyId) Returns the audiences entry where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found.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.fetchByPrimaryKey(long audiencesEntryId) Returns the audiences entry with the primary key or returnsnullif it could not be found.findByC_LikeN(long companyId, String name) Returns all the audiences entries where companyId = ? and name LIKE ?.findByC_LikeN(long companyId, String name, int start, int end) Returns a range of all the audiences entries where companyId = ? and name LIKE ?.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 ?.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 ?.findByC_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 ?.default List<AudiencesEntry> findByCompanyId(long companyId) Returns all the audiences entries where companyId = ?.default List<AudiencesEntry> findByCompanyId(long companyId, int start, int end) Returns a range of all the audiences entries where companyId = ?.default 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 = ?.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 = ?.findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) Returns the first audiences entry in the ordered set where companyId = ?.findByERC_C(String externalReferenceCode, long companyId) Returns the audiences entry where externalReferenceCode = ? and companyId = ? or throws aNoSuchAudiencesEntryExceptionif it could not be found.findByPrimaryKey(long audiencesEntryId) Returns the audiences entry with the primary key or throws aNoSuchAudiencesEntryExceptionif it could not be found.remove(long audiencesEntryId) Removes the audiences entry with the primary key from the database.voidremoveByC_LikeN(long companyId, String name) Removes all the audiences entries where companyId = ? and name LIKE ? from the database.voidremoveByCompanyId(long companyId) Removes all the audiences entries where companyId = ? from the database.removeByERC_C(String externalReferenceCode, long companyId) Removes the audiences entry where externalReferenceCode = ? and companyId = ? from the database.updateImpl(AudiencesEntry audiencesEntry) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByCompanyId
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
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
- Throws:
NoSuchAudiencesEntryException- if a matching audiences entry could not be found
-
fetchByCompanyId_First
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
void removeByCompanyId(long companyId) Removes all the audiences entries where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
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
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
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
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
- Throws:
NoSuchAudiencesEntryException- if a matching audiences entry could not be found
-
fetchByC_LikeN_First
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
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
- Throws:
NoSuchAudiencesEntryException- if a matching audiences entry could not be found
-
fetchByERC_C
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
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
- Throws:
NoSuchAudiencesEntryException- if a audiences entry with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
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
- Throws:
NoSuchAudiencesEntryException- if a audiences entry with the primary key could not be found
-
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
default 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
-