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

http://datanucleus-appengine.googlecode.com/ · Java · 113 lines · 71 code · 24 blank · 18 comment · 0 complexity · affd16716d050c580bddda555083d986 MD5 · raw file

  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 com.google.appengine.api.datastore.Blob;
  15. import com.google.appengine.api.datastore.Text;
  16. import java.util.List;
  17. import javax.jdo.annotations.Extension;
  18. import javax.jdo.annotations.IdGeneratorStrategy;
  19. import javax.jdo.annotations.IdentityType;
  20. import javax.jdo.annotations.PersistenceCapable;
  21. import javax.jdo.annotations.Persistent;
  22. import javax.jdo.annotations.PrimaryKey;
  23. /**
  24. * @author Max Ross <maxr@google.com>
  25. */
  26. @PersistenceCapable(identityType = IdentityType.APPLICATION)
  27. public class HasUnindexedPropertiesJDO {
  28. @PrimaryKey
  29. @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  30. private Long id;
  31. @Persistent
  32. @Extension(vendorName = "datanucleus", key = "gae.unindexed", value="true")
  33. private String unindexedString;
  34. @Persistent
  35. @Extension(vendorName = "datanucleus", key = "gae.unindexed", value="true")
  36. private List<String> unindexedList;
  37. @Persistent
  38. @Extension(vendorName = "datanucleus", key = "gae.unindexed", value="true")
  39. private Blob unindexedBlob;
  40. @Persistent
  41. @Extension(vendorName = "datanucleus", key = "gae.unindexed", value="true")
  42. private Text unindexedText;
  43. @Persistent
  44. private Blob blob;
  45. @Persistent
  46. private Text text;
  47. public Long getId() {
  48. return id;
  49. }
  50. public String getUnindexedString() {
  51. return unindexedString;
  52. }
  53. public void setUnindexedString(String unindexedString) {
  54. this.unindexedString = unindexedString;
  55. }
  56. public List<String> getUnindexedList() {
  57. return unindexedList;
  58. }
  59. public void setUnindexedList(List<String> unindexedList) {
  60. this.unindexedList = unindexedList;
  61. }
  62. public Blob getUnindexedBlob() {
  63. return unindexedBlob;
  64. }
  65. public void setUnindexedBlob(Blob unindexedBlob) {
  66. this.unindexedBlob = unindexedBlob;
  67. }
  68. public Text getUnindexedText() {
  69. return unindexedText;
  70. }
  71. public void setUnindexedText(Text unindexedText) {
  72. this.unindexedText = unindexedText;
  73. }
  74. public Blob getBlob() {
  75. return blob;
  76. }
  77. public void setBlob(Blob blob) {
  78. this.blob = blob;
  79. }
  80. public Text getText() {
  81. return text;
  82. }
  83. public void setText(Text text) {
  84. this.text = text;
  85. }
  86. }