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

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

http://datanucleus-appengine.googlecode.com/
Java | 81 lines | 49 code | 17 blank | 15 comment | 0 complexity | a2c916687ba040d574f99b6337b69cb3 MD5 | raw file
 1/**********************************************************************
 2 Copyright (c) 2011 Google Inc.
 3
 4 Licensed under the Apache License, Version 2.0 (the "License");
 5 you may not use this file except in compliance with the License.
 6 You may obtain a copy of the License at
 7
 8 http://www.apache.org/licenses/LICENSE-2.0
 9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 **********************************************************************/
16 package com.google.appengine.datanucleus.test;
17
18import com.google.appengine.datanucleus.test.HasPolymorphicRelationsJDO.HasOneToManyJDO;
19import com.google.appengine.datanucleus.test.HasPolymorphicRelationsJDO.HasOneToManyLongPkJDO;
20import com.google.appengine.datanucleus.test.HasPolymorphicRelationsJDO.HasOneToManyUnencodedStringPkJDO;
21
22public interface BidirectionalSuperclassTableChildJDO {
23  
24  public enum BidirLevel {
25    Top,
26    Middle,
27    Bottom
28  }
29  
30  public interface BidirTop {
31    void setChildVal(String string);
32    String getChildVal();
33    void setParent(HasOneToManyJDO parent);
34    HasOneToManyJDO getParent();
35    String getId();
36    int getPropertyCount();
37  }
38  
39  public interface BidirMiddle extends BidirTop {
40    void setMiddleChildVal(Long middleChildVal);
41    Long getMiddleChildVal();
42  }
43  
44  public interface BidirBottom extends BidirMiddle {
45    void setBottomChildVal(Double bottomChildVal);
46    Double getBottomChildVal();
47  }
48  
49  public interface BidirTopLongPk {
50    void setChildVal(String string);
51    String getChildVal();
52    void setParent(HasOneToManyLongPkJDO parent);
53    HasOneToManyLongPkJDO getParent();
54    String getId();
55  }
56
57  public interface BidirMiddleLongPk extends BidirTopLongPk {
58    
59  }
60  
61  public interface BidirBottomLongPk extends BidirMiddleLongPk {
62    
63  }
64
65  public interface BidirTopUnencodedStringPkJDO {
66    HasOneToManyUnencodedStringPkJDO getParent();
67    String getId();
68    void setChildVal(String childVal);
69    void setParent(HasOneToManyUnencodedStringPkJDO parent);
70    String getChildVal();
71  }
72  
73  public interface BidirMiddleUnencodedStringPkJDO extends BidirTopUnencodedStringPkJDO {
74    
75  }
76  
77  public interface BidirBottomUnencodedStringPkJDO extends BidirMiddleUnencodedStringPkJDO {
78    
79  }
80
81}