001
014
015 package com.liferay.portal.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import java.io.Serializable;
020
021 import java.util.ArrayList;
022 import java.util.List;
023
024
030 @ProviderType
031 public class RecentLayoutSetBranchSoap implements Serializable {
032 public static RecentLayoutSetBranchSoap toSoapModel(
033 RecentLayoutSetBranch model) {
034 RecentLayoutSetBranchSoap soapModel = new RecentLayoutSetBranchSoap();
035
036 soapModel.setMvccVersion(model.getMvccVersion());
037 soapModel.setRecentLayoutSetBranchId(model.getRecentLayoutSetBranchId());
038 soapModel.setGroupId(model.getGroupId());
039 soapModel.setCompanyId(model.getCompanyId());
040 soapModel.setUserId(model.getUserId());
041 soapModel.setLayoutSetBranchId(model.getLayoutSetBranchId());
042 soapModel.setLayoutSetId(model.getLayoutSetId());
043
044 return soapModel;
045 }
046
047 public static RecentLayoutSetBranchSoap[] toSoapModels(
048 RecentLayoutSetBranch[] models) {
049 RecentLayoutSetBranchSoap[] soapModels = new RecentLayoutSetBranchSoap[models.length];
050
051 for (int i = 0; i < models.length; i++) {
052 soapModels[i] = toSoapModel(models[i]);
053 }
054
055 return soapModels;
056 }
057
058 public static RecentLayoutSetBranchSoap[][] toSoapModels(
059 RecentLayoutSetBranch[][] models) {
060 RecentLayoutSetBranchSoap[][] soapModels = null;
061
062 if (models.length > 0) {
063 soapModels = new RecentLayoutSetBranchSoap[models.length][models[0].length];
064 }
065 else {
066 soapModels = new RecentLayoutSetBranchSoap[0][0];
067 }
068
069 for (int i = 0; i < models.length; i++) {
070 soapModels[i] = toSoapModels(models[i]);
071 }
072
073 return soapModels;
074 }
075
076 public static RecentLayoutSetBranchSoap[] toSoapModels(
077 List<RecentLayoutSetBranch> models) {
078 List<RecentLayoutSetBranchSoap> soapModels = new ArrayList<RecentLayoutSetBranchSoap>(models.size());
079
080 for (RecentLayoutSetBranch model : models) {
081 soapModels.add(toSoapModel(model));
082 }
083
084 return soapModels.toArray(new RecentLayoutSetBranchSoap[soapModels.size()]);
085 }
086
087 public RecentLayoutSetBranchSoap() {
088 }
089
090 public long getPrimaryKey() {
091 return _recentLayoutSetBranchId;
092 }
093
094 public void setPrimaryKey(long pk) {
095 setRecentLayoutSetBranchId(pk);
096 }
097
098 public long getMvccVersion() {
099 return _mvccVersion;
100 }
101
102 public void setMvccVersion(long mvccVersion) {
103 _mvccVersion = mvccVersion;
104 }
105
106 public long getRecentLayoutSetBranchId() {
107 return _recentLayoutSetBranchId;
108 }
109
110 public void setRecentLayoutSetBranchId(long recentLayoutSetBranchId) {
111 _recentLayoutSetBranchId = recentLayoutSetBranchId;
112 }
113
114 public long getGroupId() {
115 return _groupId;
116 }
117
118 public void setGroupId(long groupId) {
119 _groupId = groupId;
120 }
121
122 public long getCompanyId() {
123 return _companyId;
124 }
125
126 public void setCompanyId(long companyId) {
127 _companyId = companyId;
128 }
129
130 public long getUserId() {
131 return _userId;
132 }
133
134 public void setUserId(long userId) {
135 _userId = userId;
136 }
137
138 public long getLayoutSetBranchId() {
139 return _layoutSetBranchId;
140 }
141
142 public void setLayoutSetBranchId(long layoutSetBranchId) {
143 _layoutSetBranchId = layoutSetBranchId;
144 }
145
146 public long getLayoutSetId() {
147 return _layoutSetId;
148 }
149
150 public void setLayoutSetId(long layoutSetId) {
151 _layoutSetId = layoutSetId;
152 }
153
154 private long _mvccVersion;
155 private long _recentLayoutSetBranchId;
156 private long _groupId;
157 private long _companyId;
158 private long _userId;
159 private long _layoutSetBranchId;
160 private long _layoutSetId;
161 }