X-Git-Url: http://jaekl.net/gitweb/?p=squelch.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fjaekl%2Fsquelch%2Fdb%2FDbDriver.java;h=72472de3c2a0992825c535f6183ccb41afb0fc50;hp=931fcf19908bf872306bb2bd384dbd40bc3b48c4;hb=14b727ac09bf5a635b49a50864be3904f6c03d89;hpb=bb9b1774cd6b96464b5c602458ad622ff17fd6cb diff --git a/src/main/java/net/jaekl/squelch/db/DbDriver.java b/src/main/java/net/jaekl/squelch/db/DbDriver.java index 931fcf1..72472de 100644 --- a/src/main/java/net/jaekl/squelch/db/DbDriver.java +++ b/src/main/java/net/jaekl/squelch/db/DbDriver.java @@ -6,11 +6,20 @@ import java.sql.SQLException; import java.util.Locale; public abstract class DbDriver { + private boolean m_suppressNulls = false; + // Returns true iff. this DbDriver knows how to connect to the given JDBC URL abstract public boolean handles(String jdbcUrl); // Execute line as a statement of this type abstract String getJdbcDriverClassName(); + + // ------------------- + // Getters and setters + + public boolean isSuppressNulls() { return m_suppressNulls; } + public void setSuppressNulls(boolean value) { m_suppressNulls = value; } + // Open a new Connection to the database. Note that the caller must close() this at some point. public Connection connect(String jdbcUrl, String userName, String password) throws ClassNotFoundException, SQLException