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.SystemException,
47 com.liferay.portlet.announcements.NoSuchFlagException;
48
49
52 public com.liferay.portlet.announcements.model.AnnouncementsFlag update(
53 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag)
54 throws com.liferay.portal.SystemException;
55
56 public com.liferay.portlet.announcements.model.AnnouncementsFlag updateImpl(
57 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag,
58 boolean merge) throws com.liferay.portal.SystemException;
59
60 public com.liferay.portlet.announcements.model.AnnouncementsFlag findByPrimaryKey(
61 long flagId)
62 throws com.liferay.portal.SystemException,
63 com.liferay.portlet.announcements.NoSuchFlagException;
64
65 public com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByPrimaryKey(
66 long flagId) throws com.liferay.portal.SystemException;
67
68 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
69 long entryId) throws com.liferay.portal.SystemException;
70
71 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
72 long entryId, int start, int end)
73 throws com.liferay.portal.SystemException;
74
75 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
76 long entryId, int start, int end,
77 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78 throws com.liferay.portal.SystemException;
79
80 public com.liferay.portlet.announcements.model.AnnouncementsFlag findByEntryId_First(
81 long entryId,
82 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portlet.announcements.NoSuchFlagException;
85
86 public com.liferay.portlet.announcements.model.AnnouncementsFlag findByEntryId_Last(
87 long entryId,
88 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89 throws com.liferay.portal.SystemException,
90 com.liferay.portlet.announcements.NoSuchFlagException;
91
92 public com.liferay.portlet.announcements.model.AnnouncementsFlag[] findByEntryId_PrevAndNext(
93 long flagId, long entryId,
94 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
95 throws com.liferay.portal.SystemException,
96 com.liferay.portlet.announcements.NoSuchFlagException;
97
98 public com.liferay.portlet.announcements.model.AnnouncementsFlag findByU_E_V(
99 long userId, long entryId, int value)
100 throws com.liferay.portal.SystemException,
101 com.liferay.portlet.announcements.NoSuchFlagException;
102
103 public com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByU_E_V(
104 long userId, long entryId, int value)
105 throws com.liferay.portal.SystemException;
106
107 public com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByU_E_V(
108 long userId, long entryId, int value, boolean retrieveFromCache)
109 throws com.liferay.portal.SystemException;
110
111 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll()
112 throws com.liferay.portal.SystemException;
113
114 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll(
115 int start, int end) throws com.liferay.portal.SystemException;
116
117 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll(
118 int start, int end,
119 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
120 throws com.liferay.portal.SystemException;
121
122 public void removeByEntryId(long entryId)
123 throws com.liferay.portal.SystemException;
124
125 public void removeByU_E_V(long userId, long entryId, int value)
126 throws com.liferay.portal.SystemException,
127 com.liferay.portlet.announcements.NoSuchFlagException;
128
129 public void removeAll() throws com.liferay.portal.SystemException;
130
131 public int countByEntryId(long entryId)
132 throws com.liferay.portal.SystemException;
133
134 public int countByU_E_V(long userId, long entryId, int value)
135 throws com.liferay.portal.SystemException;
136
137 public int countAll() throws com.liferay.portal.SystemException;
138 }