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

http://datanucleus-appengine.googlecode.com/ · Java · 54 lines · 32 code · 4 blank · 18 comment · 0 complexity · a36e9b7d387a4dce75c8d59699d69a29 MD5 · raw file

  1. /**********************************************************************
  2. Copyright (c) 2009 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 java.io.Serializable;
  15. import java.util.Collection;
  16. /**
  17. * @author Max Ross <maxr@google.com>
  18. */
  19. public interface HasOneToManyJDO extends Serializable {
  20. Collection<BidirectionalChildJDO> getBidirChildren();
  21. void addBidirChild(BidirectionalChildJDO child);
  22. void nullBidirChildren();
  23. void clearBidirChildren();
  24. Collection<Flight> getFlights();
  25. void addFlight(Flight flight);
  26. void nullFlights();
  27. void clearFlights();
  28. Collection<HasKeyPkJDO> getHasKeyPks();
  29. void addHasKeyPk(HasKeyPkJDO hasKeyPk);
  30. void nullHasKeyPks();
  31. void clearHasKeyPks();
  32. String getVal();
  33. void setVal(String val);
  34. String getId();
  35. void addBidirChildAtPosition(BidirectionalChildJDO bidir, int pos);
  36. void addFlightAtPosition(Flight f, int pos);
  37. void addHasKeyPkAtPosition(HasKeyPkJDO hasKeyPk, int pos);
  38. void removeBidirChildAtPosition(int i);
  39. void removeFlightAtPosition(int i);
  40. void removeHasKeyPkAtPosition(int i);
  41. void removeFlights(Collection<Flight> flights);
  42. void removeBidirChildren(Collection<BidirectionalChildJDO> bidirChildren);
  43. void addAtPosition(int i, BidirectionalChildJDO bidir);
  44. void addAtPosition(int i, Flight f);
  45. void addAtPosition(int i, HasKeyPkJDO hasKeyPk);
  46. void setBidirChildren(Collection<BidirectionalChildJDO> childList);
  47. }