1 29 30 package com.caucho.amber.cfg; 31 32 import java.util.HashMap ; 33 34 35 38 public class OneToManyConfig extends AbstractRelationConfig { 39 40 private String _mappedBy; 42 43 private MapKeyConfig _mapKey; 45 46 private String _orderBy; 47 48 private HashMap <String , JoinColumnConfig> _joinColumnMap 49 = new HashMap <String , JoinColumnConfig>(); 50 51 public String getMappedBy() 52 { 53 return _mappedBy; 54 } 55 56 public void setMappedBy(String mappedBy) 57 { 58 _mappedBy = mappedBy; 59 } 60 61 public MapKeyConfig getMapKey() 62 { 63 return _mapKey; 64 } 65 66 public void setMapKey(MapKeyConfig mapKey) 67 { 68 _mapKey = mapKey; 69 } 70 71 public String getOrderBy() 72 { 73 return _orderBy; 74 } 75 76 public void setOrderBy(String orderBy) 77 { 78 _orderBy = orderBy; 79 } 80 81 public JoinColumnConfig getJoinColumn(String name) 82 { 83 return _joinColumnMap.get(name); 84 } 85 86 public void addJoinColumn(JoinColumnConfig joinColumn) 87 { 88 _joinColumnMap.put(joinColumn.getName(), 89 joinColumn); 90 } 91 92 public HashMap <String , JoinColumnConfig> getJoinColumnMap() 93 { 94 return _joinColumnMap; 95 } 96 } 97 | Popular Tags |