package com.nigorojr.typebest;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;

public class Records extends Database {

    public Records() throws SQLException {
        super("RECORDS");
    }

    /**
     * Executes a INSERT query for the given pair of column names and values.
     */
    @Override
    public void insert(HashMap<String, String> pair) {
        String query = String.format("INSERT INTO %s %s",
                super.getTableName(), super.formatInsertQuery(pair));
        try {
            statement.execute(query);
        }
        catch (SQLException e) {
            e.printStackTrace();
        }
    }

    @Override
    ResultSet select(String condition) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    void update(HashMap<String, String> pair) {
        // TODO Auto-generated method stub
    }

    @Override
    void delete(String condition) {
        // TODO Auto-generated method stub
    }
}

package com.nigorojr.typebest;

import java.sql.SQLException;

public class Records extends Database {

    public Records() throws SQLException {
        super("RECORDS");
    }
    }
}

--- 
+++ 
@@ -1,11 +1,43 @@
 package com.nigorojr.typebest;
 
+import java.sql.ResultSet;
 import java.sql.SQLException;
+import java.util.HashMap;
 
 public class Records extends Database {
 
     public Records() throws SQLException {
         super("RECORDS");
     }
+
+    /**
+     * Executes a INSERT query for the given pair of column names and values.
+     */
+    @Override
+    public void insert(HashMap<String, String> pair) {
+        String query = String.format("INSERT INTO %s %s",
+                super.getTableName(), super.formatInsertQuery(pair));
+        try {
+            statement.execute(query);
+        }
+        catch (SQLException e) {
+            e.printStackTrace();
+        }
+    }
+
+    @Override
+    ResultSet select(String condition) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    @Override
+    void update(HashMap<String, String> pair) {
+        // TODO Auto-generated method stub
+    }
+
+    @Override
+    void delete(String condition) {
+        // TODO Auto-generated method stub
     }
 }
Add the four abstract methods inherited from Database

This commit implements the methods from the Database class. Only the insert
method is implemented. However, it might be a better choice to move these four
methods to the parent class because it seems that there is nothing
particularly different between the Records and Preferences
class, which are the only classes that the four methods are currently planned
on being implemented.
