001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.tags.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.Date;
027: import java.util.List;
028:
029: /**
030: * <a href="TagsEntrySoap.java.html"><b><i>View Source</i></b></a>
031: *
032: * <p>
033: * ServiceBuilder generated this class. Modifications in this class will be
034: * overwritten the next time is generated.
035: * </p>
036: *
037: * <p>
038: * This class is used by
039: * <code>com.liferay.portlet.tags.service.http.TagsEntryServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.tags.service.http.TagsEntryServiceSoap
045: *
046: */
047: public class TagsEntrySoap implements Serializable {
048: public static TagsEntrySoap toSoapModel(TagsEntry model) {
049: TagsEntrySoap soapModel = new TagsEntrySoap();
050:
051: soapModel.setEntryId(model.getEntryId());
052: soapModel.setCompanyId(model.getCompanyId());
053: soapModel.setUserId(model.getUserId());
054: soapModel.setUserName(model.getUserName());
055: soapModel.setCreateDate(model.getCreateDate());
056: soapModel.setModifiedDate(model.getModifiedDate());
057: soapModel.setName(model.getName());
058:
059: return soapModel;
060: }
061:
062: public static TagsEntrySoap[] toSoapModels(List models) {
063: List soapModels = new ArrayList(models.size());
064:
065: for (int i = 0; i < models.size(); i++) {
066: TagsEntry model = (TagsEntry) models.get(i);
067:
068: soapModels.add(toSoapModel(model));
069: }
070:
071: return (TagsEntrySoap[]) soapModels
072: .toArray(new TagsEntrySoap[0]);
073: }
074:
075: public TagsEntrySoap() {
076: }
077:
078: public long getPrimaryKey() {
079: return _entryId;
080: }
081:
082: public void setPrimaryKey(long pk) {
083: setEntryId(pk);
084: }
085:
086: public long getEntryId() {
087: return _entryId;
088: }
089:
090: public void setEntryId(long entryId) {
091: _entryId = entryId;
092: }
093:
094: public long getCompanyId() {
095: return _companyId;
096: }
097:
098: public void setCompanyId(long companyId) {
099: _companyId = companyId;
100: }
101:
102: public long getUserId() {
103: return _userId;
104: }
105:
106: public void setUserId(long userId) {
107: _userId = userId;
108: }
109:
110: public String getUserName() {
111: return _userName;
112: }
113:
114: public void setUserName(String userName) {
115: _userName = userName;
116: }
117:
118: public Date getCreateDate() {
119: return _createDate;
120: }
121:
122: public void setCreateDate(Date createDate) {
123: _createDate = createDate;
124: }
125:
126: public Date getModifiedDate() {
127: return _modifiedDate;
128: }
129:
130: public void setModifiedDate(Date modifiedDate) {
131: _modifiedDate = modifiedDate;
132: }
133:
134: public String getName() {
135: return _name;
136: }
137:
138: public void setName(String name) {
139: _name = name;
140: }
141:
142: private long _entryId;
143: private long _companyId;
144: private long _userId;
145: private String _userName;
146: private Date _createDate;
147: private Date _modifiedDate;
148: private String _name;
149: }
|