1 21 22 package org.apache.derby.impl.sql.execute; 23 24 import org.apache.derby.iapi.services.sanity.SanityManager; 25 import org.apache.derby.iapi.services.io.Storable; 26 import org.apache.derby.iapi.error.StandardException; 27 28 import org.apache.derby.iapi.sql.execute.ExecutionContext; 29 import org.apache.derby.iapi.sql.execute.ExecIndexRow; 30 import org.apache.derby.iapi.sql.execute.ExecRow; 31 32 import org.apache.derby.iapi.types.DataValueDescriptor; 33 34 import java.sql.ResultSet ; 35 36 import org.apache.derby.iapi.services.io.FormatableBitSet; 37 38 43 class IndexValueRow implements ExecIndexRow { 44 45 private ExecRow valueRow; 46 47 IndexValueRow(ExecRow valueRow) { 48 this.valueRow = valueRow; 49 } 50 51 54 public String toString() { 55 return valueRow.toString(); 56 } 57 58 59 64 public DataValueDescriptor[] getRowArray() { 65 return valueRow.getRowArray(); 66 } 67 68 69 public void setRowArray(DataValueDescriptor[] value) 70 { 71 valueRow.setRowArray(value); 72 } 73 public void setRowArray(Storable[] value) 74 { 75 valueRow.setRowArray(value); 76 } 77 78 83 public DataValueDescriptor[] getRowArrayClone() 84 { 85 return valueRow.getRowArrayClone(); 86 } 87 88 public int nColumns() { 90 return valueRow.nColumns(); 91 } 92 93 96 public DataValueDescriptor getColumn (int position) throws StandardException { 98 return valueRow.getColumn(position); 99 } 100 101 public void setColumn(int position, DataValueDescriptor col) { 103 valueRow.setColumn(position, col); 104 } 105 106 public ExecRow getClone() { 108 return new IndexValueRow(valueRow.getClone()); 109 } 110 111 public ExecRow getClone(FormatableBitSet clonedCols) { 112 return new IndexValueRow(valueRow.getClone(clonedCols)); 113 } 114 115 public ExecRow getNewNullRow() { 116 return new IndexValueRow(valueRow.getNewNullRow()); 117 } 118 119 public DataValueDescriptor cloneColumn(int columnPosition) 121 { 122 return valueRow.cloneColumn(columnPosition); 123 } 124 125 128 129 public void orderedNulls(int columnPosition) { 130 if (SanityManager.DEBUG) { 131 SanityManager.THROWASSERT("Not expected to be called"); 132 } 133 } 134 135 public boolean areNullsOrdered(int columnPosition) { 136 if (SanityManager.DEBUG) { 137 SanityManager.THROWASSERT("Not expected to be called"); 138 } 139 140 return false; 141 } 142 143 146 public void execRowToExecIndexRow(ExecRow valueRow) 147 { 148 this.valueRow = valueRow; 149 } 150 151 public void getNewObjectArray() 152 { 153 valueRow.getNewObjectArray(); 154 } 155 } 156 | Popular Tags |