Interface NotificationTemplateAttachmentPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<NotificationTemplateAttachment>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcacheResult(NotificationTemplateAttachment notificationTemplateAttachment) Caches the notification template attachment in the entity cache if it is enabled.voidcacheResult(List<NotificationTemplateAttachment> notificationTemplateAttachments) Caches the notification template attachments in the entity cache if it is enabled.intcountAll()Returns the number of notification template attachments.intcountByNotificationTemplateId(long notificationTemplateId) Returns the number of notification template attachments where notificationTemplateId = ?.intcountByNTI_OFI(long notificationTemplateId, long objectFieldId) Returns the number of notification template attachments where notificationTemplateId = ? and objectFieldId = ?.create(long notificationTemplateAttachmentId) Creates a new notification template attachment with the primary key.fetchByNotificationTemplateId_First(long notificationTemplateId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator) Returns the first notification template attachment in the ordered set where notificationTemplateId = ?.fetchByNotificationTemplateId_Last(long notificationTemplateId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator) Returns the last notification template attachment in the ordered set where notificationTemplateId = ?.fetchByNTI_OFI(long notificationTemplateId, long objectFieldId) Returns the notification template attachment where notificationTemplateId = ? and objectFieldId = ? or returnsnullif it could not be found.fetchByNTI_OFI(long notificationTemplateId, long objectFieldId, boolean useFinderCache) Returns the notification template attachment where notificationTemplateId = ? and objectFieldId = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByPrimaryKey(long notificationTemplateAttachmentId) Returns the notification template attachment with the primary key or returnsnullif it could not be found.findAll()Returns all the notification template attachments.findAll(int start, int end) Returns a range of all the notification template attachments.findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator) Returns an ordered range of all the notification template attachments.findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the notification template attachments.findByNotificationTemplateId(long notificationTemplateId) Returns all the notification template attachments where notificationTemplateId = ?.findByNotificationTemplateId(long notificationTemplateId, int start, int end) Returns a range of all the notification template attachments where notificationTemplateId = ?.findByNotificationTemplateId(long notificationTemplateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator) Returns an ordered range of all the notification template attachments where notificationTemplateId = ?.findByNotificationTemplateId(long notificationTemplateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the notification template attachments where notificationTemplateId = ?.findByNotificationTemplateId_First(long notificationTemplateId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator) Returns the first notification template attachment in the ordered set where notificationTemplateId = ?.findByNotificationTemplateId_Last(long notificationTemplateId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator) Returns the last notification template attachment in the ordered set where notificationTemplateId = ?.findByNotificationTemplateId_PrevAndNext(long notificationTemplateAttachmentId, long notificationTemplateId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator) Returns the notification template attachments before and after the current notification template attachment in the ordered set where notificationTemplateId = ?.findByNTI_OFI(long notificationTemplateId, long objectFieldId) Returns the notification template attachment where notificationTemplateId = ? and objectFieldId = ? or throws aNoSuchNotificationTemplateAttachmentExceptionif it could not be found.findByPrimaryKey(long notificationTemplateAttachmentId) Returns the notification template attachment with the primary key or throws aNoSuchNotificationTemplateAttachmentExceptionif it could not be found.remove(long notificationTemplateAttachmentId) Removes the notification template attachment with the primary key from the database.voidRemoves all the notification template attachments from the database.voidremoveByNotificationTemplateId(long notificationTemplateId) Removes all the notification template attachments where notificationTemplateId = ? from the database.removeByNTI_OFI(long notificationTemplateId, long objectFieldId) Removes the notification template attachment where notificationTemplateId = ? and objectFieldId = ? from the database.updateImpl(NotificationTemplateAttachment notificationTemplateAttachment) 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
-
Method Details
-
findByNotificationTemplateId
Returns all the notification template attachments where notificationTemplateId = ?.- Parameters:
notificationTemplateId- the notification template ID- Returns:
- the matching notification template attachments
-
findByNotificationTemplateId
List<NotificationTemplateAttachment> findByNotificationTemplateId(long notificationTemplateId, int start, int end) Returns a range of all the notification template attachments where notificationTemplateId = ?.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 bothstartandendtoQueryUtil#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 fromNotificationTemplateAttachmentModelImpl.- Parameters:
notificationTemplateId- the notification template IDstart- the lower bound of the range of notification template attachmentsend- the upper bound of the range of notification template attachments (not inclusive)- Returns:
- the range of matching notification template attachments
-
findByNotificationTemplateId
List<NotificationTemplateAttachment> findByNotificationTemplateId(long notificationTemplateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator) Returns an ordered range of all the notification template attachments where notificationTemplateId = ?.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 bothstartandendtoQueryUtil#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 fromNotificationTemplateAttachmentModelImpl.- Parameters:
notificationTemplateId- the notification template IDstart- the lower bound of the range of notification template attachmentsend- the upper bound of the range of notification template attachments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching notification template attachments
-
findByNotificationTemplateId
List<NotificationTemplateAttachment> findByNotificationTemplateId(long notificationTemplateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the notification template attachments where notificationTemplateId = ?.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 bothstartandendtoQueryUtil#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 fromNotificationTemplateAttachmentModelImpl.- Parameters:
notificationTemplateId- the notification template IDstart- the lower bound of the range of notification template attachmentsend- the upper bound of the range of notification template attachments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching notification template attachments
-
findByNotificationTemplateId_First
NotificationTemplateAttachment findByNotificationTemplateId_First(long notificationTemplateId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator) throws NoSuchNotificationTemplateAttachmentException Returns the first notification template attachment in the ordered set where notificationTemplateId = ?.- Parameters:
notificationTemplateId- the notification template IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching notification template attachment
- Throws:
NoSuchNotificationTemplateAttachmentException- if a matching notification template attachment could not be found
-
fetchByNotificationTemplateId_First
NotificationTemplateAttachment fetchByNotificationTemplateId_First(long notificationTemplateId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator) Returns the first notification template attachment in the ordered set where notificationTemplateId = ?.- Parameters:
notificationTemplateId- the notification template IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching notification template attachment, or
nullif a matching notification template attachment could not be found
-
findByNotificationTemplateId_Last
NotificationTemplateAttachment findByNotificationTemplateId_Last(long notificationTemplateId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator) throws NoSuchNotificationTemplateAttachmentException Returns the last notification template attachment in the ordered set where notificationTemplateId = ?.- Parameters:
notificationTemplateId- the notification template IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching notification template attachment
- Throws:
NoSuchNotificationTemplateAttachmentException- if a matching notification template attachment could not be found
-
fetchByNotificationTemplateId_Last
NotificationTemplateAttachment fetchByNotificationTemplateId_Last(long notificationTemplateId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator) Returns the last notification template attachment in the ordered set where notificationTemplateId = ?.- Parameters:
notificationTemplateId- the notification template IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching notification template attachment, or
nullif a matching notification template attachment could not be found
-
findByNotificationTemplateId_PrevAndNext
NotificationTemplateAttachment[] findByNotificationTemplateId_PrevAndNext(long notificationTemplateAttachmentId, long notificationTemplateId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator) throws NoSuchNotificationTemplateAttachmentException Returns the notification template attachments before and after the current notification template attachment in the ordered set where notificationTemplateId = ?.- Parameters:
notificationTemplateAttachmentId- the primary key of the current notification template attachmentnotificationTemplateId- the notification template IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next notification template attachment
- Throws:
NoSuchNotificationTemplateAttachmentException- if a notification template attachment with the primary key could not be found
-
removeByNotificationTemplateId
void removeByNotificationTemplateId(long notificationTemplateId) Removes all the notification template attachments where notificationTemplateId = ? from the database.- Parameters:
notificationTemplateId- the notification template ID
-
countByNotificationTemplateId
int countByNotificationTemplateId(long notificationTemplateId) Returns the number of notification template attachments where notificationTemplateId = ?.- Parameters:
notificationTemplateId- the notification template ID- Returns:
- the number of matching notification template attachments
-
findByNTI_OFI
NotificationTemplateAttachment findByNTI_OFI(long notificationTemplateId, long objectFieldId) throws NoSuchNotificationTemplateAttachmentException Returns the notification template attachment where notificationTemplateId = ? and objectFieldId = ? or throws aNoSuchNotificationTemplateAttachmentExceptionif it could not be found.- Parameters:
notificationTemplateId- the notification template IDobjectFieldId- the object field ID- Returns:
- the matching notification template attachment
- Throws:
NoSuchNotificationTemplateAttachmentException- if a matching notification template attachment could not be found
-
fetchByNTI_OFI
Returns the notification template attachment where notificationTemplateId = ? and objectFieldId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
notificationTemplateId- the notification template IDobjectFieldId- the object field ID- Returns:
- the matching notification template attachment, or
nullif a matching notification template attachment could not be found
-
fetchByNTI_OFI
NotificationTemplateAttachment fetchByNTI_OFI(long notificationTemplateId, long objectFieldId, boolean useFinderCache) Returns the notification template attachment where notificationTemplateId = ? and objectFieldId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
notificationTemplateId- the notification template IDobjectFieldId- the object field IDuseFinderCache- whether to use the finder cache- Returns:
- the matching notification template attachment, or
nullif a matching notification template attachment could not be found
-
removeByNTI_OFI
NotificationTemplateAttachment removeByNTI_OFI(long notificationTemplateId, long objectFieldId) throws NoSuchNotificationTemplateAttachmentException Removes the notification template attachment where notificationTemplateId = ? and objectFieldId = ? from the database.- Parameters:
notificationTemplateId- the notification template IDobjectFieldId- the object field ID- Returns:
- the notification template attachment that was removed
- Throws:
NoSuchNotificationTemplateAttachmentException
-
countByNTI_OFI
int countByNTI_OFI(long notificationTemplateId, long objectFieldId) Returns the number of notification template attachments where notificationTemplateId = ? and objectFieldId = ?.- Parameters:
notificationTemplateId- the notification template IDobjectFieldId- the object field ID- Returns:
- the number of matching notification template attachments
-
cacheResult
Caches the notification template attachment in the entity cache if it is enabled.- Parameters:
notificationTemplateAttachment- the notification template attachment
-
cacheResult
Caches the notification template attachments in the entity cache if it is enabled.- Parameters:
notificationTemplateAttachments- the notification template attachments
-
create
Creates a new notification template attachment with the primary key. Does not add the notification template attachment to the database.- Parameters:
notificationTemplateAttachmentId- the primary key for the new notification template attachment- Returns:
- the new notification template attachment
-
remove
NotificationTemplateAttachment remove(long notificationTemplateAttachmentId) throws NoSuchNotificationTemplateAttachmentException Removes the notification template attachment with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
notificationTemplateAttachmentId- the primary key of the notification template attachment- Returns:
- the notification template attachment that was removed
- Throws:
NoSuchNotificationTemplateAttachmentException- if a notification template attachment with the primary key could not be found
-
updateImpl
NotificationTemplateAttachment updateImpl(NotificationTemplateAttachment notificationTemplateAttachment) -
findByPrimaryKey
NotificationTemplateAttachment findByPrimaryKey(long notificationTemplateAttachmentId) throws NoSuchNotificationTemplateAttachmentException Returns the notification template attachment with the primary key or throws aNoSuchNotificationTemplateAttachmentExceptionif it could not be found.- Parameters:
notificationTemplateAttachmentId- the primary key of the notification template attachment- Returns:
- the notification template attachment
- Throws:
NoSuchNotificationTemplateAttachmentException- if a notification template attachment with the primary key could not be found
-
fetchByPrimaryKey
Returns the notification template attachment with the primary key or returnsnullif it could not be found.- Parameters:
notificationTemplateAttachmentId- the primary key of the notification template attachment- Returns:
- the notification template attachment, or
nullif a notification template attachment with the primary key could not be found
-
findAll
List<NotificationTemplateAttachment> findAll()Returns all the notification template attachments.- Returns:
- the notification template attachments
-
findAll
Returns a range of all the notification template attachments.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 bothstartandendtoQueryUtil#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 fromNotificationTemplateAttachmentModelImpl.- Parameters:
start- the lower bound of the range of notification template attachmentsend- the upper bound of the range of notification template attachments (not inclusive)- Returns:
- the range of notification template attachments
-
findAll
List<NotificationTemplateAttachment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator) Returns an ordered range of all the notification template attachments.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 bothstartandendtoQueryUtil#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 fromNotificationTemplateAttachmentModelImpl.- Parameters:
start- the lower bound of the range of notification template attachmentsend- the upper bound of the range of notification template attachments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of notification template attachments
-
findAll
List<NotificationTemplateAttachment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the notification template attachments.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 bothstartandendtoQueryUtil#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 fromNotificationTemplateAttachmentModelImpl.- Parameters:
start- the lower bound of the range of notification template attachmentsend- the upper bound of the range of notification template attachments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of notification template attachments
-
removeAll
void removeAll()Removes all the notification template attachments from the database. -
countAll
int countAll()Returns the number of notification template attachments.- Returns:
- the number of notification template attachments
-