PageRenderTime 12ms CodeModel.GetById 1ms app.highlight 6ms RepoModel.GetById 2ms app.codeStats 0ms

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