adds support for null suppression
[squelch.git] / src / main / java / net / jaekl / squelch / db / DbDriver.java
index 931fcf19908bf872306bb2bd384dbd40bc3b48c4..72472de3c2a0992825c535f6183ccb41afb0fc50 100644 (file)
@@ -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