1 29 30 package com.caucho.amber.cfg; 31 32 import java.util.HashMap ; 33 34 35 38 public class JoinTableConfig extends AbstractTableConfig { 39 40 private HashMap <String , JoinColumnConfig> _joinColumnMap 42 = new HashMap <String , JoinColumnConfig>(); 43 44 private HashMap <String , JoinColumnConfig> _inverseJoinColumnMap 45 = new HashMap <String , JoinColumnConfig>(); 46 47 public JoinColumnConfig getJoinColumn(String name) 48 { 49 return _joinColumnMap.get(name); 50 } 51 52 public void addJoinColumn(JoinColumnConfig joinColumn) 53 { 54 _joinColumnMap.put(joinColumn.getName(), 55 joinColumn); 56 } 57 58 public HashMap <String , JoinColumnConfig> getJoinColumnMap() 59 { 60 return _joinColumnMap; 61 } 62 63 public JoinColumnConfig getInverseJoinColumn(String name) 64 { 65 return _inverseJoinColumnMap.get(name); 66 } 67 68 public void addInverseJoinColumn(JoinColumnConfig joinColumn) 69 { 70 _inverseJoinColumnMap.put(joinColumn.getName(), 71 joinColumn); 72 } 73 74 public HashMap <String , JoinColumnConfig> getInverseJoinColumnMap() 75 { 76 return _inverseJoinColumnMap; 77 } 78 } 79 | Popular Tags |