1
22
23 package com.liferay.portal.service.persistence;
24
25
26
39 public interface CountryPersistence extends BasePersistence {
40 public void cacheResult(com.liferay.portal.model.Country country);
41
42 public void cacheResult(
43 java.util.List<com.liferay.portal.model.Country> countries);
44
45 public void clearCache();
46
47 public com.liferay.portal.model.Country create(long countryId);
48
49 public com.liferay.portal.model.Country remove(long countryId)
50 throws com.liferay.portal.NoSuchCountryException,
51 com.liferay.portal.SystemException;
52
53 public com.liferay.portal.model.Country remove(
54 com.liferay.portal.model.Country country)
55 throws com.liferay.portal.SystemException;
56
57
60 public com.liferay.portal.model.Country update(
61 com.liferay.portal.model.Country country)
62 throws com.liferay.portal.SystemException;
63
64
76 public com.liferay.portal.model.Country update(
77 com.liferay.portal.model.Country country, boolean merge)
78 throws com.liferay.portal.SystemException;
79
80 public com.liferay.portal.model.Country updateImpl(
81 com.liferay.portal.model.Country country, boolean merge)
82 throws com.liferay.portal.SystemException;
83
84 public com.liferay.portal.model.Country findByPrimaryKey(long countryId)
85 throws com.liferay.portal.NoSuchCountryException,
86 com.liferay.portal.SystemException;
87
88 public com.liferay.portal.model.Country fetchByPrimaryKey(long countryId)
89 throws com.liferay.portal.SystemException;
90
91 public com.liferay.portal.model.Country findByName(java.lang.String name)
92 throws com.liferay.portal.NoSuchCountryException,
93 com.liferay.portal.SystemException;
94
95 public com.liferay.portal.model.Country fetchByName(java.lang.String name)
96 throws com.liferay.portal.SystemException;
97
98 public com.liferay.portal.model.Country fetchByName(java.lang.String name,
99 boolean retrieveFromCache) throws com.liferay.portal.SystemException;
100
101 public com.liferay.portal.model.Country findByA2(java.lang.String a2)
102 throws com.liferay.portal.NoSuchCountryException,
103 com.liferay.portal.SystemException;
104
105 public com.liferay.portal.model.Country fetchByA2(java.lang.String a2)
106 throws com.liferay.portal.SystemException;
107
108 public com.liferay.portal.model.Country fetchByA2(java.lang.String a2,
109 boolean retrieveFromCache) throws com.liferay.portal.SystemException;
110
111 public com.liferay.portal.model.Country findByA3(java.lang.String a3)
112 throws com.liferay.portal.NoSuchCountryException,
113 com.liferay.portal.SystemException;
114
115 public com.liferay.portal.model.Country fetchByA3(java.lang.String a3)
116 throws com.liferay.portal.SystemException;
117
118 public com.liferay.portal.model.Country fetchByA3(java.lang.String a3,
119 boolean retrieveFromCache) throws com.liferay.portal.SystemException;
120
121 public java.util.List<com.liferay.portal.model.Country> findByActive(
122 boolean active) throws com.liferay.portal.SystemException;
123
124 public java.util.List<com.liferay.portal.model.Country> findByActive(
125 boolean active, int start, int end)
126 throws com.liferay.portal.SystemException;
127
128 public java.util.List<com.liferay.portal.model.Country> findByActive(
129 boolean active, int start, int end,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException;
132
133 public com.liferay.portal.model.Country findByActive_First(boolean active,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.NoSuchCountryException,
136 com.liferay.portal.SystemException;
137
138 public com.liferay.portal.model.Country findByActive_Last(boolean active,
139 com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.NoSuchCountryException,
141 com.liferay.portal.SystemException;
142
143 public com.liferay.portal.model.Country[] findByActive_PrevAndNext(
144 long countryId, boolean active,
145 com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.NoSuchCountryException,
147 com.liferay.portal.SystemException;
148
149 public java.util.List<Object> findWithDynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
151 throws com.liferay.portal.SystemException;
152
153 public java.util.List<Object> findWithDynamicQuery(
154 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
155 int end) throws com.liferay.portal.SystemException;
156
157 public java.util.List<com.liferay.portal.model.Country> findAll()
158 throws com.liferay.portal.SystemException;
159
160 public java.util.List<com.liferay.portal.model.Country> findAll(int start,
161 int end) throws com.liferay.portal.SystemException;
162
163 public java.util.List<com.liferay.portal.model.Country> findAll(int start,
164 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
165 throws com.liferay.portal.SystemException;
166
167 public void removeByName(java.lang.String name)
168 throws com.liferay.portal.NoSuchCountryException,
169 com.liferay.portal.SystemException;
170
171 public void removeByA2(java.lang.String a2)
172 throws com.liferay.portal.NoSuchCountryException,
173 com.liferay.portal.SystemException;
174
175 public void removeByA3(java.lang.String a3)
176 throws com.liferay.portal.NoSuchCountryException,
177 com.liferay.portal.SystemException;
178
179 public void removeByActive(boolean active)
180 throws com.liferay.portal.SystemException;
181
182 public void removeAll() throws com.liferay.portal.SystemException;
183
184 public int countByName(java.lang.String name)
185 throws com.liferay.portal.SystemException;
186
187 public int countByA2(java.lang.String a2)
188 throws com.liferay.portal.SystemException;
189
190 public int countByA3(java.lang.String a3)
191 throws com.liferay.portal.SystemException;
192
193 public int countByActive(boolean active)
194 throws com.liferay.portal.SystemException;
195
196 public int countAll() throws com.liferay.portal.SystemException;
197 }