1 package com.daffodilwoods.daffodildb.client; 2 3 import com.daffodilwoods.daffodildb.server.sql99.dql.resultsetmetadata._SelectColumnCharacteristics; 4 5 import com.daffodilwoods.daffodildb.server.sql99.dql.resultsetmetadata._RowReader; 6 7 import java.sql.SQLException ; 8 9 import com.daffodilwoods.database.resource.*; 10 11 19 public class DummyRecord implements _Record { 20 21 private Object values; 22 private _RecordSetBuffer recordSetBuffer; 23 private Object currentKey; 24 private _RowReader rowReader; 25 26 public DummyRecord() { 27 } 28 29 public Object getColumnValue(int columnIndex) throws java.sql.SQLException { 30 try{ 31 return rowReader.getObject(columnIndex,values); 32 }catch(DException ex){ 33 throw new SQLException (ex.getMessage()); 34 } 35 } 36 public Object getColumnValue(String columnName) throws java.sql.SQLException { 37 try{ 38 return rowReader.getObject(recordSetBuffer.getColumnCharacteristics().getColumnIndex(columnName),values); 39 }catch(DException ex){ 40 throw new SQLException (ex.getMessage()); 41 } } 42 public void updateInitiate(int parm1, Object parm2) throws java.sql.SQLException { 43 44 throw new java.lang.UnsupportedOperationException ("Method updateInitiate() not yet implemented."); 45 } 46 public _SelectColumnCharacteristics getColumnCharacteristics() { 47 48 throw new java.lang.UnsupportedOperationException ("Method getColumnCharacteristics() not yet implemented."); 49 } 50 public void loadRecord(_Record parm1) throws java.sql.SQLException { 51 52 throw new java.lang.UnsupportedOperationException ("Method loadRecord() not yet implemented."); 53 } 54 public _Record getRecord(String parm1) throws java.sql.SQLException { 55 56 throw new java.lang.UnsupportedOperationException ("Method getRecord() not yet implemented."); 57 } 58 public _Record getRecord(int parm1) throws java.sql.SQLException { 59 60 throw new java.lang.UnsupportedOperationException ("Method getRecord() not yet implemented."); 61 } 62 public Object getIdentity() throws java.sql.SQLException { 63 64 throw new java.lang.UnsupportedOperationException ("Method getIdentity() not yet implemented."); 65 } 66 public _RecordSetBuffer getRecordSetBuffer() { 67 68 throw new java.lang.UnsupportedOperationException ("Method getRecordSetBuffer() not yet implemented."); 69 } 70 public boolean isLoaded() { 71 return true; 72 } 73 public boolean wasUpdated() { 74 75 throw new java.lang.UnsupportedOperationException ("Method wasUpdated() not yet implemented."); 76 } 77 public void unLoad() { 78 79 throw new java.lang.UnsupportedOperationException ("Method unLoad() not yet implemented."); 80 } 81 82 public void setBuffer(_RecordSetBuffer rsb) { 83 recordSetBuffer = rsb; 84 try{ 85 rowReader = rsb.getRowReader(); 86 } catch (Exception ex){ 87 } 88 } 89 90 public void setValues(Object row){ 91 this.values = row; 92 } 93 public void cancelUpdate() { 94 95 throw new java.lang.UnsupportedOperationException ("Method cancelUpdate() not yet implemented."); 96 } 97 98 public boolean isInserted(){ 99 100 throw new java.lang.UnsupportedOperationException ("Method isInserted() not yet implemented."); 101 } 102 103 } 104 | Popular Tags |