1 4 5 package com.calipso.reportgenerator.reportcalculator; 6 7 import java.util.Collection ; 8 import com.calipso.reportgenerator.common.InfoException; 9 10 14 public interface IDataSource { 15 19 public int getRowCount(); 20 21 25 public int getColumCount(); 26 27 33 public String getColumName(int colum) throws IndexOutOfBoundsException ; 34 35 42 public void setColumName(int colum, String name) throws IndexOutOfBoundsException , InfoException; 43 44 51 public Object getValueAt(int row, int colum) throws IndexOutOfBoundsException ; 52 53 59 public Collection getColumValues(int colum) throws IndexOutOfBoundsException ; 60 61 67 public Collection getRowValues(int row) throws IndexOutOfBoundsException ; 68 69 76 public void updateValueAt(int row, int colum, Object newValue) throws IndexOutOfBoundsException ; 77 78 83 public void addRow(Collection row) throws InfoException; 84 } 85 | Popular Tags |