@ProviderType public interface NotificationTemplateAttachmentPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<NotificationTemplateAttachment>
Caching information and settings can be found in portal.properties
NotificationTemplateAttachmentUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(java.util.List<NotificationTemplateAttachment> notificationTemplateAttachments)
Caches the notification template attachments in the entity cache if it is enabled.
|
void |
cacheResult(NotificationTemplateAttachment notificationTemplateAttachment)
Caches the notification template attachment in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of notification template attachments.
|
int |
countByNotificationTemplateId(long notificationTemplateId)
Returns the number of notification template attachments where notificationTemplateId = ?.
|
int |
countByNTI_OFI(long notificationTemplateId,
long objectFieldId)
Returns the number of notification template attachments where notificationTemplateId = ? and objectFieldId = ?.
|
NotificationTemplateAttachment |
create(long notificationTemplateAttachmentId)
Creates a new notification template attachment with the primary key.
|
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 = ?.
|
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 = ?.
|
NotificationTemplateAttachment |
fetchByNTI_OFI(long notificationTemplateId,
long objectFieldId)
Returns the notification template attachment where notificationTemplateId = ? and objectFieldId = ? or returns
null if it could not be found. |
NotificationTemplateAttachment |
fetchByNTI_OFI(long notificationTemplateId,
long objectFieldId,
boolean useFinderCache)
Returns the notification template attachment where notificationTemplateId = ? and objectFieldId = ? or returns
null if it could not be found, optionally using the finder cache. |
NotificationTemplateAttachment |
fetchByPrimaryKey(long notificationTemplateAttachmentId)
Returns the notification template attachment with the primary key or returns
null if it could not be found. |
java.util.List<NotificationTemplateAttachment> |
findAll()
Returns all the notification template attachments.
|
java.util.List<NotificationTemplateAttachment> |
findAll(int start,
int end)
Returns a range of all the notification template attachments.
|
java.util.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.
|
java.util.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.
|
NotificationTemplateAttachment |
findByNotificationTemplateId_First(long notificationTemplateId,
com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator)
Returns the first notification template attachment in the ordered set where notificationTemplateId = ?.
|
NotificationTemplateAttachment |
findByNotificationTemplateId_Last(long notificationTemplateId,
com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator)
Returns the last notification template attachment in the ordered set where notificationTemplateId = ?.
|
NotificationTemplateAttachment[] |
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 = ?.
|
java.util.List<NotificationTemplateAttachment> |
findByNotificationTemplateId(long notificationTemplateId)
Returns all the notification template attachments where notificationTemplateId = ?.
|
java.util.List<NotificationTemplateAttachment> |
findByNotificationTemplateId(long notificationTemplateId,
int start,
int end)
Returns a range of all the notification template attachments where notificationTemplateId = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
NotificationTemplateAttachment |
findByNTI_OFI(long notificationTemplateId,
long objectFieldId)
Returns the notification template attachment where notificationTemplateId = ? and objectFieldId = ? or throws a
NoSuchNotificationTemplateAttachmentException if it could not be found. |
NotificationTemplateAttachment |
findByPrimaryKey(long notificationTemplateAttachmentId)
Returns the notification template attachment with the primary key or throws a
NoSuchNotificationTemplateAttachmentException if it could not be found. |
NotificationTemplateAttachment |
remove(long notificationTemplateAttachmentId)
Removes the notification template attachment with the primary key from the database.
|
void |
removeAll()
Removes all the notification template attachments from the database.
|
void |
removeByNotificationTemplateId(long notificationTemplateId)
Removes all the notification template attachments where notificationTemplateId = ? from the database.
|
NotificationTemplateAttachment |
removeByNTI_OFI(long notificationTemplateId,
long objectFieldId)
Removes the notification template attachment where notificationTemplateId = ? and objectFieldId = ? from the database.
|
NotificationTemplateAttachment |
updateImpl(NotificationTemplateAttachment notificationTemplateAttachment) |
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, setDataSource, unregisterListener, update, update
java.util.List<NotificationTemplateAttachment> findByNotificationTemplateId(long notificationTemplateId)
notificationTemplateId
- the notification template IDjava.util.List<NotificationTemplateAttachment> findByNotificationTemplateId(long notificationTemplateId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from NotificationTemplateAttachmentModelImpl
.
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)java.util.List<NotificationTemplateAttachment> findByNotificationTemplateId(long notificationTemplateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from NotificationTemplateAttachmentModelImpl
.
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 (optionally null
)java.util.List<NotificationTemplateAttachment> findByNotificationTemplateId(long notificationTemplateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from NotificationTemplateAttachmentModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheNotificationTemplateAttachment findByNotificationTemplateId_First(long notificationTemplateId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator) throws NoSuchNotificationTemplateAttachmentException
notificationTemplateId
- the notification template IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationTemplateAttachmentException
- if a matching notification template attachment could not be foundNotificationTemplateAttachment fetchByNotificationTemplateId_First(long notificationTemplateId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator)
notificationTemplateId
- the notification template IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching notification template attachment could not be foundNotificationTemplateAttachment findByNotificationTemplateId_Last(long notificationTemplateId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator) throws NoSuchNotificationTemplateAttachmentException
notificationTemplateId
- the notification template IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationTemplateAttachmentException
- if a matching notification template attachment could not be foundNotificationTemplateAttachment fetchByNotificationTemplateId_Last(long notificationTemplateId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator)
notificationTemplateId
- the notification template IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching notification template attachment could not be foundNotificationTemplateAttachment[] findByNotificationTemplateId_PrevAndNext(long notificationTemplateAttachmentId, long notificationTemplateId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator) throws NoSuchNotificationTemplateAttachmentException
notificationTemplateAttachmentId
- the primary key of the current notification template attachmentnotificationTemplateId
- the notification template IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationTemplateAttachmentException
- if a notification template attachment with the primary key could not be foundvoid removeByNotificationTemplateId(long notificationTemplateId)
notificationTemplateId
- the notification template IDint countByNotificationTemplateId(long notificationTemplateId)
notificationTemplateId
- the notification template IDNotificationTemplateAttachment findByNTI_OFI(long notificationTemplateId, long objectFieldId) throws NoSuchNotificationTemplateAttachmentException
NoSuchNotificationTemplateAttachmentException
if it could not be found.notificationTemplateId
- the notification template IDobjectFieldId
- the object field IDNoSuchNotificationTemplateAttachmentException
- if a matching notification template attachment could not be foundNotificationTemplateAttachment fetchByNTI_OFI(long notificationTemplateId, long objectFieldId)
null
if it could not be found. Uses the finder cache.notificationTemplateId
- the notification template IDobjectFieldId
- the object field IDnull
if a matching notification template attachment could not be foundNotificationTemplateAttachment fetchByNTI_OFI(long notificationTemplateId, long objectFieldId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.notificationTemplateId
- the notification template IDobjectFieldId
- the object field IDuseFinderCache
- whether to use the finder cachenull
if a matching notification template attachment could not be foundNotificationTemplateAttachment removeByNTI_OFI(long notificationTemplateId, long objectFieldId) throws NoSuchNotificationTemplateAttachmentException
notificationTemplateId
- the notification template IDobjectFieldId
- the object field IDNoSuchNotificationTemplateAttachmentException
int countByNTI_OFI(long notificationTemplateId, long objectFieldId)
notificationTemplateId
- the notification template IDobjectFieldId
- the object field IDvoid cacheResult(NotificationTemplateAttachment notificationTemplateAttachment)
notificationTemplateAttachment
- the notification template attachmentvoid cacheResult(java.util.List<NotificationTemplateAttachment> notificationTemplateAttachments)
notificationTemplateAttachments
- the notification template attachmentsNotificationTemplateAttachment create(long notificationTemplateAttachmentId)
notificationTemplateAttachmentId
- the primary key for the new notification template attachmentNotificationTemplateAttachment remove(long notificationTemplateAttachmentId) throws NoSuchNotificationTemplateAttachmentException
notificationTemplateAttachmentId
- the primary key of the notification template attachmentNoSuchNotificationTemplateAttachmentException
- if a notification template attachment with the primary key could not be foundNotificationTemplateAttachment updateImpl(NotificationTemplateAttachment notificationTemplateAttachment)
NotificationTemplateAttachment findByPrimaryKey(long notificationTemplateAttachmentId) throws NoSuchNotificationTemplateAttachmentException
NoSuchNotificationTemplateAttachmentException
if it could not be found.notificationTemplateAttachmentId
- the primary key of the notification template attachmentNoSuchNotificationTemplateAttachmentException
- if a notification template attachment with the primary key could not be foundNotificationTemplateAttachment fetchByPrimaryKey(long notificationTemplateAttachmentId)
null
if it could not be found.notificationTemplateAttachmentId
- the primary key of the notification template attachmentnull
if a notification template attachment with the primary key could not be foundjava.util.List<NotificationTemplateAttachment> findAll()
java.util.List<NotificationTemplateAttachment> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from NotificationTemplateAttachmentModelImpl
.
start
- the lower bound of the range of notification template attachmentsend
- the upper bound of the range of notification template attachments (not inclusive)java.util.List<NotificationTemplateAttachment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from NotificationTemplateAttachmentModelImpl
.
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 (optionally null
)java.util.List<NotificationTemplateAttachment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplateAttachment> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from NotificationTemplateAttachmentModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()