1
14
15 package com.liferay.portlet.announcements.service.persistence;
16
17 import com.liferay.portal.service.persistence.BasePersistence;
18
19 import com.liferay.portlet.announcements.model.AnnouncementsFlag;
20
21
34 public interface AnnouncementsFlagPersistence extends BasePersistence<AnnouncementsFlag> {
35 public void cacheResult(
36 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag);
37
38 public void cacheResult(
39 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> announcementsFlags);
40
41 public com.liferay.portlet.announcements.model.AnnouncementsFlag create(
42 long flagId);
43
44 public com.liferay.portlet.announcements.model.AnnouncementsFlag remove(
45 long flagId)
46 throws com.liferay.portal.kernel.exception.SystemException,
47 com.liferay.portlet.announcements.NoSuchFlagException;
48
49 public com.liferay.portlet.announcements.model.AnnouncementsFlag updateImpl(
50 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag,
51 boolean merge)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.announcements.model.AnnouncementsFlag findByPrimaryKey(
55 long flagId)
56 throws com.liferay.portal.kernel.exception.SystemException,
57 com.liferay.portlet.announcements.NoSuchFlagException;
58
59 public com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByPrimaryKey(
60 long flagId) throws com.liferay.portal.kernel.exception.SystemException;
61
62 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
63 long entryId)
64 throws com.liferay.portal.kernel.exception.SystemException;
65
66 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
67 long entryId, int start, int end)
68 throws com.liferay.portal.kernel.exception.SystemException;
69
70 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
71 long entryId, int start, int end,
72 com.liferay.portal.kernel.util.OrderByComparator obc)
73 throws com.liferay.portal.kernel.exception.SystemException;
74
75 public com.liferay.portlet.announcements.model.AnnouncementsFlag findByEntryId_First(
76 long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
77 throws com.liferay.portal.kernel.exception.SystemException,
78 com.liferay.portlet.announcements.NoSuchFlagException;
79
80 public com.liferay.portlet.announcements.model.AnnouncementsFlag findByEntryId_Last(
81 long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
82 throws com.liferay.portal.kernel.exception.SystemException,
83 com.liferay.portlet.announcements.NoSuchFlagException;
84
85 public com.liferay.portlet.announcements.model.AnnouncementsFlag[] findByEntryId_PrevAndNext(
86 long flagId, long entryId,
87 com.liferay.portal.kernel.util.OrderByComparator obc)
88 throws com.liferay.portal.kernel.exception.SystemException,
89 com.liferay.portlet.announcements.NoSuchFlagException;
90
91 public com.liferay.portlet.announcements.model.AnnouncementsFlag findByU_E_V(
92 long userId, long entryId, int value)
93 throws com.liferay.portal.kernel.exception.SystemException,
94 com.liferay.portlet.announcements.NoSuchFlagException;
95
96 public com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByU_E_V(
97 long userId, long entryId, int value)
98 throws com.liferay.portal.kernel.exception.SystemException;
99
100 public com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByU_E_V(
101 long userId, long entryId, int value, boolean retrieveFromCache)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll()
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll(
108 int start, int end)
109 throws com.liferay.portal.kernel.exception.SystemException;
110
111 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll(
112 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portal.kernel.exception.SystemException;
114
115 public void removeByEntryId(long entryId)
116 throws com.liferay.portal.kernel.exception.SystemException;
117
118 public void removeByU_E_V(long userId, long entryId, int value)
119 throws com.liferay.portal.kernel.exception.SystemException,
120 com.liferay.portlet.announcements.NoSuchFlagException;
121
122 public void removeAll()
123 throws com.liferay.portal.kernel.exception.SystemException;
124
125 public int countByEntryId(long entryId)
126 throws com.liferay.portal.kernel.exception.SystemException;
127
128 public int countByU_E_V(long userId, long entryId, int value)
129 throws com.liferay.portal.kernel.exception.SystemException;
130
131 public int countAll()
132 throws com.liferay.portal.kernel.exception.SystemException;
133 }