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