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