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

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

http://datanucleus-appengine.googlecode.com/
Java | 84 lines | 50 code | 16 blank | 18 comment | 0 complexity | 02bb2cdd19e397c43cb77b24a0a2d360 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 java.util.Currency;
19import java.util.Locale;
20import java.util.TimeZone;
21
22import javax.jdo.annotations.IdGeneratorStrategy;
23import javax.jdo.annotations.IdentityType;
24import javax.jdo.annotations.PersistenceCapable;
25import javax.jdo.annotations.Persistent;
26import javax.jdo.annotations.PrimaryKey;
27
28/**
29 * @author Max Ross <maxr@google.com>
30 */
31@PersistenceCapable(identityType = IdentityType.APPLICATION)
32public class HasExtraTypes1JDO {
33  @PrimaryKey
34  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
35  private Long key;
36
37  @Persistent(defaultFetchGroup="true")
38  private Currency currency;
39
40  @Persistent(defaultFetchGroup="true")
41  private Locale locale;
42
43  @Persistent(defaultFetchGroup="true")
44  private StringBuffer stringBuffer;
45
46  @Persistent(defaultFetchGroup="true")
47  private TimeZone timezone;
48
49  public TimeZone getTimezone() {
50    return timezone;
51  }
52
53  public void setTimezone(TimeZone timezone) {
54    this.timezone = timezone;
55  }
56
57  public StringBuffer getStringBuffer() {
58    return stringBuffer;
59  }
60
61  public void setStringBuffer(StringBuffer stringBuffer) {
62    this.stringBuffer = stringBuffer;
63  }
64
65  public Currency getCurrency() {
66    return currency;
67  }
68
69  public void setCurrency(Currency currency) {
70    this.currency = currency;
71  }
72
73  public Locale getLocale() {
74    return locale;
75  }
76
77  public void setLocale(Locale locale) {
78    this.locale = locale;
79  }
80
81  public Long getKey() {
82    return key;
83  }
84}