1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.model.Region;
18
19
32 public interface RegionPersistence extends BasePersistence<Region> {
33 public void cacheResult(com.liferay.portal.model.Region region);
34
35 public void cacheResult(
36 java.util.List<com.liferay.portal.model.Region> regions);
37
38 public com.liferay.portal.model.Region create(long regionId);
39
40 public com.liferay.portal.model.Region remove(long regionId)
41 throws com.liferay.portal.NoSuchRegionException,
42 com.liferay.portal.SystemException;
43
44
47 public com.liferay.portal.model.Region update(
48 com.liferay.portal.model.Region region)
49 throws com.liferay.portal.SystemException;
50
51 public com.liferay.portal.model.Region updateImpl(
52 com.liferay.portal.model.Region region, boolean merge)
53 throws com.liferay.portal.SystemException;
54
55 public com.liferay.portal.model.Region findByPrimaryKey(long regionId)
56 throws com.liferay.portal.NoSuchRegionException,
57 com.liferay.portal.SystemException;
58
59 public com.liferay.portal.model.Region fetchByPrimaryKey(long regionId)
60 throws com.liferay.portal.SystemException;
61
62 public java.util.List<com.liferay.portal.model.Region> findByCountryId(
63 long countryId) throws com.liferay.portal.SystemException;
64
65 public java.util.List<com.liferay.portal.model.Region> findByCountryId(
66 long countryId, int start, int end)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<com.liferay.portal.model.Region> findByCountryId(
70 long countryId, int start, int end,
71 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
72 throws com.liferay.portal.SystemException;
73
74 public com.liferay.portal.model.Region findByCountryId_First(
75 long countryId,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.NoSuchRegionException,
78 com.liferay.portal.SystemException;
79
80 public com.liferay.portal.model.Region findByCountryId_Last(
81 long countryId,
82 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83 throws com.liferay.portal.NoSuchRegionException,
84 com.liferay.portal.SystemException;
85
86 public com.liferay.portal.model.Region[] findByCountryId_PrevAndNext(
87 long regionId, long countryId,
88 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89 throws com.liferay.portal.NoSuchRegionException,
90 com.liferay.portal.SystemException;
91
92 public java.util.List<com.liferay.portal.model.Region> findByActive(
93 boolean active) throws com.liferay.portal.SystemException;
94
95 public java.util.List<com.liferay.portal.model.Region> findByActive(
96 boolean active, int start, int end)
97 throws com.liferay.portal.SystemException;
98
99 public java.util.List<com.liferay.portal.model.Region> findByActive(
100 boolean active, int start, int end,
101 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102 throws com.liferay.portal.SystemException;
103
104 public com.liferay.portal.model.Region findByActive_First(boolean active,
105 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
106 throws com.liferay.portal.NoSuchRegionException,
107 com.liferay.portal.SystemException;
108
109 public com.liferay.portal.model.Region findByActive_Last(boolean active,
110 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111 throws com.liferay.portal.NoSuchRegionException,
112 com.liferay.portal.SystemException;
113
114 public com.liferay.portal.model.Region[] findByActive_PrevAndNext(
115 long regionId, boolean active,
116 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
117 throws com.liferay.portal.NoSuchRegionException,
118 com.liferay.portal.SystemException;
119
120 public java.util.List<com.liferay.portal.model.Region> findByC_A(
121 long countryId, boolean active)
122 throws com.liferay.portal.SystemException;
123
124 public java.util.List<com.liferay.portal.model.Region> findByC_A(
125 long countryId, boolean active, int start, int end)
126 throws com.liferay.portal.SystemException;
127
128 public java.util.List<com.liferay.portal.model.Region> findByC_A(
129 long countryId, boolean active, int start, int end,
130 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131 throws com.liferay.portal.SystemException;
132
133 public com.liferay.portal.model.Region findByC_A_First(long countryId,
134 boolean active,
135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136 throws com.liferay.portal.NoSuchRegionException,
137 com.liferay.portal.SystemException;
138
139 public com.liferay.portal.model.Region findByC_A_Last(long countryId,
140 boolean active,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.NoSuchRegionException,
143 com.liferay.portal.SystemException;
144
145 public com.liferay.portal.model.Region[] findByC_A_PrevAndNext(
146 long regionId, long countryId, boolean active,
147 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148 throws com.liferay.portal.NoSuchRegionException,
149 com.liferay.portal.SystemException;
150
151 public java.util.List<com.liferay.portal.model.Region> findAll()
152 throws com.liferay.portal.SystemException;
153
154 public java.util.List<com.liferay.portal.model.Region> findAll(int start,
155 int end) throws com.liferay.portal.SystemException;
156
157 public java.util.List<com.liferay.portal.model.Region> findAll(int start,
158 int end,
159 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160 throws com.liferay.portal.SystemException;
161
162 public void removeByCountryId(long countryId)
163 throws com.liferay.portal.SystemException;
164
165 public void removeByActive(boolean active)
166 throws com.liferay.portal.SystemException;
167
168 public void removeByC_A(long countryId, boolean active)
169 throws com.liferay.portal.SystemException;
170
171 public void removeAll() throws com.liferay.portal.SystemException;
172
173 public int countByCountryId(long countryId)
174 throws com.liferay.portal.SystemException;
175
176 public int countByActive(boolean active)
177 throws com.liferay.portal.SystemException;
178
179 public int countByC_A(long countryId, boolean active)
180 throws com.liferay.portal.SystemException;
181
182 public int countAll() throws com.liferay.portal.SystemException;
183 }