01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.openejb.jee.jpa;
17:
18: import java.util.List;
19:
20: public interface RelationField {
21: List<JoinColumn> getJoinColumn();
22:
23: JoinTable getJoinTable();
24:
25: void setJoinTable(JoinTable value);
26:
27: CascadeType getCascade();
28:
29: void setCascade(CascadeType value);
30:
31: FetchType getFetch();
32:
33: void setFetch(FetchType value);
34:
35: String getMappedBy();
36:
37: void setMappedBy(String value);
38:
39: String getName();
40:
41: void setName(String value);
42:
43: String getTargetEntity();
44:
45: void setTargetEntity(String value);
46:
47: /**
48: * This is only used for xml converters and will normally return null.
49: * Gets the field on the target entity for this relationship.
50: * @return the field on the target entity for this relationship.
51: */
52: RelationField getRelatedField();
53:
54: /**
55: * Gets the field on the target entity for this relationship.
56: * @param value field on the target entity for this relationship.
57: */
58: void setRelatedField(RelationField value);
59:
60: /**
61: * This is only used for xml converters and will normally return false.
62: * A true value indicates that this field was generated for CMR back references.
63: * @return true if this field was generated for CMR back references.
64: */
65: boolean isSyntheticField();
66:
67: /**
68: * This is only used for xml converters and will normally return false.
69: * A true value indicates that this field was generated for CMR back references.
70: * @return true if this field was generated for CMR back references.
71: */
72: void setSyntheticField(boolean syntheticField);
73: }
|