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 obc)
72 throws com.liferay.portal.SystemException;
73
74 public com.liferay.portal.model.Region findByCountryId_First(
75 long countryId, com.liferay.portal.kernel.util.OrderByComparator obc)
76 throws com.liferay.portal.NoSuchRegionException,
77 com.liferay.portal.SystemException;
78
79 public com.liferay.portal.model.Region findByCountryId_Last(
80 long countryId, com.liferay.portal.kernel.util.OrderByComparator obc)
81 throws com.liferay.portal.NoSuchRegionException,
82 com.liferay.portal.SystemException;
83
84 public com.liferay.portal.model.Region[] findByCountryId_PrevAndNext(
85 long regionId, long countryId,
86 com.liferay.portal.kernel.util.OrderByComparator obc)
87 throws com.liferay.portal.NoSuchRegionException,
88 com.liferay.portal.SystemException;
89
90 public java.util.List<com.liferay.portal.model.Region> findByActive(
91 boolean active) throws com.liferay.portal.SystemException;
92
93 public java.util.List<com.liferay.portal.model.Region> findByActive(
94 boolean active, int start, int end)
95 throws com.liferay.portal.SystemException;
96
97 public java.util.List<com.liferay.portal.model.Region> findByActive(
98 boolean active, int start, int end,
99 com.liferay.portal.kernel.util.OrderByComparator obc)
100 throws com.liferay.portal.SystemException;
101
102 public com.liferay.portal.model.Region findByActive_First(boolean active,
103 com.liferay.portal.kernel.util.OrderByComparator obc)
104 throws com.liferay.portal.NoSuchRegionException,
105 com.liferay.portal.SystemException;
106
107 public com.liferay.portal.model.Region findByActive_Last(boolean active,
108 com.liferay.portal.kernel.util.OrderByComparator obc)
109 throws com.liferay.portal.NoSuchRegionException,
110 com.liferay.portal.SystemException;
111
112 public com.liferay.portal.model.Region[] findByActive_PrevAndNext(
113 long regionId, boolean active,
114 com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.NoSuchRegionException,
116 com.liferay.portal.SystemException;
117
118 public java.util.List<com.liferay.portal.model.Region> findByC_A(
119 long countryId, boolean active)
120 throws com.liferay.portal.SystemException;
121
122 public java.util.List<com.liferay.portal.model.Region> findByC_A(
123 long countryId, boolean active, int start, int end)
124 throws com.liferay.portal.SystemException;
125
126 public java.util.List<com.liferay.portal.model.Region> findByC_A(
127 long countryId, 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 findByC_A_First(long countryId,
132 boolean active, 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 findByC_A_Last(long countryId,
137 boolean active, 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[] findByC_A_PrevAndNext(
142 long regionId, long countryId, 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> findAll()
148 throws com.liferay.portal.SystemException;
149
150 public java.util.List<com.liferay.portal.model.Region> findAll(int start,
151 int end) throws com.liferay.portal.SystemException;
152
153 public java.util.List<com.liferay.portal.model.Region> findAll(int start,
154 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
155 throws com.liferay.portal.SystemException;
156
157 public void removeByCountryId(long countryId)
158 throws com.liferay.portal.SystemException;
159
160 public void removeByActive(boolean active)
161 throws com.liferay.portal.SystemException;
162
163 public void removeByC_A(long countryId, boolean active)
164 throws com.liferay.portal.SystemException;
165
166 public void removeAll() throws com.liferay.portal.SystemException;
167
168 public int countByCountryId(long countryId)
169 throws com.liferay.portal.SystemException;
170
171 public int countByActive(boolean active)
172 throws com.liferay.portal.SystemException;
173
174 public int countByC_A(long countryId, boolean active)
175 throws com.liferay.portal.SystemException;
176
177 public int countAll() throws com.liferay.portal.SystemException;
178 }