1 29 30 package com.caucho.amber.cfg; 31 32 import java.util.HashMap ; 33 34 35 38 public class ManyToOneConfig extends AbstractRelationConfig { 39 40 private boolean _isOptional; 42 43 private HashMap <String , JoinColumnConfig> _joinColumnMap 45 = new HashMap <String , JoinColumnConfig>(); 46 47 48 public boolean getOptional() 49 { 50 return _isOptional; 51 } 52 53 public void setOptional(boolean isOptional) 54 { 55 _isOptional = isOptional; 56 } 57 58 public JoinColumnConfig getJoinColumn(String name) 59 { 60 return _joinColumnMap.get(name); 61 } 62 63 public void addJoinColumn(JoinColumnConfig joinColumn) 64 { 65 _joinColumnMap.put(joinColumn.getReferencedColumnName(), 66 joinColumn); 67 } 68 69 public HashMap <String , JoinColumnConfig> getJoinColumnMap() 70 { 71 return _joinColumnMap; 72 } 73 } 74 | Popular Tags |