• R/O
  • SSH

JdbcAcsess2: Commit

全てを再実装したJdbcAcsessです。


Commit MetaInfo

Revisionbee2c1a7b226275a68818acde723336e23c7e2eb (tree)
Time2012-02-16 00:53:52
Authorshimakazuro
Commitershimakazuro

Log Message

exportkeyを見やすく

Change Summary

  • delete: src/jdbcacsess2/sqlService/dbobject/CopyOfPropertyExportedKeyTableModel.java

Incremental Difference

diff -r 09f1297f9408 -r bee2c1a7b226 src/jdbcacsess2/sqlService/dbobject/CopyOfPropertyExportedKeyTableModel.java
--- a/src/jdbcacsess2/sqlService/dbobject/CopyOfPropertyExportedKeyTableModel.java Thu Feb 16 00:53:21 2012 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,127 +0,0 @@
1-/*
2- * Copyright 2011 Kazuhiro Shimada
3- *
4- * Licensed under the Apache License, Version 2.0 (the "License");
5- * you may not use this file except in compliance with the License.
6- * You may obtain a copy of the License at
7- *
8- * http://www.apache.org/licenses/LICENSE-2.0
9- *
10- * Unless required by applicable law or agreed to in writing, software
11- * distributed under the License is distributed on an "AS IS" BASIS,
12- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- * See the License for the specific language governing permissions and
14- * limitations under the License.
15- */
16-
17-package jdbcacsess2.sqlService.dbobject;
18-
19-import java.util.List;
20-
21-import javax.swing.table.AbstractTableModel;
22-
23-import jdbcacsess2.sqlService.ReferenceColumnResult;
24-
25-/**
26- * @author sima
27- *
28- */
29-public class CopyOfPropertyExportedKeyTableModel extends AbstractTableModel {
30- private static final long serialVersionUID = 6816351858372050538L;
31- private List<ReferenceColumnResult> exportKey;
32-
33- public CopyOfPropertyExportedKeyTableModel(List<ReferenceColumnResult> exportKey) {
34- this.exportKey = exportKey;
35- }
36-
37- @Override
38- public int getColumnCount() {
39- return 14;
40- }
41-
42- @Override
43- public int getRowCount() {
44- return exportKey.size();
45- }
46-
47- @Override
48- public String getColumnName(int column) {
49- switch (column) {
50- case 0:
51- return "PKcat";
52- case 1:
53- return "PKschem";
54- case 2:
55- return "PKtable";
56- case 3:
57- return "PKname";
58- case 4:
59- return "PKcolumn";
60-
61- case 5:
62- return "FKcat";
63- case 6:
64- return "FKschem";
65- case 7:
66- return "FKtable";
67- case 8:
68- return "FKname";
69- case 9:
70- return "FKcolumn";
71-
72- case 10:
73- return "KeySeq";
74-
75- case 11:
76- return "UpdateRule";
77- case 12:
78- return "DeleteRule";
79-
80- case 13:
81- return "Deferrability";
82- }
83- return "";
84- }
85-
86- @Override
87- public Object getValueAt(int rowIndex, int columnIndex) {
88- ReferenceColumnResult r = exportKey.get(rowIndex);
89-
90- switch (columnIndex) {
91- case 0:
92- return r.getPktableCat();
93- case 1:
94- return r.getPktableSchem();
95- case 2:
96- return r.getPktableName();
97- case 3:
98- return r.getPkName();
99- case 4:
100- return r.getPkcolumnName();
101-
102- case 5:
103- return r.getFktableCat();
104- case 6:
105- return r.getFktableSchem();
106- case 7:
107- return r.getFktableName();
108- case 8:
109- return r.getFkName();
110- case 9:
111- return r.getFkcolumnName();
112-
113- case 10:
114- return r.getKeySeq();
115-
116- case 11:
117- return r.getUpdateRuleName();
118- case 12:
119- return r.getDeleteRuleName();
120-
121- case 13:
122- return r.getDeferrabilityName();
123- }
124- return null;
125- }
126-
127-}
Show on old repository browser