001    /**
002     * Copyright (c) 2000-2013 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.portlet.mobiledevicerules.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.mobiledevicerules.service.http.MDRRuleGroupInstanceServiceSoap}.
025     *
026     * @author Edward C. Han
027     * @see com.liferay.portlet.mobiledevicerules.service.http.MDRRuleGroupInstanceServiceSoap
028     * @generated
029     */
030    public class MDRRuleGroupInstanceSoap implements Serializable {
031            public static MDRRuleGroupInstanceSoap toSoapModel(
032                    MDRRuleGroupInstance model) {
033                    MDRRuleGroupInstanceSoap soapModel = new MDRRuleGroupInstanceSoap();
034    
035                    soapModel.setUuid(model.getUuid());
036                    soapModel.setRuleGroupInstanceId(model.getRuleGroupInstanceId());
037                    soapModel.setGroupId(model.getGroupId());
038                    soapModel.setCompanyId(model.getCompanyId());
039                    soapModel.setUserId(model.getUserId());
040                    soapModel.setUserName(model.getUserName());
041                    soapModel.setCreateDate(model.getCreateDate());
042                    soapModel.setModifiedDate(model.getModifiedDate());
043                    soapModel.setClassNameId(model.getClassNameId());
044                    soapModel.setClassPK(model.getClassPK());
045                    soapModel.setRuleGroupId(model.getRuleGroupId());
046                    soapModel.setPriority(model.getPriority());
047    
048                    return soapModel;
049            }
050    
051            public static MDRRuleGroupInstanceSoap[] toSoapModels(
052                    MDRRuleGroupInstance[] models) {
053                    MDRRuleGroupInstanceSoap[] soapModels = new MDRRuleGroupInstanceSoap[models.length];
054    
055                    for (int i = 0; i < models.length; i++) {
056                            soapModels[i] = toSoapModel(models[i]);
057                    }
058    
059                    return soapModels;
060            }
061    
062            public static MDRRuleGroupInstanceSoap[][] toSoapModels(
063                    MDRRuleGroupInstance[][] models) {
064                    MDRRuleGroupInstanceSoap[][] soapModels = null;
065    
066                    if (models.length > 0) {
067                            soapModels = new MDRRuleGroupInstanceSoap[models.length][models[0].length];
068                    }
069                    else {
070                            soapModels = new MDRRuleGroupInstanceSoap[0][0];
071                    }
072    
073                    for (int i = 0; i < models.length; i++) {
074                            soapModels[i] = toSoapModels(models[i]);
075                    }
076    
077                    return soapModels;
078            }
079    
080            public static MDRRuleGroupInstanceSoap[] toSoapModels(
081                    List<MDRRuleGroupInstance> models) {
082                    List<MDRRuleGroupInstanceSoap> soapModels = new ArrayList<MDRRuleGroupInstanceSoap>(models.size());
083    
084                    for (MDRRuleGroupInstance model : models) {
085                            soapModels.add(toSoapModel(model));
086                    }
087    
088                    return soapModels.toArray(new MDRRuleGroupInstanceSoap[soapModels.size()]);
089            }
090    
091            public MDRRuleGroupInstanceSoap() {
092            }
093    
094            public long getPrimaryKey() {
095                    return _ruleGroupInstanceId;
096            }
097    
098            public void setPrimaryKey(long pk) {
099                    setRuleGroupInstanceId(pk);
100            }
101    
102            public String getUuid() {
103                    return _uuid;
104            }
105    
106            public void setUuid(String uuid) {
107                    _uuid = uuid;
108            }
109    
110            public long getRuleGroupInstanceId() {
111                    return _ruleGroupInstanceId;
112            }
113    
114            public void setRuleGroupInstanceId(long ruleGroupInstanceId) {
115                    _ruleGroupInstanceId = ruleGroupInstanceId;
116            }
117    
118            public long getGroupId() {
119                    return _groupId;
120            }
121    
122            public void setGroupId(long groupId) {
123                    _groupId = groupId;
124            }
125    
126            public long getCompanyId() {
127                    return _companyId;
128            }
129    
130            public void setCompanyId(long companyId) {
131                    _companyId = companyId;
132            }
133    
134            public long getUserId() {
135                    return _userId;
136            }
137    
138            public void setUserId(long userId) {
139                    _userId = userId;
140            }
141    
142            public String getUserName() {
143                    return _userName;
144            }
145    
146            public void setUserName(String userName) {
147                    _userName = userName;
148            }
149    
150            public Date getCreateDate() {
151                    return _createDate;
152            }
153    
154            public void setCreateDate(Date createDate) {
155                    _createDate = createDate;
156            }
157    
158            public Date getModifiedDate() {
159                    return _modifiedDate;
160            }
161    
162            public void setModifiedDate(Date modifiedDate) {
163                    _modifiedDate = modifiedDate;
164            }
165    
166            public long getClassNameId() {
167                    return _classNameId;
168            }
169    
170            public void setClassNameId(long classNameId) {
171                    _classNameId = classNameId;
172            }
173    
174            public long getClassPK() {
175                    return _classPK;
176            }
177    
178            public void setClassPK(long classPK) {
179                    _classPK = classPK;
180            }
181    
182            public long getRuleGroupId() {
183                    return _ruleGroupId;
184            }
185    
186            public void setRuleGroupId(long ruleGroupId) {
187                    _ruleGroupId = ruleGroupId;
188            }
189    
190            public int getPriority() {
191                    return _priority;
192            }
193    
194            public void setPriority(int priority) {
195                    _priority = priority;
196            }
197    
198            private String _uuid;
199            private long _ruleGroupInstanceId;
200            private long _groupId;
201            private long _companyId;
202            private long _userId;
203            private String _userName;
204            private Date _createDate;
205            private Date _modifiedDate;
206            private long _classNameId;
207            private long _classPK;
208            private long _ruleGroupId;
209            private int _priority;
210    }