PageRenderTime 41ms CodeModel.GetById 26ms RepoModel.GetById 0ms 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
Possible License(s): Apache-2.0
  1. /**********************************************************************
  2. Copyright (c) 2011 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.datanucleus.test.HasPolymorphicRelationsJPA.HasOneToManyJPA;
  15. import com.google.appengine.datanucleus.test.HasPolymorphicRelationsJPA.HasOneToManyLongPkJPA;
  16. import com.google.appengine.datanucleus.test.HasPolymorphicRelationsJPA.HasOneToManyUnencodedStringPkJPA;
  17. public interface BidirectionalSingleTableChildJPA {
  18. public interface BidirTop {
  19. HasOneToManyJPA getParent();
  20. void setParent(HasOneToManyJPA parent);
  21. String getId();
  22. String getChildVal();
  23. void setChildVal(String childVal);
  24. int getPropertyCount();
  25. }
  26. public interface BidirMiddle extends BidirTop {
  27. void setMiddleChildVal(Long middleChildVal);
  28. Long getMiddleChildVal();
  29. }
  30. public interface BidirBottom extends BidirMiddle {
  31. void setBottomChildVal(Double bottomChildVal);
  32. Double getBottomChildVal();
  33. }
  34. public interface BidirTopLongPk {
  35. HasOneToManyLongPkJPA getParent();
  36. String getId();
  37. void setChildVal(String childVal);
  38. void setParent(HasOneToManyLongPkJPA parent);
  39. String getChildVal();
  40. }
  41. public interface BidirMiddleLongPk extends BidirTopLongPk {
  42. }
  43. public interface BidirBottomLongPk extends BidirMiddleLongPk {
  44. }
  45. public interface BidirTopUnencodedStringPk {
  46. HasOneToManyUnencodedStringPkJPA getParent();
  47. String getId();
  48. void setChildVal(String childVal);
  49. void setParent(HasOneToManyUnencodedStringPkJPA parent);
  50. String getChildVal();
  51. int getPropertyCount();
  52. }
  53. public interface BidirMiddleUnencodedStringPk extends BidirTopUnencodedStringPk {
  54. void setMiddleChildVal(String middleChildVal);
  55. String getMiddleChildVal();
  56. }
  57. public interface BidirBottomUnencodedStringPk extends BidirMiddleUnencodedStringPk {
  58. void setBottomChildVal(String bottomChildVal);
  59. String getBottomChildVal();
  60. }
  61. }