1
22
23 package com.liferay.portal.service.persistence;
24
25
26
39 public interface RegionPersistence extends BasePersistence {
40 public void cacheResult(com.liferay.portal.model.Region region);
41
42 public void cacheResult(
43 java.util.List<com.liferay.portal.model.Region> regions);
44
45 public void clearCache();
46
47 public com.liferay.portal.model.Region create(long regionId);
48
49 public com.liferay.portal.model.Region remove(long regionId)
50 throws com.liferay.portal.NoSuchRegionException,
51 com.liferay.portal.SystemException;
52
53 public com.liferay.portal.model.Region remove(
54 com.liferay.portal.model.Region region)
55 throws com.liferay.portal.SystemException;
56
57
60 public com.liferay.portal.model.Region update(
61 com.liferay.portal.model.Region region)
62 throws com.liferay.portal.SystemException;
63
64
76 public com.liferay.portal.model.Region update(
77 com.liferay.portal.model.Region region, boolean merge)
78 throws com.liferay.portal.SystemException;
79
80 public com.liferay.portal.model.Region updateImpl(
81 com.liferay.portal.model.Region region, boolean merge)
82 throws com.liferay.portal.SystemException;
83
84 public com.liferay.portal.model.Region findByPrimaryKey(long regionId)
85 throws com.liferay.portal.NoSuchRegionException,
86 com.liferay.portal.SystemException;
87
88 public com.liferay.portal.model.Region fetchByPrimaryKey(long regionId)
89 throws com.liferay.portal.SystemException;
90
91 public java.util.List<com.liferay.portal.model.Region> findByCountryId(
92 long countryId) throws com.liferay.portal.SystemException;
93
94 public java.util.List<com.liferay.portal.model.Region> findByCountryId(
95 long countryId, int start, int end)
96 throws com.liferay.portal.SystemException;
97
98 public java.util.List<com.liferay.portal.model.Region> findByCountryId(
99 long countryId, int start, int end,
100 com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portal.SystemException;
102
103 public com.liferay.portal.model.Region findByCountryId_First(
104 long countryId, com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.NoSuchRegionException,
106 com.liferay.portal.SystemException;
107
108 public com.liferay.portal.model.Region findByCountryId_Last(
109 long countryId, com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.NoSuchRegionException,
111 com.liferay.portal.SystemException;
112
113 public com.liferay.portal.model.Region[] findByCountryId_PrevAndNext(
114 long regionId, long countryId,
115 com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.NoSuchRegionException,
117 com.liferay.portal.SystemException;
118
119 public java.util.List<com.liferay.portal.model.Region> findByActive(
120 boolean active) throws com.liferay.portal.SystemException;
121
122 public java.util.List<com.liferay.portal.model.Region> findByActive(
123 boolean active, int start, int end)
124 throws com.liferay.portal.SystemException;
125
126 public java.util.List<com.liferay.portal.model.Region> findByActive(
127 boolean active, int start, int end,
128 com.liferay.portal.kernel.util.OrderByComparator obc)
129 throws com.liferay.portal.SystemException;
130
131 public com.liferay.portal.model.Region findByActive_First(boolean active,
132 com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.NoSuchRegionException,
134 com.liferay.portal.SystemException;
135
136 public com.liferay.portal.model.Region findByActive_Last(boolean active,
137 com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.NoSuchRegionException,
139 com.liferay.portal.SystemException;
140
141 public com.liferay.portal.model.Region[] findByActive_PrevAndNext(
142 long regionId, boolean active,
143 com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.NoSuchRegionException,
145 com.liferay.portal.SystemException;
146
147 public java.util.List<com.liferay.portal.model.Region> findByC_A(
148 long countryId, boolean active)
149 throws com.liferay.portal.SystemException;
150
151 public java.util.List<com.liferay.portal.model.Region> findByC_A(
152 long countryId, boolean active, int start, int end)
153 throws com.liferay.portal.SystemException;
154
155 public java.util.List<com.liferay.portal.model.Region> findByC_A(
156 long countryId, boolean active, int start, int end,
157 com.liferay.portal.kernel.util.OrderByComparator obc)
158 throws com.liferay.portal.SystemException;
159
160 public com.liferay.portal.model.Region findByC_A_First(long countryId,
161 boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.NoSuchRegionException,
163 com.liferay.portal.SystemException;
164
165 public com.liferay.portal.model.Region findByC_A_Last(long countryId,
166 boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
167 throws com.liferay.portal.NoSuchRegionException,
168 com.liferay.portal.SystemException;
169
170 public com.liferay.portal.model.Region[] findByC_A_PrevAndNext(
171 long regionId, long countryId, boolean active,
172 com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.NoSuchRegionException,
174 com.liferay.portal.SystemException;
175
176 public java.util.List<Object> findWithDynamicQuery(
177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
178 throws com.liferay.portal.SystemException;
179
180 public java.util.List<Object> findWithDynamicQuery(
181 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
182 int end) throws com.liferay.portal.SystemException;
183
184 public java.util.List<com.liferay.portal.model.Region> findAll()
185 throws com.liferay.portal.SystemException;
186
187 public java.util.List<com.liferay.portal.model.Region> findAll(int start,
188 int end) throws com.liferay.portal.SystemException;
189
190 public java.util.List<com.liferay.portal.model.Region> findAll(int start,
191 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
192 throws com.liferay.portal.SystemException;
193
194 public void removeByCountryId(long countryId)
195 throws com.liferay.portal.SystemException;
196
197 public void removeByActive(boolean active)
198 throws com.liferay.portal.SystemException;
199
200 public void removeByC_A(long countryId, boolean active)
201 throws com.liferay.portal.SystemException;
202
203 public void removeAll() throws com.liferay.portal.SystemException;
204
205 public int countByCountryId(long countryId)
206 throws com.liferay.portal.SystemException;
207
208 public int countByActive(boolean active)
209 throws com.liferay.portal.SystemException;
210
211 public int countByC_A(long countryId, boolean active)
212 throws com.liferay.portal.SystemException;
213
214 public int countAll() throws com.liferay.portal.SystemException;
215 }