Advertisement
Guest User

Untitled

a guest
Dec 5th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.05 KB | None | 0 0
  1. package controller;
  2.  
  3. import java.util.Map;
  4.  
  5. public interface DBMS {
  6.  
  7.     public void createDatabase(String databaseName) throws RuntimeException;
  8.  
  9.     public void createTable(String tableName, Map<String, Class<?>> columns)
  10.             throws RuntimeException;
  11.  
  12.     public void deleteFromTable(String tableName) throws RuntimeException;
  13.  
  14.     public void dropDatabase(String databaseName) throws RuntimeException;
  15.  
  16.     public void dropTable(String tableName) throws RuntimeException;
  17.  
  18.     public void insertIntoTable(String tableName, String... values) throws RuntimeException;
  19.  
  20.     public void insertIntoTable(String tableName, Map<String, String> columns)
  21.             throws RuntimeException;
  22.  
  23.     public void selectFromTable(String tableName, String... colNames) throws RuntimeException;
  24.  
  25.     public void selectAllFromTable(String tableName) throws RuntimeException;
  26.  
  27.     public void updateTable(String tableName, Map<String, String> columns) throws RuntimeException;
  28.  
  29.     public void useDatabase(String databaseName) throws RuntimeException;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement