1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public class CountryUtil {
32 public static com.liferay.portal.model.Country create(long countryId) {
33 return getPersistence().create(countryId);
34 }
35
36 public static com.liferay.portal.model.Country remove(long countryId)
37 throws com.liferay.portal.NoSuchCountryException,
38 com.liferay.portal.SystemException {
39 return getPersistence().remove(countryId);
40 }
41
42 public static com.liferay.portal.model.Country remove(
43 com.liferay.portal.model.Country country)
44 throws com.liferay.portal.SystemException {
45 return getPersistence().remove(country);
46 }
47
48
51 public static com.liferay.portal.model.Country update(
52 com.liferay.portal.model.Country country)
53 throws com.liferay.portal.SystemException {
54 return getPersistence().update(country);
55 }
56
57
70 public static com.liferay.portal.model.Country update(
71 com.liferay.portal.model.Country country, boolean merge)
72 throws com.liferay.portal.SystemException {
73 return getPersistence().update(country, merge);
74 }
75
76 public static com.liferay.portal.model.Country updateImpl(
77 com.liferay.portal.model.Country country, boolean merge)
78 throws com.liferay.portal.SystemException {
79 return getPersistence().updateImpl(country, merge);
80 }
81
82 public static com.liferay.portal.model.Country findByPrimaryKey(
83 long countryId)
84 throws com.liferay.portal.NoSuchCountryException,
85 com.liferay.portal.SystemException {
86 return getPersistence().findByPrimaryKey(countryId);
87 }
88
89 public static com.liferay.portal.model.Country fetchByPrimaryKey(
90 long countryId) throws com.liferay.portal.SystemException {
91 return getPersistence().fetchByPrimaryKey(countryId);
92 }
93
94 public static java.util.List<com.liferay.portal.model.Country> findByActive(
95 boolean active) throws com.liferay.portal.SystemException {
96 return getPersistence().findByActive(active);
97 }
98
99 public static java.util.List<com.liferay.portal.model.Country> findByActive(
100 boolean active, int start, int end)
101 throws com.liferay.portal.SystemException {
102 return getPersistence().findByActive(active, start, end);
103 }
104
105 public static java.util.List<com.liferay.portal.model.Country> findByActive(
106 boolean active, int start, int end,
107 com.liferay.portal.kernel.util.OrderByComparator obc)
108 throws com.liferay.portal.SystemException {
109 return getPersistence().findByActive(active, start, end, obc);
110 }
111
112 public static com.liferay.portal.model.Country findByActive_First(
113 boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
114 throws com.liferay.portal.NoSuchCountryException,
115 com.liferay.portal.SystemException {
116 return getPersistence().findByActive_First(active, obc);
117 }
118
119 public static com.liferay.portal.model.Country findByActive_Last(
120 boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.NoSuchCountryException,
122 com.liferay.portal.SystemException {
123 return getPersistence().findByActive_Last(active, obc);
124 }
125
126 public static com.liferay.portal.model.Country[] findByActive_PrevAndNext(
127 long countryId, boolean active,
128 com.liferay.portal.kernel.util.OrderByComparator obc)
129 throws com.liferay.portal.NoSuchCountryException,
130 com.liferay.portal.SystemException {
131 return getPersistence().findByActive_PrevAndNext(countryId, active, obc);
132 }
133
134 public static java.util.List<Object> findWithDynamicQuery(
135 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
136 throws com.liferay.portal.SystemException {
137 return getPersistence().findWithDynamicQuery(dynamicQuery);
138 }
139
140 public static java.util.List<Object> findWithDynamicQuery(
141 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142 int end) throws com.liferay.portal.SystemException {
143 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
144 }
145
146 public static java.util.List<com.liferay.portal.model.Country> findAll()
147 throws com.liferay.portal.SystemException {
148 return getPersistence().findAll();
149 }
150
151 public static java.util.List<com.liferay.portal.model.Country> findAll(
152 int start, int end) throws com.liferay.portal.SystemException {
153 return getPersistence().findAll(start, end);
154 }
155
156 public static java.util.List<com.liferay.portal.model.Country> findAll(
157 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
158 throws com.liferay.portal.SystemException {
159 return getPersistence().findAll(start, end, obc);
160 }
161
162 public static void removeByActive(boolean active)
163 throws com.liferay.portal.SystemException {
164 getPersistence().removeByActive(active);
165 }
166
167 public static void removeAll() throws com.liferay.portal.SystemException {
168 getPersistence().removeAll();
169 }
170
171 public static int countByActive(boolean active)
172 throws com.liferay.portal.SystemException {
173 return getPersistence().countByActive(active);
174 }
175
176 public static int countAll() throws com.liferay.portal.SystemException {
177 return getPersistence().countAll();
178 }
179
180 public static void registerListener(
181 com.liferay.portal.model.ModelListener listener) {
182 getPersistence().registerListener(listener);
183 }
184
185 public static void unregisterListener(
186 com.liferay.portal.model.ModelListener listener) {
187 getPersistence().unregisterListener(listener);
188 }
189
190 public static CountryPersistence getPersistence() {
191 return _getUtil()._persistence;
192 }
193
194 public void setPersistence(CountryPersistence persistence) {
195 _persistence = persistence;
196 }
197
198 private static CountryUtil _getUtil() {
199 if (_util == null) {
200 _util = (CountryUtil)com.liferay.portal.kernel.bean.PortalBeanLocatorUtil.locate(_UTIL);
201 }
202
203 return _util;
204 }
205
206 private static final String _UTIL = CountryUtil.class.getName();
207 private static CountryUtil _util;
208 private CountryPersistence _persistence;
209 }