-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDBInterface.java
More file actions
27 lines (26 loc) · 974 Bytes
/
Copy pathDBInterface.java
File metadata and controls
27 lines (26 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package JAdapter;
/**
*
* @author fomin_dmitry
*/
public interface DBInterface {
String getQueryText();
String getTblName();
String getPrmKey();
boolean Connect(JTableData jtd, String Url, String UserName, String Password);
void fillData(boolean isCreateNewTableData);//fl= true-(пере)создать модель, false-обновить данные(структура не меняется)
void DeleteColumn(String colName);
void AddColumn(String colName, String type, String afterColumnName);
void AddColumnLast(String colName, String type);
boolean AddRemoteData(String Url, String UserName, String Password);
boolean SaveAllToTempDBTable(String tableName);
void MarkRowDeleted(int id);
void DeleteRow(int id);
int AddRow();
void UpdateRow(int id);
Object dbRepresentation(int column, Object value);
}