001
014
015 package com.liferay.portlet.journal.model;
016
017 import com.liferay.portal.model.ModelWrapper;
018
019 import java.util.HashMap;
020 import java.util.Map;
021
022
031 public class JournalContentSearchWrapper implements JournalContentSearch,
032 ModelWrapper<JournalContentSearch> {
033 public JournalContentSearchWrapper(
034 JournalContentSearch journalContentSearch) {
035 _journalContentSearch = journalContentSearch;
036 }
037
038 public Class<?> getModelClass() {
039 return JournalContentSearch.class;
040 }
041
042 public String getModelClassName() {
043 return JournalContentSearch.class.getName();
044 }
045
046 public Map<String, Object> getModelAttributes() {
047 Map<String, Object> attributes = new HashMap<String, Object>();
048
049 attributes.put("contentSearchId", getContentSearchId());
050 attributes.put("groupId", getGroupId());
051 attributes.put("companyId", getCompanyId());
052 attributes.put("privateLayout", getPrivateLayout());
053 attributes.put("layoutId", getLayoutId());
054 attributes.put("portletId", getPortletId());
055 attributes.put("articleId", getArticleId());
056
057 return attributes;
058 }
059
060 public void setModelAttributes(Map<String, Object> attributes) {
061 Long contentSearchId = (Long)attributes.get("contentSearchId");
062
063 if (contentSearchId != null) {
064 setContentSearchId(contentSearchId);
065 }
066
067 Long groupId = (Long)attributes.get("groupId");
068
069 if (groupId != null) {
070 setGroupId(groupId);
071 }
072
073 Long companyId = (Long)attributes.get("companyId");
074
075 if (companyId != null) {
076 setCompanyId(companyId);
077 }
078
079 Boolean privateLayout = (Boolean)attributes.get("privateLayout");
080
081 if (privateLayout != null) {
082 setPrivateLayout(privateLayout);
083 }
084
085 Long layoutId = (Long)attributes.get("layoutId");
086
087 if (layoutId != null) {
088 setLayoutId(layoutId);
089 }
090
091 String portletId = (String)attributes.get("portletId");
092
093 if (portletId != null) {
094 setPortletId(portletId);
095 }
096
097 String articleId = (String)attributes.get("articleId");
098
099 if (articleId != null) {
100 setArticleId(articleId);
101 }
102 }
103
104
109 public long getPrimaryKey() {
110 return _journalContentSearch.getPrimaryKey();
111 }
112
113
118 public void setPrimaryKey(long primaryKey) {
119 _journalContentSearch.setPrimaryKey(primaryKey);
120 }
121
122
127 public long getContentSearchId() {
128 return _journalContentSearch.getContentSearchId();
129 }
130
131
136 public void setContentSearchId(long contentSearchId) {
137 _journalContentSearch.setContentSearchId(contentSearchId);
138 }
139
140
145 public long getGroupId() {
146 return _journalContentSearch.getGroupId();
147 }
148
149
154 public void setGroupId(long groupId) {
155 _journalContentSearch.setGroupId(groupId);
156 }
157
158
163 public long getCompanyId() {
164 return _journalContentSearch.getCompanyId();
165 }
166
167
172 public void setCompanyId(long companyId) {
173 _journalContentSearch.setCompanyId(companyId);
174 }
175
176
181 public boolean getPrivateLayout() {
182 return _journalContentSearch.getPrivateLayout();
183 }
184
185
190 public boolean isPrivateLayout() {
191 return _journalContentSearch.isPrivateLayout();
192 }
193
194
199 public void setPrivateLayout(boolean privateLayout) {
200 _journalContentSearch.setPrivateLayout(privateLayout);
201 }
202
203
208 public long getLayoutId() {
209 return _journalContentSearch.getLayoutId();
210 }
211
212
217 public void setLayoutId(long layoutId) {
218 _journalContentSearch.setLayoutId(layoutId);
219 }
220
221
226 public java.lang.String getPortletId() {
227 return _journalContentSearch.getPortletId();
228 }
229
230
235 public void setPortletId(java.lang.String portletId) {
236 _journalContentSearch.setPortletId(portletId);
237 }
238
239
244 public java.lang.String getArticleId() {
245 return _journalContentSearch.getArticleId();
246 }
247
248
253 public void setArticleId(java.lang.String articleId) {
254 _journalContentSearch.setArticleId(articleId);
255 }
256
257 public boolean isNew() {
258 return _journalContentSearch.isNew();
259 }
260
261 public void setNew(boolean n) {
262 _journalContentSearch.setNew(n);
263 }
264
265 public boolean isCachedModel() {
266 return _journalContentSearch.isCachedModel();
267 }
268
269 public void setCachedModel(boolean cachedModel) {
270 _journalContentSearch.setCachedModel(cachedModel);
271 }
272
273 public boolean isEscapedModel() {
274 return _journalContentSearch.isEscapedModel();
275 }
276
277 public java.io.Serializable getPrimaryKeyObj() {
278 return _journalContentSearch.getPrimaryKeyObj();
279 }
280
281 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
282 _journalContentSearch.setPrimaryKeyObj(primaryKeyObj);
283 }
284
285 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
286 return _journalContentSearch.getExpandoBridge();
287 }
288
289 public void setExpandoBridgeAttributes(
290 com.liferay.portal.service.ServiceContext serviceContext) {
291 _journalContentSearch.setExpandoBridgeAttributes(serviceContext);
292 }
293
294 @Override
295 public java.lang.Object clone() {
296 return new JournalContentSearchWrapper((JournalContentSearch)_journalContentSearch.clone());
297 }
298
299 public int compareTo(
300 com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch) {
301 return _journalContentSearch.compareTo(journalContentSearch);
302 }
303
304 @Override
305 public int hashCode() {
306 return _journalContentSearch.hashCode();
307 }
308
309 public com.liferay.portal.model.CacheModel<com.liferay.portlet.journal.model.JournalContentSearch> toCacheModel() {
310 return _journalContentSearch.toCacheModel();
311 }
312
313 public com.liferay.portlet.journal.model.JournalContentSearch toEscapedModel() {
314 return new JournalContentSearchWrapper(_journalContentSearch.toEscapedModel());
315 }
316
317 @Override
318 public java.lang.String toString() {
319 return _journalContentSearch.toString();
320 }
321
322 public java.lang.String toXmlString() {
323 return _journalContentSearch.toXmlString();
324 }
325
326 public void persist()
327 throws com.liferay.portal.kernel.exception.SystemException {
328 _journalContentSearch.persist();
329 }
330
331
334 public JournalContentSearch getWrappedJournalContentSearch() {
335 return _journalContentSearch;
336 }
337
338 public JournalContentSearch getWrappedModel() {
339 return _journalContentSearch;
340 }
341
342 public void resetOriginalValues() {
343 _journalContentSearch.resetOriginalValues();
344 }
345
346 private JournalContentSearch _journalContentSearch;
347 }