PageRenderTime 34ms CodeModel.GetById 22ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

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