public class DBMS
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
void |
execute(java.lang.String sql,
Table tab) |
Executes the SQL command against the database and adds all found records
|
java.util.List<java.lang.String> |
getFieldValues(java.lang.String tableName,
java.lang.String fieldName,
java.lang.String like) |
|
static DBMS |
getInstance() |
Creates an singleton instance
|
public static DBMS getInstance()
public void execute(java.lang.String sql, Table tab) throws java.sql.SQLException, java.lang.ClassNotFoundException
sql
- tab
- java.sql.SQLException
java.lang.ClassNotFoundException
public java.util.List<java.lang.String> getFieldValues(java.lang.String tableName, java.lang.String fieldName, java.lang.String like) throws java.sql.SQLException, java.lang.ClassNotFoundException
java.sql.SQLException
java.lang.ClassNotFoundException