1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="AssetTagStatsSoap.java.html"><b><i>View Source</i></b></a>
24   *
25   * <p>
26   * ServiceBuilder generated this class. Modifications in this class will be
27   * overwritten the next time is generated.
28   * </p>
29   *
30   * <p>
31   * This class is used by
32   * {@link com.liferay.portlet.asset.service.http.AssetTagStatsServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portlet.asset.service.http.AssetTagStatsServiceSoap
37   * @generated
38   */
39  public class AssetTagStatsSoap implements Serializable {
40      public static AssetTagStatsSoap toSoapModel(AssetTagStats model) {
41          AssetTagStatsSoap soapModel = new AssetTagStatsSoap();
42  
43          soapModel.setTagStatsId(model.getTagStatsId());
44          soapModel.setTagId(model.getTagId());
45          soapModel.setClassNameId(model.getClassNameId());
46          soapModel.setAssetCount(model.getAssetCount());
47  
48          return soapModel;
49      }
50  
51      public static AssetTagStatsSoap[] toSoapModels(AssetTagStats[] models) {
52          AssetTagStatsSoap[] soapModels = new AssetTagStatsSoap[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 AssetTagStatsSoap[][] toSoapModels(AssetTagStats[][] models) {
62          AssetTagStatsSoap[][] soapModels = null;
63  
64          if (models.length > 0) {
65              soapModels = new AssetTagStatsSoap[models.length][models[0].length];
66          }
67          else {
68              soapModels = new AssetTagStatsSoap[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 AssetTagStatsSoap[] toSoapModels(List<AssetTagStats> models) {
79          List<AssetTagStatsSoap> soapModels = new ArrayList<AssetTagStatsSoap>(models.size());
80  
81          for (AssetTagStats model : models) {
82              soapModels.add(toSoapModel(model));
83          }
84  
85          return soapModels.toArray(new AssetTagStatsSoap[soapModels.size()]);
86      }
87  
88      public AssetTagStatsSoap() {
89      }
90  
91      public long getPrimaryKey() {
92          return _tagStatsId;
93      }
94  
95      public void setPrimaryKey(long pk) {
96          setTagStatsId(pk);
97      }
98  
99      public long getTagStatsId() {
100         return _tagStatsId;
101     }
102 
103     public void setTagStatsId(long tagStatsId) {
104         _tagStatsId = tagStatsId;
105     }
106 
107     public long getTagId() {
108         return _tagId;
109     }
110 
111     public void setTagId(long tagId) {
112         _tagId = tagId;
113     }
114 
115     public long getClassNameId() {
116         return _classNameId;
117     }
118 
119     public void setClassNameId(long classNameId) {
120         _classNameId = classNameId;
121     }
122 
123     public int getAssetCount() {
124         return _assetCount;
125     }
126 
127     public void setAssetCount(int assetCount) {
128         _assetCount = assetCount;
129     }
130 
131     private long _tagStatsId;
132     private long _tagId;
133     private long _classNameId;
134     private int _assetCount;
135 }