Interface AnnouncementsDeliveryPersistence
- All Superinterfaces:
BasePersistence<AnnouncementsDelivery>
,CTPersistence<AnnouncementsDelivery>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(AnnouncementsDelivery announcementsDelivery) Caches the announcements delivery in the entity cache if it is enabled.void
cacheResult
(List<AnnouncementsDelivery> announcementsDeliveries) Caches the announcements deliveries in the entity cache if it is enabled.int
countAll()
Returns the number of announcements deliveries.int
countByCompanyId
(long companyId) Returns the number of announcements deliveries where companyId = ?.int
countByU_T
(long userId, String type) Returns the number of announcements deliveries where userId = ? and type = ?.int
countByUserId
(long userId) Returns the number of announcements deliveries where userId = ?.create
(long deliveryId) Creates a new announcements delivery with the primary key.fetchByCompanyId_First
(long companyId, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns the first announcements delivery in the ordered set where companyId = ?.fetchByCompanyId_Last
(long companyId, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns the last announcements delivery in the ordered set where companyId = ?.fetchByPrimaryKey
(long deliveryId) Returns the announcements delivery with the primary key or returnsnull
if it could not be found.fetchByU_T
(long userId, String type) Returns the announcements delivery where userId = ? and type = ? or returnsnull
if it could not be found.fetchByU_T
(long userId, String type, boolean useFinderCache) Returns the announcements delivery where userId = ? and type = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByUserId_First
(long userId, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns the first announcements delivery in the ordered set where userId = ?.fetchByUserId_Last
(long userId, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns the last announcements delivery in the ordered set where userId = ?.findAll()
Returns all the announcements deliveries.findAll
(int start, int end) Returns a range of all the announcements deliveries.findAll
(int start, int end, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns an ordered range of all the announcements deliveries.findAll
(int start, int end, OrderByComparator<AnnouncementsDelivery> orderByComparator, boolean useFinderCache) Returns an ordered range of all the announcements deliveries.findByCompanyId
(long companyId) Returns all the announcements deliveries where companyId = ?.findByCompanyId
(long companyId, int start, int end) Returns a range of all the announcements deliveries where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns an ordered range of all the announcements deliveries where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<AnnouncementsDelivery> orderByComparator, boolean useFinderCache) Returns an ordered range of all the announcements deliveries where companyId = ?.findByCompanyId_First
(long companyId, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns the first announcements delivery in the ordered set where companyId = ?.findByCompanyId_Last
(long companyId, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns the last announcements delivery in the ordered set where companyId = ?.findByCompanyId_PrevAndNext
(long deliveryId, long companyId, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns the announcements deliveries before and after the current announcements delivery in the ordered set where companyId = ?.findByPrimaryKey
(long deliveryId) Returns the announcements delivery with the primary key or throws aNoSuchDeliveryException
if it could not be found.Returns the announcements delivery where userId = ? and type = ? or throws aNoSuchDeliveryException
if it could not be found.findByUserId
(long userId) Returns all the announcements deliveries where userId = ?.findByUserId
(long userId, int start, int end) Returns a range of all the announcements deliveries where userId = ?.findByUserId
(long userId, int start, int end, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns an ordered range of all the announcements deliveries where userId = ?.findByUserId
(long userId, int start, int end, OrderByComparator<AnnouncementsDelivery> orderByComparator, boolean useFinderCache) Returns an ordered range of all the announcements deliveries where userId = ?.findByUserId_First
(long userId, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns the first announcements delivery in the ordered set where userId = ?.findByUserId_Last
(long userId, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns the last announcements delivery in the ordered set where userId = ?.findByUserId_PrevAndNext
(long deliveryId, long userId, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns the announcements deliveries before and after the current announcements delivery in the ordered set where userId = ?.remove
(long deliveryId) Removes the announcements delivery with the primary key from the database.void
Removes all the announcements deliveries from the database.void
removeByCompanyId
(long companyId) Removes all the announcements deliveries where companyId = ? from the database.removeByU_T
(long userId, String type) Removes the announcements delivery where userId = ? and type = ? from the database.void
removeByUserId
(long userId) Removes all the announcements deliveries where userId = ? from the database.updateImpl
(AnnouncementsDelivery announcementsDelivery) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByCompanyId
Returns all the announcements deliveries where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching announcements deliveries
-
findByCompanyId
Returns a range of all the announcements deliveries where companyId = ?.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 fromAnnouncementsDeliveryModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of announcements deliveriesend
- the upper bound of the range of announcements deliveries (not inclusive)- Returns:
- the range of matching announcements deliveries
-
findByCompanyId
List<AnnouncementsDelivery> findByCompanyId(long companyId, int start, int end, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns an ordered range of all the announcements deliveries where companyId = ?.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 fromAnnouncementsDeliveryModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of announcements deliveriesend
- the upper bound of the range of announcements deliveries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching announcements deliveries
-
findByCompanyId
List<AnnouncementsDelivery> findByCompanyId(long companyId, int start, int end, OrderByComparator<AnnouncementsDelivery> orderByComparator, boolean useFinderCache) Returns an ordered range of all the announcements deliveries where companyId = ?.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 fromAnnouncementsDeliveryModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of announcements deliveriesend
- the upper bound of the range of announcements deliveries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching announcements deliveries
-
findByCompanyId_First
AnnouncementsDelivery findByCompanyId_First(long companyId, OrderByComparator<AnnouncementsDelivery> orderByComparator) throws NoSuchDeliveryException Returns the first announcements delivery in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching announcements delivery
- Throws:
NoSuchDeliveryException
- if a matching announcements delivery could not be found
-
fetchByCompanyId_First
AnnouncementsDelivery fetchByCompanyId_First(long companyId, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns the first announcements delivery in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching announcements delivery, or
null
if a matching announcements delivery could not be found
-
findByCompanyId_Last
AnnouncementsDelivery findByCompanyId_Last(long companyId, OrderByComparator<AnnouncementsDelivery> orderByComparator) throws NoSuchDeliveryException Returns the last announcements delivery in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching announcements delivery
- Throws:
NoSuchDeliveryException
- if a matching announcements delivery could not be found
-
fetchByCompanyId_Last
AnnouncementsDelivery fetchByCompanyId_Last(long companyId, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns the last announcements delivery in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching announcements delivery, or
null
if a matching announcements delivery could not be found
-
findByCompanyId_PrevAndNext
AnnouncementsDelivery[] findByCompanyId_PrevAndNext(long deliveryId, long companyId, OrderByComparator<AnnouncementsDelivery> orderByComparator) throws NoSuchDeliveryException Returns the announcements deliveries before and after the current announcements delivery in the ordered set where companyId = ?.- Parameters:
deliveryId
- the primary key of the current announcements deliverycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next announcements delivery
- Throws:
NoSuchDeliveryException
- if a announcements delivery with the primary key could not be found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the announcements deliveries where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of announcements deliveries where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching announcements deliveries
-
findByUserId
Returns all the announcements deliveries where userId = ?.- Parameters:
userId
- the user ID- Returns:
- the matching announcements deliveries
-
findByUserId
Returns a range of all the announcements deliveries where userId = ?.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 fromAnnouncementsDeliveryModelImpl
.- Parameters:
userId
- the user IDstart
- the lower bound of the range of announcements deliveriesend
- the upper bound of the range of announcements deliveries (not inclusive)- Returns:
- the range of matching announcements deliveries
-
findByUserId
List<AnnouncementsDelivery> findByUserId(long userId, int start, int end, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns an ordered range of all the announcements deliveries where userId = ?.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 fromAnnouncementsDeliveryModelImpl
.- Parameters:
userId
- the user IDstart
- the lower bound of the range of announcements deliveriesend
- the upper bound of the range of announcements deliveries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching announcements deliveries
-
findByUserId
List<AnnouncementsDelivery> findByUserId(long userId, int start, int end, OrderByComparator<AnnouncementsDelivery> orderByComparator, boolean useFinderCache) Returns an ordered range of all the announcements deliveries where userId = ?.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 fromAnnouncementsDeliveryModelImpl
.- Parameters:
userId
- the user IDstart
- the lower bound of the range of announcements deliveriesend
- the upper bound of the range of announcements deliveries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching announcements deliveries
-
findByUserId_First
AnnouncementsDelivery findByUserId_First(long userId, OrderByComparator<AnnouncementsDelivery> orderByComparator) throws NoSuchDeliveryException Returns the first announcements delivery in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching announcements delivery
- Throws:
NoSuchDeliveryException
- if a matching announcements delivery could not be found
-
fetchByUserId_First
AnnouncementsDelivery fetchByUserId_First(long userId, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns the first announcements delivery in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching announcements delivery, or
null
if a matching announcements delivery could not be found
-
findByUserId_Last
AnnouncementsDelivery findByUserId_Last(long userId, OrderByComparator<AnnouncementsDelivery> orderByComparator) throws NoSuchDeliveryException Returns the last announcements delivery in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching announcements delivery
- Throws:
NoSuchDeliveryException
- if a matching announcements delivery could not be found
-
fetchByUserId_Last
AnnouncementsDelivery fetchByUserId_Last(long userId, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns the last announcements delivery in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching announcements delivery, or
null
if a matching announcements delivery could not be found
-
findByUserId_PrevAndNext
AnnouncementsDelivery[] findByUserId_PrevAndNext(long deliveryId, long userId, OrderByComparator<AnnouncementsDelivery> orderByComparator) throws NoSuchDeliveryException Returns the announcements deliveries before and after the current announcements delivery in the ordered set where userId = ?.- Parameters:
deliveryId
- the primary key of the current announcements deliveryuserId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next announcements delivery
- Throws:
NoSuchDeliveryException
- if a announcements delivery with the primary key could not be found
-
removeByUserId
void removeByUserId(long userId) Removes all the announcements deliveries where userId = ? from the database.- Parameters:
userId
- the user ID
-
countByUserId
int countByUserId(long userId) Returns the number of announcements deliveries where userId = ?.- Parameters:
userId
- the user ID- Returns:
- the number of matching announcements deliveries
-
findByU_T
Returns the announcements delivery where userId = ? and type = ? or throws aNoSuchDeliveryException
if it could not be found.- Parameters:
userId
- the user IDtype
- the type- Returns:
- the matching announcements delivery
- Throws:
NoSuchDeliveryException
- if a matching announcements delivery could not be found
-
fetchByU_T
Returns the announcements delivery where userId = ? and type = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
userId
- the user IDtype
- the type- Returns:
- the matching announcements delivery, or
null
if a matching announcements delivery could not be found
-
fetchByU_T
Returns the announcements delivery where userId = ? and type = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
userId
- the user IDtype
- the typeuseFinderCache
- whether to use the finder cache- Returns:
- the matching announcements delivery, or
null
if a matching announcements delivery could not be found
-
removeByU_T
Removes the announcements delivery where userId = ? and type = ? from the database.- Parameters:
userId
- the user IDtype
- the type- Returns:
- the announcements delivery that was removed
- Throws:
NoSuchDeliveryException
-
countByU_T
Returns the number of announcements deliveries where userId = ? and type = ?.- Parameters:
userId
- the user IDtype
- the type- Returns:
- the number of matching announcements deliveries
-
cacheResult
Caches the announcements delivery in the entity cache if it is enabled.- Parameters:
announcementsDelivery
- the announcements delivery
-
cacheResult
Caches the announcements deliveries in the entity cache if it is enabled.- Parameters:
announcementsDeliveries
- the announcements deliveries
-
create
Creates a new announcements delivery with the primary key. Does not add the announcements delivery to the database.- Parameters:
deliveryId
- the primary key for the new announcements delivery- Returns:
- the new announcements delivery
-
remove
Removes the announcements delivery with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
deliveryId
- the primary key of the announcements delivery- Returns:
- the announcements delivery that was removed
- Throws:
NoSuchDeliveryException
- if a announcements delivery with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the announcements delivery with the primary key or throws aNoSuchDeliveryException
if it could not be found.- Parameters:
deliveryId
- the primary key of the announcements delivery- Returns:
- the announcements delivery
- Throws:
NoSuchDeliveryException
- if a announcements delivery with the primary key could not be found
-
fetchByPrimaryKey
Returns the announcements delivery with the primary key or returnsnull
if it could not be found.- Parameters:
deliveryId
- the primary key of the announcements delivery- Returns:
- the announcements delivery, or
null
if a announcements delivery with the primary key could not be found
-
findAll
List<AnnouncementsDelivery> findAll()Returns all the announcements deliveries.- Returns:
- the announcements deliveries
-
findAll
Returns a range of all the announcements deliveries.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 fromAnnouncementsDeliveryModelImpl
.- Parameters:
start
- the lower bound of the range of announcements deliveriesend
- the upper bound of the range of announcements deliveries (not inclusive)- Returns:
- the range of announcements deliveries
-
findAll
List<AnnouncementsDelivery> findAll(int start, int end, OrderByComparator<AnnouncementsDelivery> orderByComparator) Returns an ordered range of all the announcements deliveries.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 fromAnnouncementsDeliveryModelImpl
.- Parameters:
start
- the lower bound of the range of announcements deliveriesend
- the upper bound of the range of announcements deliveries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of announcements deliveries
-
findAll
List<AnnouncementsDelivery> findAll(int start, int end, OrderByComparator<AnnouncementsDelivery> orderByComparator, boolean useFinderCache) Returns an ordered range of all the announcements deliveries.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 fromAnnouncementsDeliveryModelImpl
.- Parameters:
start
- the lower bound of the range of announcements deliveriesend
- the upper bound of the range of announcements deliveries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of announcements deliveries
-
removeAll
void removeAll()Removes all the announcements deliveries from the database. -
countAll
int countAll()Returns the number of announcements deliveries.- Returns:
- the number of announcements deliveries
-