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