001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import java.util.HashMap;
018    import java.util.Map;
019    
020    /**
021     * <p>
022     * This class is a wrapper for {@link LayoutBranch}.
023     * </p>
024     *
025     * @author    Brian Wing Shun Chan
026     * @see       LayoutBranch
027     * @generated
028     */
029    public class LayoutBranchWrapper implements LayoutBranch,
030            ModelWrapper<LayoutBranch> {
031            public LayoutBranchWrapper(LayoutBranch layoutBranch) {
032                    _layoutBranch = layoutBranch;
033            }
034    
035            public Class<?> getModelClass() {
036                    return LayoutBranch.class;
037            }
038    
039            public String getModelClassName() {
040                    return LayoutBranch.class.getName();
041            }
042    
043            public Map<String, Object> getModelAttributes() {
044                    Map<String, Object> attributes = new HashMap<String, Object>();
045    
046                    attributes.put("LayoutBranchId", getLayoutBranchId());
047                    attributes.put("groupId", getGroupId());
048                    attributes.put("companyId", getCompanyId());
049                    attributes.put("userId", getUserId());
050                    attributes.put("userName", getUserName());
051                    attributes.put("layoutSetBranchId", getLayoutSetBranchId());
052                    attributes.put("plid", getPlid());
053                    attributes.put("name", getName());
054                    attributes.put("description", getDescription());
055                    attributes.put("master", getMaster());
056    
057                    return attributes;
058            }
059    
060            public void setModelAttributes(Map<String, Object> attributes) {
061                    Long LayoutBranchId = (Long)attributes.get("LayoutBranchId");
062    
063                    if (LayoutBranchId != null) {
064                            setLayoutBranchId(LayoutBranchId);
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                    Long userId = (Long)attributes.get("userId");
080    
081                    if (userId != null) {
082                            setUserId(userId);
083                    }
084    
085                    String userName = (String)attributes.get("userName");
086    
087                    if (userName != null) {
088                            setUserName(userName);
089                    }
090    
091                    Long layoutSetBranchId = (Long)attributes.get("layoutSetBranchId");
092    
093                    if (layoutSetBranchId != null) {
094                            setLayoutSetBranchId(layoutSetBranchId);
095                    }
096    
097                    Long plid = (Long)attributes.get("plid");
098    
099                    if (plid != null) {
100                            setPlid(plid);
101                    }
102    
103                    String name = (String)attributes.get("name");
104    
105                    if (name != null) {
106                            setName(name);
107                    }
108    
109                    String description = (String)attributes.get("description");
110    
111                    if (description != null) {
112                            setDescription(description);
113                    }
114    
115                    Boolean master = (Boolean)attributes.get("master");
116    
117                    if (master != null) {
118                            setMaster(master);
119                    }
120            }
121    
122            /**
123            * Returns the primary key of this layout branch.
124            *
125            * @return the primary key of this layout branch
126            */
127            public long getPrimaryKey() {
128                    return _layoutBranch.getPrimaryKey();
129            }
130    
131            /**
132            * Sets the primary key of this layout branch.
133            *
134            * @param primaryKey the primary key of this layout branch
135            */
136            public void setPrimaryKey(long primaryKey) {
137                    _layoutBranch.setPrimaryKey(primaryKey);
138            }
139    
140            /**
141            * Returns the layout branch ID of this layout branch.
142            *
143            * @return the layout branch ID of this layout branch
144            */
145            public long getLayoutBranchId() {
146                    return _layoutBranch.getLayoutBranchId();
147            }
148    
149            /**
150            * Sets the layout branch ID of this layout branch.
151            *
152            * @param LayoutBranchId the layout branch ID of this layout branch
153            */
154            public void setLayoutBranchId(long LayoutBranchId) {
155                    _layoutBranch.setLayoutBranchId(LayoutBranchId);
156            }
157    
158            /**
159            * Returns the group ID of this layout branch.
160            *
161            * @return the group ID of this layout branch
162            */
163            public long getGroupId() {
164                    return _layoutBranch.getGroupId();
165            }
166    
167            /**
168            * Sets the group ID of this layout branch.
169            *
170            * @param groupId the group ID of this layout branch
171            */
172            public void setGroupId(long groupId) {
173                    _layoutBranch.setGroupId(groupId);
174            }
175    
176            /**
177            * Returns the company ID of this layout branch.
178            *
179            * @return the company ID of this layout branch
180            */
181            public long getCompanyId() {
182                    return _layoutBranch.getCompanyId();
183            }
184    
185            /**
186            * Sets the company ID of this layout branch.
187            *
188            * @param companyId the company ID of this layout branch
189            */
190            public void setCompanyId(long companyId) {
191                    _layoutBranch.setCompanyId(companyId);
192            }
193    
194            /**
195            * Returns the user ID of this layout branch.
196            *
197            * @return the user ID of this layout branch
198            */
199            public long getUserId() {
200                    return _layoutBranch.getUserId();
201            }
202    
203            /**
204            * Sets the user ID of this layout branch.
205            *
206            * @param userId the user ID of this layout branch
207            */
208            public void setUserId(long userId) {
209                    _layoutBranch.setUserId(userId);
210            }
211    
212            /**
213            * Returns the user uuid of this layout branch.
214            *
215            * @return the user uuid of this layout branch
216            * @throws SystemException if a system exception occurred
217            */
218            public java.lang.String getUserUuid()
219                    throws com.liferay.portal.kernel.exception.SystemException {
220                    return _layoutBranch.getUserUuid();
221            }
222    
223            /**
224            * Sets the user uuid of this layout branch.
225            *
226            * @param userUuid the user uuid of this layout branch
227            */
228            public void setUserUuid(java.lang.String userUuid) {
229                    _layoutBranch.setUserUuid(userUuid);
230            }
231    
232            /**
233            * Returns the user name of this layout branch.
234            *
235            * @return the user name of this layout branch
236            */
237            public java.lang.String getUserName() {
238                    return _layoutBranch.getUserName();
239            }
240    
241            /**
242            * Sets the user name of this layout branch.
243            *
244            * @param userName the user name of this layout branch
245            */
246            public void setUserName(java.lang.String userName) {
247                    _layoutBranch.setUserName(userName);
248            }
249    
250            /**
251            * Returns the layout set branch ID of this layout branch.
252            *
253            * @return the layout set branch ID of this layout branch
254            */
255            public long getLayoutSetBranchId() {
256                    return _layoutBranch.getLayoutSetBranchId();
257            }
258    
259            /**
260            * Sets the layout set branch ID of this layout branch.
261            *
262            * @param layoutSetBranchId the layout set branch ID of this layout branch
263            */
264            public void setLayoutSetBranchId(long layoutSetBranchId) {
265                    _layoutBranch.setLayoutSetBranchId(layoutSetBranchId);
266            }
267    
268            /**
269            * Returns the plid of this layout branch.
270            *
271            * @return the plid of this layout branch
272            */
273            public long getPlid() {
274                    return _layoutBranch.getPlid();
275            }
276    
277            /**
278            * Sets the plid of this layout branch.
279            *
280            * @param plid the plid of this layout branch
281            */
282            public void setPlid(long plid) {
283                    _layoutBranch.setPlid(plid);
284            }
285    
286            /**
287            * Returns the name of this layout branch.
288            *
289            * @return the name of this layout branch
290            */
291            public java.lang.String getName() {
292                    return _layoutBranch.getName();
293            }
294    
295            /**
296            * Sets the name of this layout branch.
297            *
298            * @param name the name of this layout branch
299            */
300            public void setName(java.lang.String name) {
301                    _layoutBranch.setName(name);
302            }
303    
304            /**
305            * Returns the description of this layout branch.
306            *
307            * @return the description of this layout branch
308            */
309            public java.lang.String getDescription() {
310                    return _layoutBranch.getDescription();
311            }
312    
313            /**
314            * Sets the description of this layout branch.
315            *
316            * @param description the description of this layout branch
317            */
318            public void setDescription(java.lang.String description) {
319                    _layoutBranch.setDescription(description);
320            }
321    
322            /**
323            * Returns the master of this layout branch.
324            *
325            * @return the master of this layout branch
326            */
327            public boolean getMaster() {
328                    return _layoutBranch.getMaster();
329            }
330    
331            /**
332            * Returns <code>true</code> if this layout branch is master.
333            *
334            * @return <code>true</code> if this layout branch is master; <code>false</code> otherwise
335            */
336            public boolean isMaster() {
337                    return _layoutBranch.isMaster();
338            }
339    
340            /**
341            * Sets whether this layout branch is master.
342            *
343            * @param master the master of this layout branch
344            */
345            public void setMaster(boolean master) {
346                    _layoutBranch.setMaster(master);
347            }
348    
349            public boolean isNew() {
350                    return _layoutBranch.isNew();
351            }
352    
353            public void setNew(boolean n) {
354                    _layoutBranch.setNew(n);
355            }
356    
357            public boolean isCachedModel() {
358                    return _layoutBranch.isCachedModel();
359            }
360    
361            public void setCachedModel(boolean cachedModel) {
362                    _layoutBranch.setCachedModel(cachedModel);
363            }
364    
365            public boolean isEscapedModel() {
366                    return _layoutBranch.isEscapedModel();
367            }
368    
369            public java.io.Serializable getPrimaryKeyObj() {
370                    return _layoutBranch.getPrimaryKeyObj();
371            }
372    
373            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
374                    _layoutBranch.setPrimaryKeyObj(primaryKeyObj);
375            }
376    
377            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
378                    return _layoutBranch.getExpandoBridge();
379            }
380    
381            public void setExpandoBridgeAttributes(
382                    com.liferay.portal.service.ServiceContext serviceContext) {
383                    _layoutBranch.setExpandoBridgeAttributes(serviceContext);
384            }
385    
386            @Override
387            public java.lang.Object clone() {
388                    return new LayoutBranchWrapper((LayoutBranch)_layoutBranch.clone());
389            }
390    
391            public int compareTo(com.liferay.portal.model.LayoutBranch layoutBranch) {
392                    return _layoutBranch.compareTo(layoutBranch);
393            }
394    
395            @Override
396            public int hashCode() {
397                    return _layoutBranch.hashCode();
398            }
399    
400            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.LayoutBranch> toCacheModel() {
401                    return _layoutBranch.toCacheModel();
402            }
403    
404            public com.liferay.portal.model.LayoutBranch toEscapedModel() {
405                    return new LayoutBranchWrapper(_layoutBranch.toEscapedModel());
406            }
407    
408            public com.liferay.portal.model.LayoutBranch toUnescapedModel() {
409                    return new LayoutBranchWrapper(_layoutBranch.toUnescapedModel());
410            }
411    
412            @Override
413            public java.lang.String toString() {
414                    return _layoutBranch.toString();
415            }
416    
417            public java.lang.String toXmlString() {
418                    return _layoutBranch.toXmlString();
419            }
420    
421            public void persist()
422                    throws com.liferay.portal.kernel.exception.SystemException {
423                    _layoutBranch.persist();
424            }
425    
426            /**
427             * @deprecated Renamed to {@link #getWrappedModel}
428             */
429            public LayoutBranch getWrappedLayoutBranch() {
430                    return _layoutBranch;
431            }
432    
433            public LayoutBranch getWrappedModel() {
434                    return _layoutBranch;
435            }
436    
437            public void resetOriginalValues() {
438                    _layoutBranch.resetOriginalValues();
439            }
440    
441            private LayoutBranch _layoutBranch;
442    }