View Javadoc

1   /*
2    * Copyright 2004-2006 the Seasar Foundation and the Others.
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, 
13   * either express or implied. See the License for the specific language
14   * governing permissions and limitations under the License.
15   */
16  package org.seasar.tuigwaa.database;
17  
18  import java.util.Collection;
19  import java.util.Iterator;
20  import java.util.List;
21  import java.util.Map;
22  
23  public class DataTableWrapper extends AbstractDataTableCore{
24  
25  	private DataTable dataTable_;
26  			
27  	public DataTableWrapper(DataTable dataTable){
28  		this.dataTable_ = dataTable;
29  	}
30  	
31  	public Collection getDataList() {
32  		return dataTable_.getDataList();
33  	}
34  	
35  	public void setFilterMap(Map filterMap) {
36  		dataTable_.setFilterMap(filterMap);
37  	}
38  	
39  	public String getName() {
40  		return dataTable_.getName();
41  	}
42  	
43  	public List getHeaders() {
44  		return dataTable_.getHeaders();
45  	}
46  
47  	public Map getDisplayHeaderMap() {
48  		return dataTable_.getDisplayHeaderMap();
49  	}
50  
51  	public Iterator getHeaderIterator() {
52  		return getHeaders().iterator();
53  	}
54  
55  	public int getRowSize() {
56  		return dataTable_.getRowSize();
57  	}
58  
59  	public int getColumnSize() {
60  		return dataTable_.getColumnSize();
61  	}
62  
63  	public Object getData(int columnIndex) {
64  		return dataTable_.getData(columnIndex);
65  	}
66  
67  	public Object getData(String columnName) {
68  		return dataTable_.getData(columnName);
69  	}
70  
71  	public Object getData(int row, String columnName) {
72  		return dataTable_.getData(row, columnName);
73  	}
74  		
75  	public Object getData(int row, int column) {
76  		return dataTable_.getData(row, column);
77  	}
78  
79  	public Map getDataMap(int row) {
80  		return dataTable_.getDataMap(row);
81  	}
82  	
83  	public Object getData() {
84  		return dataTable_.getData();
85  	}
86  
87  	public Object nextColumn() {
88  		return dataTable_.nextColumn();
89  	}
90  	
91  	public boolean isSpreadSheet() {
92  		return dataTable_.isSpreadSheet();
93  	}
94  		
95  	public Object getRowObject() {
96  		return dataTable_.getRowObject();
97  	}
98  	
99  	public Object getRowObject(int row) {
100 		return dataTable_.getRowObject(row);
101 	}
102 
103 	public void remove() {
104 		dataTable_.remove();
105 	}
106 
107 	public void init() {
108 		dataTable_.init();
109 	}
110 	
111 	public int getCurrentColumn() {
112 		return dataTable_.getCurrentColumn();
113 	}
114 	
115 	public int getCurrentRow(){
116 		return dataTable_.getCurrentRow();
117 	}
118 
119 	public void incrementCurrentRow() {
120 		dataTable_.incrementCurrentRow();
121 	}
122 
123 	public void incrementCurrentColumn() {
124 		dataTable_.incrementCurrentColumn();
125 	}
126 
127 	public void decrementCurrentRow() {
128 		dataTable_.decrementCurrentRow();
129 	}
130 
131 	public void decrementCurrentColumn() {
132 		dataTable_.decrementCurrentColumn();
133 	}
134 	
135 	public void initCurrentColumn() {
136 		dataTable_.initCurrentColumn();
137 	}
138 	
139 	public void initCurrentRow() {
140 		dataTable_.initCurrentRow();
141 	}
142 	
143 	public String getHeader() {
144 		return dataTable_.getHeader();
145 	}
146 	
147 	public String getHeader(int index){
148 		return dataTable_.getHeader(index);
149 	}
150 
151 }