1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package net.sf.webmancer.db.sql;
23
24 import java.util.List;
25 import java.util.Map;
26
27 import net.sf.webmancer.db.IAttribute;
28 import net.sf.webmancer.db.ICell;
29 import net.sf.webmancer.db.ICondition;
30 import net.sf.webmancer.db.IData;
31 import net.sf.webmancer.util.ContractChecker;
32
33
34
35
36
37 public class TableDataSet extends AbstractSqlDataSet {
38
39
40
41 private String tableName;
42
43
44
45
46
47 public TableDataSet() {
48 super();
49 }
50
51
52
53
54
55
56 protected String getTableName() {
57 return this.tableName;
58 }
59
60
61
62
63
64
65 public void setTableName(String tableName) {
66 ContractChecker.mustNotBeEmpty(tableName, "tableName");
67 this.tableName = tableName;
68 }
69
70
71
72
73
74 protected String createWherePart(List<ICondition> conditions) {
75
76 throw new UnsupportedOperationException("createWherePart");
77 }
78
79
80
81
82 @Override
83 public long performDelete(List<ICondition> conditions) {
84 String wherePart = createWherePart(conditions);
85
86
87
88 throw new UnsupportedOperationException("performDelete");
89 }
90
91
92
93
94 @Override
95 public void performInsert(Map<IAttribute, ICell> row) {
96
97 throw new UnsupportedOperationException("performInsert");
98 }
99
100
101
102
103 @Override
104 public void performInsert(IData data) {
105
106 throw new UnsupportedOperationException("performInsert");
107 }
108
109
110
111
112 @Override
113 public long performQueryCount(List<ICondition> conditions) {
114
115 throw new UnsupportedOperationException("performQueryCount");
116 }
117
118
119
120
121 @Override
122 public IData performQueryResult(Map<String, IAttribute> attributes, List<ICondition> conditions, long limit, long offset, IAttribute orderingAttribute, boolean ascending) {
123
124 throw new UnsupportedOperationException("performQueryResult");
125 }
126
127
128
129
130 @Override
131 public long performUpdate(Map<IAttribute, ICell> row, List<ICondition> conditions) {
132
133 throw new UnsupportedOperationException("performUpdate");
134 }
135 }