PageRenderTime 18ms CodeModel.GetById 7ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/com/google/appengine/datanucleus/test/NullDataJDO.java

http://datanucleus-appengine.googlecode.com/
Java | 95 lines | 55 code | 22 blank | 18 comment | 0 complexity | 2d667f2445214ff852b0b8549e74fd5e MD5 | raw file
 1/**********************************************************************
 2Copyright (c) 2009 Google Inc.
 3
 4Licensed under the Apache License, Version 2.0 (the "License");
 5you may not use this file except in compliance with the License.
 6You may obtain a copy of the License at
 7
 8http://www.apache.org/licenses/LICENSE-2.0
 9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15**********************************************************************/
16package com.google.appengine.datanucleus.test;
17
18import javax.jdo.annotations.*;
19import java.util.List;
20import java.util.Set;
21
22/**
23 * @author Max Ross <maxr@google.com>
24 */
25@PersistenceCapable(identityType = IdentityType.APPLICATION)
26public class NullDataJDO {
27
28  @PrimaryKey
29  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
30  private Long id;
31
32  private String string;
33
34  private String[] array;
35
36  private List<String> list;
37
38  private Set<String> set;
39
40  private List<Integer> integerList;
41
42  private Set<Integer> integerSet;
43
44  public Long getId() {
45    return id;
46  }
47
48  public String getString() {
49    return string;
50  }
51
52  public String[] getArray() {
53    return array;
54  }
55
56  public List<String> getList() {
57    return list;
58  }
59
60  public void setArray(String[] array) {
61    this.array = array;
62  }
63
64  public void setList(List<String> list) {
65    this.list = list;
66  }
67
68  public void setString(String s) {
69    this.string = s;
70  }
71
72  public Set<String> getSet() {
73    return set;
74  }
75
76  public void setSet(Set<String> set) {
77    this.set = set;
78  }
79
80  public List<Integer> getIntegerList() {
81    return integerList;
82  }
83
84  public void setIntegerList(List<Integer> integerList) {
85    this.integerList = integerList;
86  }
87
88  public Set<Integer> getIntegerSet() {
89    return integerSet;
90  }
91
92  public void setIntegerSet(Set<Integer> integerSet) {
93    this.integerSet = integerSet;
94  }
95}