1
14
15 package com.liferay.portlet.expando.model;
16
17 import java.io.Serializable;
18
19 import java.util.ArrayList;
20 import java.util.List;
21
22
39 public class ExpandoRowSoap implements Serializable {
40 public static ExpandoRowSoap toSoapModel(ExpandoRow model) {
41 ExpandoRowSoap soapModel = new ExpandoRowSoap();
42
43 soapModel.setRowId(model.getRowId());
44 soapModel.setCompanyId(model.getCompanyId());
45 soapModel.setTableId(model.getTableId());
46 soapModel.setClassPK(model.getClassPK());
47
48 return soapModel;
49 }
50
51 public static ExpandoRowSoap[] toSoapModels(ExpandoRow[] models) {
52 ExpandoRowSoap[] soapModels = new ExpandoRowSoap[models.length];
53
54 for (int i = 0; i < models.length; i++) {
55 soapModels[i] = toSoapModel(models[i]);
56 }
57
58 return soapModels;
59 }
60
61 public static ExpandoRowSoap[][] toSoapModels(ExpandoRow[][] models) {
62 ExpandoRowSoap[][] soapModels = null;
63
64 if (models.length > 0) {
65 soapModels = new ExpandoRowSoap[models.length][models[0].length];
66 }
67 else {
68 soapModels = new ExpandoRowSoap[0][0];
69 }
70
71 for (int i = 0; i < models.length; i++) {
72 soapModels[i] = toSoapModels(models[i]);
73 }
74
75 return soapModels;
76 }
77
78 public static ExpandoRowSoap[] toSoapModels(List<ExpandoRow> models) {
79 List<ExpandoRowSoap> soapModels = new ArrayList<ExpandoRowSoap>(models.size());
80
81 for (ExpandoRow model : models) {
82 soapModels.add(toSoapModel(model));
83 }
84
85 return soapModels.toArray(new ExpandoRowSoap[soapModels.size()]);
86 }
87
88 public ExpandoRowSoap() {
89 }
90
91 public long getPrimaryKey() {
92 return _rowId;
93 }
94
95 public void setPrimaryKey(long pk) {
96 setRowId(pk);
97 }
98
99 public long getRowId() {
100 return _rowId;
101 }
102
103 public void setRowId(long rowId) {
104 _rowId = rowId;
105 }
106
107 public long getCompanyId() {
108 return _companyId;
109 }
110
111 public void setCompanyId(long companyId) {
112 _companyId = companyId;
113 }
114
115 public long getTableId() {
116 return _tableId;
117 }
118
119 public void setTableId(long tableId) {
120 _tableId = tableId;
121 }
122
123 public long getClassPK() {
124 return _classPK;
125 }
126
127 public void setClassPK(long classPK) {
128 _classPK = classPK;
129 }
130
131 private long _rowId;
132 private long _companyId;
133 private long _tableId;
134 private long _classPK;
135 }