001
014
015 package com.liferay.portlet.messageboards.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 MBThreadFlagSoap implements Serializable {
030 public static MBThreadFlagSoap toSoapModel(MBThreadFlag model) {
031 MBThreadFlagSoap soapModel = new MBThreadFlagSoap();
032
033 soapModel.setThreadFlagId(model.getThreadFlagId());
034 soapModel.setUserId(model.getUserId());
035 soapModel.setModifiedDate(model.getModifiedDate());
036 soapModel.setThreadId(model.getThreadId());
037
038 return soapModel;
039 }
040
041 public static MBThreadFlagSoap[] toSoapModels(MBThreadFlag[] models) {
042 MBThreadFlagSoap[] soapModels = new MBThreadFlagSoap[models.length];
043
044 for (int i = 0; i < models.length; i++) {
045 soapModels[i] = toSoapModel(models[i]);
046 }
047
048 return soapModels;
049 }
050
051 public static MBThreadFlagSoap[][] toSoapModels(MBThreadFlag[][] models) {
052 MBThreadFlagSoap[][] soapModels = null;
053
054 if (models.length > 0) {
055 soapModels = new MBThreadFlagSoap[models.length][models[0].length];
056 }
057 else {
058 soapModels = new MBThreadFlagSoap[0][0];
059 }
060
061 for (int i = 0; i < models.length; i++) {
062 soapModels[i] = toSoapModels(models[i]);
063 }
064
065 return soapModels;
066 }
067
068 public static MBThreadFlagSoap[] toSoapModels(List<MBThreadFlag> models) {
069 List<MBThreadFlagSoap> soapModels = new ArrayList<MBThreadFlagSoap>(models.size());
070
071 for (MBThreadFlag model : models) {
072 soapModels.add(toSoapModel(model));
073 }
074
075 return soapModels.toArray(new MBThreadFlagSoap[soapModels.size()]);
076 }
077
078 public MBThreadFlagSoap() {
079 }
080
081 public long getPrimaryKey() {
082 return _threadFlagId;
083 }
084
085 public void setPrimaryKey(long pk) {
086 setThreadFlagId(pk);
087 }
088
089 public long getThreadFlagId() {
090 return _threadFlagId;
091 }
092
093 public void setThreadFlagId(long threadFlagId) {
094 _threadFlagId = threadFlagId;
095 }
096
097 public long getUserId() {
098 return _userId;
099 }
100
101 public void setUserId(long userId) {
102 _userId = userId;
103 }
104
105 public Date getModifiedDate() {
106 return _modifiedDate;
107 }
108
109 public void setModifiedDate(Date modifiedDate) {
110 _modifiedDate = modifiedDate;
111 }
112
113 public long getThreadId() {
114 return _threadId;
115 }
116
117 public void setThreadId(long threadId) {
118 _threadId = threadId;
119 }
120
121 private long _threadFlagId;
122 private long _userId;
123 private Date _modifiedDate;
124 private long _threadId;
125 }