java/sql-dk/src/info/globalcode/sql/dk/configuration/DatabaseDefinition.java
branchv_0
changeset 203 504c4ba56d1c
parent 194 629c9c7eab01
equal deleted inserted replaced
202:01078e09b85b 203:504c4ba56d1c
    55 	private String driver;
    55 	private String driver;
    56 	/**
    56 	/**
    57 	 * JDBC properties
    57 	 * JDBC properties
    58 	 */
    58 	 */
    59 	private Properties properties = new Properties();
    59 	private Properties properties = new Properties();
       
    60 	/**
       
    61 	 * optional definition of tunnel to the remote database
       
    62 	 */
       
    63 	private TunnelDefinition tunnel;
    60 
    64 
    61 	@XmlElement(name = "name", namespace = CONFIGURATION)
    65 	@XmlElement(name = "name", namespace = CONFIGURATION)
    62 	@Override
    66 	@Override
    63 	public String getName() {
    67 	public String getName() {
    64 		return name;
    68 		return name;
   110 
   114 
   111 	public void setProperties(Properties properties) {
   115 	public void setProperties(Properties properties) {
   112 		this.properties = properties;
   116 		this.properties = properties;
   113 	}
   117 	}
   114 
   118 
       
   119 	public TunnelDefinition getTunnel() {
       
   120 		return tunnel;
       
   121 	}
       
   122 
       
   123 	public void setTunnel(TunnelDefinition tunnel) {
       
   124 		this.tunnel = tunnel;
       
   125 	}
       
   126 
   115 	/**
   127 	/**
   116 	 * @param properties ad-hoc properties from CLI options (for the JDBC driver)
   128 	 * @param properties ad-hoc properties from CLI options (for the JDBC driver)
   117 	 * @param jmxBean JMX management bean for progress reporting | null = disable JMX
   129 	 * @param jmxBean JMX management bean for progress reporting | null = disable JMX
   118 	 * @return
   130 	 * @return
   119 	 * @throws java.sql.SQLException
   131 	 * @throws java.sql.SQLException