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