1 18 19 package sync4j.framework.core.dm.ddf; 20 21 import java.util.Map ; 22 23 import org.apache.commons.collections.map.ListOrderedMap; 24 25 26 33 public class ConNode implements java.io.Serializable { 34 35 37 38 40 private Map connections; 41 42 44 public ConNode() { 45 this.connections = new ListOrderedMap(); 46 } 47 48 54 public ConNode(final Connection con, final String connectionName) { 55 this(); 56 this.connections.put(connectionName, con); 57 } 58 59 61 66 public void addConnection(final Connection connection, final String connectionName) { 67 this.connections.put(connectionName, connection); 68 } 69 70 76 public Connection getConnection(final String connectionName) { 77 return (Connection)this.connections.get(connectionName); 78 } 79 80 85 public Map getConnections() { 86 return connections; 87 } 88 89 94 95 public void setConnections(Map connections) { 96 this.connections = connections; 97 } 98 99 } | Popular Tags |