1 32 33 package com.knowgate.hipergate.datamodel; 34 35 import java.util.ArrayList ; 36 import java.sql.SQLException ; 37 import java.sql.Connection ; 38 39 43 public interface ImportLoader { 44 45 int MODE_APPEND = 1; 46 int MODE_UPDATE = 2; 47 int MODE_APPENDUPDATE = 3; 48 int WRITE_LOOKUPS = 4; 49 50 54 int columnCount(); 55 56 60 String [] columnNames() throws IllegalStateException ; 61 62 68 Object get(int iColumnIndex) throws ArrayIndexOutOfBoundsException ; 69 70 76 Object get(String sColumnName) throws ArrayIndexOutOfBoundsException ; 77 78 83 int getColumnIndex(String sColumnName); 84 85 91 void put(int iColumnIndex, Object oValue) throws ArrayIndexOutOfBoundsException ; 92 93 99 void put(String sColumnName, Object oValue) throws ArrayIndexOutOfBoundsException ; 100 101 104 void setAllColumnsToNull(); 105 106 112 void prepare(Connection oConn, ColumnList oCols) throws SQLException ; 113 114 119 void close() throws SQLException ; 120 121 130 void store(Connection oConn, String sWorkArea, int iFlags) throws SQLException ,IllegalArgumentException ,NullPointerException ; 131 } 132 | Popular Tags |