View Javadoc
1   /*
2    * Copyright (C) 2003-2012 David E. Berry
3    *
4    * This library is free software; you can redistribute it and/or
5    * modify it under the terms of the GNU Lesser General Public
6    * License as published by the Free Software Foundation; either
7    * version 2.1 of the License, or (at your option) any later version.
8    *
9    * This library is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   * Lesser General Public License for more details.
13   *
14   * You should have received a copy of the GNU Lesser General Public
15   * License along with this library; if not, write to the Free Software
16   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17   *
18   * A copy of the GNU Lesser General Public License may also be found at
19   * http://www.gnu.org/licenses/lgpl.txt
20   */
21  package org.synchronoss.cpo.cassandra;
22  
23  import java.math.*;
24  import java.net.InetAddress;
25  import java.nio.ByteBuffer;
26  import java.util.*;
27  
28  /**
29   * ValueObject - a cpo bean used to test the cpo apis
30   *
31   * @author david berry
32   */
33  public class ValueObjectBean implements ValueObject, java.io.Serializable, Cloneable {
34  
35    /**
36     * Version Id for this class.
37     */
38    private static final long serialVersionUID = 1L;
39  
40    private int id;
41    private String attrAscii;
42    private long attrBigInt;
43    private ByteBuffer attrBlob;
44    private ByteBuffer attrBlob2;
45    private boolean attrBool;
46    private long attrCounter;
47    private BigDecimal attrDecimal;
48    private double attrDouble;
49    private float attrFloat;
50    private InetAddress attrInet;
51    private int attrInt;
52    private List<String> attrList;
53    private Map<String, String> attrMap;
54    private Set<String> attrSet;
55    private String attrText;
56    private Date attrTimestamp;
57    private UUID attrTimeUUID;
58    private UUID attrUUID;
59    private String attrVarChar;
60    private BigInteger attrVarInt;
61  
62    public ValueObjectBean() {
63      // public default constructor as required by cpo
64    }
65  
66    public ValueObjectBean(int id) {
67      this.id = id;
68    }
69  
70    public ValueObjectBean(int id, ByteBuffer attrBlob) {
71      this.id = id;
72      this.attrBlob = attrBlob;
73    }
74  
75    public int getId() {
76      return id;
77    }
78  
79    public void setId(int id) {
80      this.id = id;
81    }
82  
83    public String getAttrAscii() {
84      return attrAscii;
85    }
86  
87    public void setAttrAscii(String attrAscii) {
88      this.attrAscii = attrAscii;
89    }
90  
91    public long getAttrBigInt() {
92      return attrBigInt;
93    }
94  
95    public void setAttrBigInt(long attrBigInt) {
96      this.attrBigInt = attrBigInt;
97    }
98  
99    public ByteBuffer getAttrBlob() {
100     return attrBlob;
101   }
102 
103   public void setAttrBlob(ByteBuffer attrBlob) {
104     this.attrBlob = attrBlob;
105   }
106 
107   public ByteBuffer getAttrBlob2() {
108     return attrBlob2;
109   }
110 
111   public void setAttrBlob2(ByteBuffer attrBlob2) {
112     this.attrBlob2 = attrBlob2;
113   }
114 
115   public boolean getAttrBool() {
116     return attrBool;
117   }
118 
119   public void setAttrBool(boolean attrBool) {
120     this.attrBool = attrBool;
121   }
122 
123   public long getAttrCounter() {
124     return attrCounter;
125   }
126 
127   public void setAttrCounter(long attrCounter) {
128     this.attrCounter = attrCounter;
129   }
130 
131   public BigDecimal getAttrDecimal() {
132     return attrDecimal;
133   }
134 
135   public void setAttrDecimal(BigDecimal attrDecimal) {
136     this.attrDecimal = attrDecimal;
137   }
138 
139   public double getAttrDouble() {
140     return attrDouble;
141   }
142 
143   public void setAttrDouble(double attrDouble) {
144     this.attrDouble = attrDouble;
145   }
146 
147   public float getAttrFloat() {
148     return attrFloat;
149   }
150 
151   public void setAttrFloat(float attrFloat) {
152     this.attrFloat = attrFloat;
153   }
154 
155   public InetAddress getAttrInet() {
156     return attrInet;
157   }
158 
159   public void setAttrInet(InetAddress attrInet) {
160     this.attrInet = attrInet;
161   }
162 
163   public int getAttrInt() {
164     return attrInt;
165   }
166 
167   public void setAttrInt(int attrInt) {
168     this.attrInt = attrInt;
169   }
170 
171   public List<String> getAttrList() {
172     return attrList;
173   }
174 
175   public void setAttrList(List<String> attrList) {
176     this.attrList = attrList;
177   }
178 
179   public Map<String, String> getAttrMap() {
180     return attrMap;
181   }
182 
183   public void setAttrMap(Map<String, String> attrMap) {
184     this.attrMap = attrMap;
185   }
186 
187   public Set<String> getAttrSet() {
188     return attrSet;
189   }
190 
191   public void setAttrSet(Set<String> attrSet) {
192     this.attrSet = attrSet;
193   }
194 
195   public String getAttrText() {
196     return attrText;
197   }
198 
199   public void setAttrText(String attrText) {
200     this.attrText = attrText;
201   }
202 
203   public Date getAttrTimestamp() {
204     return attrTimestamp;
205   }
206 
207   public void setAttrTimestamp(Date attrTimestamp) {
208     this.attrTimestamp = attrTimestamp;
209   }
210 
211   public UUID getAttrTimeUUID() {
212     return attrTimeUUID;
213   }
214 
215   public void setAttrTimeUUID(UUID attrTimeUUID) {
216     this.attrTimeUUID = attrTimeUUID;
217   }
218 
219   public UUID getAttrUUID() {
220     return attrUUID;
221   }
222 
223   public void setAttrUUID(UUID attrUUID) {
224     this.attrUUID = attrUUID;
225   }
226 
227   public String getAttrVarChar() {
228     return attrVarChar;
229   }
230 
231   public void setAttrVarChar(String attrVarChar) {
232     this.attrVarChar = attrVarChar;
233   }
234 
235   public BigInteger getAttrVarInt() {
236     return attrVarInt;
237   }
238 
239   public void setAttrVarInt(BigInteger attrVarInt) {
240     this.attrVarInt = attrVarInt;
241   }
242 }