001
014
015 package com.liferay.portlet.expando.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
029 public class ExpandoRowSoap implements Serializable {
030 public static ExpandoRowSoap toSoapModel(ExpandoRow model) {
031 ExpandoRowSoap soapModel = new ExpandoRowSoap();
032
033 soapModel.setRowId(model.getRowId());
034 soapModel.setCompanyId(model.getCompanyId());
035 soapModel.setModifiedDate(model.getModifiedDate());
036 soapModel.setTableId(model.getTableId());
037 soapModel.setClassPK(model.getClassPK());
038
039 return soapModel;
040 }
041
042 public static ExpandoRowSoap[] toSoapModels(ExpandoRow[] models) {
043 ExpandoRowSoap[] soapModels = new ExpandoRowSoap[models.length];
044
045 for (int i = 0; i < models.length; i++) {
046 soapModels[i] = toSoapModel(models[i]);
047 }
048
049 return soapModels;
050 }
051
052 public static ExpandoRowSoap[][] toSoapModels(ExpandoRow[][] models) {
053 ExpandoRowSoap[][] soapModels = null;
054
055 if (models.length > 0) {
056 soapModels = new ExpandoRowSoap[models.length][models[0].length];
057 }
058 else {
059 soapModels = new ExpandoRowSoap[0][0];
060 }
061
062 for (int i = 0; i < models.length; i++) {
063 soapModels[i] = toSoapModels(models[i]);
064 }
065
066 return soapModels;
067 }
068
069 public static ExpandoRowSoap[] toSoapModels(List<ExpandoRow> models) {
070 List<ExpandoRowSoap> soapModels = new ArrayList<ExpandoRowSoap>(models.size());
071
072 for (ExpandoRow model : models) {
073 soapModels.add(toSoapModel(model));
074 }
075
076 return soapModels.toArray(new ExpandoRowSoap[soapModels.size()]);
077 }
078
079 public ExpandoRowSoap() {
080 }
081
082 public long getPrimaryKey() {
083 return _rowId;
084 }
085
086 public void setPrimaryKey(long pk) {
087 setRowId(pk);
088 }
089
090 public long getRowId() {
091 return _rowId;
092 }
093
094 public void setRowId(long rowId) {
095 _rowId = rowId;
096 }
097
098 public long getCompanyId() {
099 return _companyId;
100 }
101
102 public void setCompanyId(long companyId) {
103 _companyId = companyId;
104 }
105
106 public Date getModifiedDate() {
107 return _modifiedDate;
108 }
109
110 public void setModifiedDate(Date modifiedDate) {
111 _modifiedDate = modifiedDate;
112 }
113
114 public long getTableId() {
115 return _tableId;
116 }
117
118 public void setTableId(long tableId) {
119 _tableId = tableId;
120 }
121
122 public long getClassPK() {
123 return _classPK;
124 }
125
126 public void setClassPK(long classPK) {
127 _classPK = classPK;
128 }
129
130 private long _rowId;
131 private long _companyId;
132 private Date _modifiedDate;
133 private long _tableId;
134 private long _classPK;
135 }