001
014
015 package com.liferay.portlet.announcements.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
030 public class AnnouncementsFlagSoap implements Serializable {
031 public static AnnouncementsFlagSoap toSoapModel(AnnouncementsFlag model) {
032 AnnouncementsFlagSoap soapModel = new AnnouncementsFlagSoap();
033
034 soapModel.setFlagId(model.getFlagId());
035 soapModel.setUserId(model.getUserId());
036 soapModel.setCreateDate(model.getCreateDate());
037 soapModel.setEntryId(model.getEntryId());
038 soapModel.setValue(model.getValue());
039
040 return soapModel;
041 }
042
043 public static AnnouncementsFlagSoap[] toSoapModels(
044 AnnouncementsFlag[] models) {
045 AnnouncementsFlagSoap[] soapModels = new AnnouncementsFlagSoap[models.length];
046
047 for (int i = 0; i < models.length; i++) {
048 soapModels[i] = toSoapModel(models[i]);
049 }
050
051 return soapModels;
052 }
053
054 public static AnnouncementsFlagSoap[][] toSoapModels(
055 AnnouncementsFlag[][] models) {
056 AnnouncementsFlagSoap[][] soapModels = null;
057
058 if (models.length > 0) {
059 soapModels = new AnnouncementsFlagSoap[models.length][models[0].length];
060 }
061 else {
062 soapModels = new AnnouncementsFlagSoap[0][0];
063 }
064
065 for (int i = 0; i < models.length; i++) {
066 soapModels[i] = toSoapModels(models[i]);
067 }
068
069 return soapModels;
070 }
071
072 public static AnnouncementsFlagSoap[] toSoapModels(
073 List<AnnouncementsFlag> models) {
074 List<AnnouncementsFlagSoap> soapModels = new ArrayList<AnnouncementsFlagSoap>(models.size());
075
076 for (AnnouncementsFlag model : models) {
077 soapModels.add(toSoapModel(model));
078 }
079
080 return soapModels.toArray(new AnnouncementsFlagSoap[soapModels.size()]);
081 }
082
083 public AnnouncementsFlagSoap() {
084 }
085
086 public long getPrimaryKey() {
087 return _flagId;
088 }
089
090 public void setPrimaryKey(long pk) {
091 setFlagId(pk);
092 }
093
094 public long getFlagId() {
095 return _flagId;
096 }
097
098 public void setFlagId(long flagId) {
099 _flagId = flagId;
100 }
101
102 public long getUserId() {
103 return _userId;
104 }
105
106 public void setUserId(long userId) {
107 _userId = userId;
108 }
109
110 public Date getCreateDate() {
111 return _createDate;
112 }
113
114 public void setCreateDate(Date createDate) {
115 _createDate = createDate;
116 }
117
118 public long getEntryId() {
119 return _entryId;
120 }
121
122 public void setEntryId(long entryId) {
123 _entryId = entryId;
124 }
125
126 public int getValue() {
127 return _value;
128 }
129
130 public void setValue(int value) {
131 _value = value;
132 }
133
134 private long _flagId;
135 private long _userId;
136 private Date _createDate;
137 private long _entryId;
138 private int _value;
139 }