/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. 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.HasPolymorphicRelationsJDO.HasOneToManyJDO;
  15. import com.google.appengine.datanucleus.test.HasPolymorphicRelationsJDO.HasOneToManyLongPkJDO;
  16. import com.google.appengine.datanucleus.test.HasPolymorphicRelationsJDO.HasOneToManyUnencodedStringPkJDO;
  17. public interface BidirectionalSuperclassTableChildJDO {
  18. public enum BidirLevel {
  19. Top,
  20. Middle,
  21. Bottom
  22. }
  23. public interface BidirTop {
  24. void setChildVal(String string);
  25. String getChildVal();
  26. void setParent(HasOneToManyJDO parent);
  27. HasOneToManyJDO getParent();
  28. String getId();
  29. int getPropertyCount();
  30. }
  31. public interface BidirMiddle extends BidirTop {
  32. void setMiddleChildVal(Long middleChildVal);
  33. Long getMiddleChildVal();
  34. }
  35. public interface BidirBottom extends BidirMiddle {
  36. void setBottomChildVal(Double bottomChildVal);
  37. Double getBottomChildVal();
  38. }
  39. public interface BidirTopLongPk {
  40. void setChildVal(String string);
  41. String getChildVal();
  42. void setParent(HasOneToManyLongPkJDO parent);
  43. HasOneToManyLongPkJDO getParent();
  44. String getId();
  45. }
  46. public interface BidirMiddleLongPk extends BidirTopLongPk {
  47. }
  48. public interface BidirBottomLongPk extends BidirMiddleLongPk {
  49. }
  50. public interface BidirTopUnencodedStringPkJDO {
  51. HasOneToManyUnencodedStringPkJDO getParent();
  52. String getId();
  53. void setChildVal(String childVal);
  54. void setParent(HasOneToManyUnencodedStringPkJDO parent);
  55. String getChildVal();
  56. }
  57. public interface BidirMiddleUnencodedStringPkJDO extends BidirTopUnencodedStringPkJDO {
  58. }
  59. public interface BidirBottomUnencodedStringPkJDO extends BidirMiddleUnencodedStringPkJDO {
  60. }
  61. }