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