1 33 package smallsql.database; 34 35 import java.sql.*; 36 37 42 public class StoreNoCurrentRow extends Store { 43 44 private SQLException noCurrentRow(){ 45 return Utils.createSQLException("No current row."); 46 } 47 48 49 boolean isNull(int offset) throws SQLException { 50 throw noCurrentRow(); 51 } 52 53 54 boolean getBoolean(int offset, int dataType) throws Exception { 55 throw noCurrentRow(); 56 } 57 58 59 byte[] getBytes(int offset, int dataType) throws Exception { 60 throw noCurrentRow(); 61 } 62 63 64 double getDouble(int offset, int dataType) throws Exception { 65 throw noCurrentRow(); 66 } 67 68 69 float getFloat(int offset, int dataType) throws Exception { 70 throw noCurrentRow(); 71 } 72 73 74 int getInt(int offset, int dataType) throws Exception { 75 throw noCurrentRow(); 76 } 77 78 79 long getLong(int offset, int dataType) throws Exception { 80 throw noCurrentRow(); 81 } 82 83 84 long getMoney(int offset, int dataType) throws Exception { 85 throw noCurrentRow(); 86 } 87 88 89 MutableNumeric getNumeric(int offset, int dataType) throws Exception { 90 throw noCurrentRow(); 91 } 92 93 94 Object getObject(int offset, int dataType) throws Exception { 95 throw noCurrentRow(); 96 } 97 98 99 String getString(int offset, int dataType) throws Exception { 100 throw noCurrentRow(); 101 } 102 103 104 105 void scanObjectOffsets(int[] offsets, int[] dataTypes) { 106 108 } 109 110 111 int getUsedSize() { 112 return 0; 114 } 115 116 long getNextPagePos(){ 117 return -1; 119 } 120 121 void deleteRow(SSConnection con) throws SQLException{ 122 throw noCurrentRow(); 123 } 124 } 125 | Popular Tags |