📄 indexvaluerow.java
字号:
/* Derby - Class org.apache.derby.impl.sql.execute.IndexValueRow Copyright 1997, 2004 The Apache Software Foundation or its licensors, as applicable. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */package org.apache.derby.impl.sql.execute;import org.apache.derby.iapi.services.sanity.SanityManager;import org.apache.derby.iapi.services.io.Storable;import org.apache.derby.iapi.error.StandardException;import org.apache.derby.iapi.sql.execute.ExecutionContext;import org.apache.derby.iapi.sql.execute.ExecIndexRow;import org.apache.derby.iapi.sql.execute.ExecRow;import org.apache.derby.iapi.types.DataValueDescriptor;import java.sql.ResultSet;import org.apache.derby.iapi.services.io.FormatableBitSet;/** Mapper of ValueRow into ExecIndexRow. @author ames */class IndexValueRow implements ExecIndexRow { private ExecRow valueRow; IndexValueRow(ExecRow valueRow) { this.valueRow = valueRow; } /* * class interface */ public String toString() { return valueRow.toString(); } /** Get the array form of the row that Access expects. @see ExecRow#getRowArray */ public DataValueDescriptor[] getRowArray() { return valueRow.getRowArray(); } /** @see ExecRow#getRowArray */ public void setRowArray(DataValueDescriptor[] value) { valueRow.setRowArray(value); } public void setRowArray(Storable[] value) { valueRow.setRowArray(value); } /** Get a clone of the array form of the row that Access expects. @see ExecRow#getRowArray */ public DataValueDescriptor[] getRowArrayClone() { return valueRow.getRowArrayClone(); } // this is the actual current # of columns public int nColumns() { return valueRow.nColumns(); } /* * Row interface */ // position is 1-based public DataValueDescriptor getColumn (int position) throws StandardException { return valueRow.getColumn(position); } // position is 1-based. public void setColumn(int position, DataValueDescriptor col) { valueRow.setColumn(position, col); } // position is 1-based public ExecRow getClone() { return new IndexValueRow(valueRow.getClone()); } public ExecRow getClone(FormatableBitSet clonedCols) { return new IndexValueRow(valueRow.getClone(clonedCols)); } public ExecRow getNewNullRow() { return new IndexValueRow(valueRow.getNewNullRow()); } // position is 1-based public DataValueDescriptor cloneColumn(int columnPosition) { return valueRow.cloneColumn(columnPosition); } /* * ExecIndexRow interface */ public void orderedNulls(int columnPosition) { if (SanityManager.DEBUG) { SanityManager.THROWASSERT("Not expected to be called"); } } public boolean areNullsOrdered(int columnPosition) { if (SanityManager.DEBUG) { SanityManager.THROWASSERT("Not expected to be called"); } return false; } /** * Turn the ExecRow into an ExecIndexRow. * * @return Nothing. */ public void execRowToExecIndexRow(ExecRow valueRow) { this.valueRow = valueRow; } public void getNewObjectArray() { valueRow.getNewObjectArray(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -