1 package com.daffodilwoods.daffodildb.server.sql99.dql.resultsetmetadata; 2 3 import com.daffodilwoods.daffodildb.server.datadictionarysystem.*; 4 import com.daffodilwoods.daffodildb.server.sql99.dql.listenerevents.*; 5 import com.daffodilwoods.daffodildb.utils.field.*; 6 import com.daffodilwoods.database.resource.*; 7 8 22 23 public class SelectRowReader implements _RowReader { 24 25 28 29 _ColumnCharacteristics columnCharacteristics; 30 31 34 35 ForeignKeyColumns[] columns; 36 37 public SelectRowReader(_ColumnCharacteristics columnCharacteristics, ForeignKeyColumns[] columns0) { 38 this.columnCharacteristics = columnCharacteristics; 39 columns = columns0; 40 } 41 42 46 47 public Object getObject(int index, Object row) throws DException { 48 return ( (FieldBase) ( (Object []) row)[index - 1]).getObject(); 49 } 50 51 public void setObject(int columnIndex, Object value, Object row) throws DException { 52 Object tobeUpdated = ( (Object []) row)[columnIndex - 1]; 53 if (value instanceof FieldBase) { 54 tobeUpdated = value; 55 } else { 56 ( (FieldBase) tobeUpdated).setObject(value); 57 } 58 } 59 } 60 | Popular Tags |