PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://datanucleus-appengine.googlecode.com/
Java | 74 lines | 49 code | 10 blank | 15 comment | 0 complexity | 69c96e9f1bd3db2d06c745686423461c MD5 | raw file
 1/**********************************************************************
 2Copyright (c) 2011 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.datanucleus.test.HasPolymorphicRelationsJPA.HasOneToManyJPA;
19import com.google.appengine.datanucleus.test.HasPolymorphicRelationsJPA.HasOneToManyLongPkJPA;
20import com.google.appengine.datanucleus.test.HasPolymorphicRelationsJPA.HasOneToManyUnencodedStringPkJPA;
21
22public interface BidirectionalSingleTableChildJPA {
23  
24  public interface BidirTop {
25    HasOneToManyJPA getParent();
26    void setParent(HasOneToManyJPA parent);
27    String getId();
28    String getChildVal();
29    void setChildVal(String childVal);
30    int getPropertyCount();
31  }
32  
33  public interface BidirMiddle extends BidirTop {
34    void setMiddleChildVal(Long middleChildVal);
35    Long getMiddleChildVal();
36  }
37  
38  public interface BidirBottom extends BidirMiddle {
39    void setBottomChildVal(Double bottomChildVal);
40    Double getBottomChildVal();
41  }
42
43  public interface BidirTopLongPk {
44    HasOneToManyLongPkJPA getParent();
45    String getId();
46    void setChildVal(String childVal);
47    void setParent(HasOneToManyLongPkJPA parent);
48    String getChildVal();
49  }
50  public interface BidirMiddleLongPk extends BidirTopLongPk {
51  }
52  public interface BidirBottomLongPk extends BidirMiddleLongPk {
53  }
54  
55  public interface BidirTopUnencodedStringPk {
56    HasOneToManyUnencodedStringPkJPA getParent();
57    String getId();
58    void setChildVal(String childVal);
59    void setParent(HasOneToManyUnencodedStringPkJPA parent);
60    String getChildVal();
61    int getPropertyCount();
62  }
63  
64  public interface BidirMiddleUnencodedStringPk extends BidirTopUnencodedStringPk {
65    void setMiddleChildVal(String middleChildVal);
66    String getMiddleChildVal();    
67  }
68  
69  public interface BidirBottomUnencodedStringPk extends BidirMiddleUnencodedStringPk {
70    void setBottomChildVal(String bottomChildVal);
71    String getBottomChildVal();    
72  }
73
74}