equal
deleted
inserted
replaced
21 import info.globalcode.sql.dk.DatabaseConnection; |
21 import info.globalcode.sql.dk.DatabaseConnection; |
22 import java.sql.SQLException; |
22 import java.sql.SQLException; |
23 import javax.xml.bind.annotation.XmlElement; |
23 import javax.xml.bind.annotation.XmlElement; |
24 |
24 |
25 /** |
25 /** |
|
26 * Configured (but not yet connected) database connection. |
26 * |
27 * |
27 * @author Ing. František Kučera (frantovo.cz) |
28 * @author Ing. František Kučera (frantovo.cz) |
28 */ |
29 */ |
29 public class DatabaseDefinition implements NameIdentified { |
30 public class DatabaseDefinition implements NameIdentified { |
30 |
31 |
79 public void setProperties(Properties properties) { |
80 public void setProperties(Properties properties) { |
80 this.properties = properties; |
81 this.properties = properties; |
81 } |
82 } |
82 |
83 |
83 /** |
84 /** |
84 * @param properties ad-hoc properties from CLI options |
85 * @param properties ad-hoc properties from CLI options (for the JDBC driver) |
85 */ |
86 */ |
86 public DatabaseConnection connect(Properties properties) throws SQLException { |
87 public DatabaseConnection connect(Properties properties) throws SQLException { |
87 return new DatabaseConnection(this, properties); |
88 return new DatabaseConnection(this, properties); |
88 } |
89 } |
89 } |
90 } |