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