public class SampleVTI
extends org.apache.derby.vti.VTITemplate
This VTI is incomplete and has its quirks - it is intended for basic testing only! Supported getters:
Modifier and Type | Field and Description |
---|---|
private boolean |
closed |
private int |
cols |
private java.lang.String[][] |
data |
private int |
index |
private static java.lang.String[][] |
oneColData |
private int |
rows |
private boolean |
wasNull |
Modifier | Constructor and Description |
---|---|
private |
SampleVTI(java.lang.String[][] data) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static java.sql.ResultSet |
emptySampleVTI()
Returns a sample VTI that is empty (has zero rows).
|
private java.lang.String |
getColumn(int columnIndex) |
int |
getHoldability() |
int |
getInt(int columnIndex) |
java.io.Reader |
getNCharacterStream(int columnIndex) |
java.io.Reader |
getNCharacterStream(java.lang.String columnLabel) |
java.lang.String |
getNString(int columnIndex) |
java.lang.String |
getNString(java.lang.String columnLabel) |
<T> T |
getObject(int columnIndex,
java.lang.Class<T> type) |
<T> T |
getObject(java.lang.String columnLabel,
java.lang.Class<T> type) |
java.lang.String |
getString(int columnIndex) |
boolean |
isClosed() |
boolean |
next() |
static java.sql.ResultSet |
oneColSampleVTI()
Returns a sample VTI with the some test data.
|
static java.lang.String[][] |
oneColSampleVTIData() |
void |
updateAsciiStream(int columnIndex,
java.io.InputStream x) |
void |
updateAsciiStream(int columnIndex,
java.io.InputStream x,
long length) |
void |
updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x) |
void |
updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x,
long length) |
void |
updateBinaryStream(int columnIndex,
java.io.InputStream x) |
void |
updateBinaryStream(int columnIndex,
java.io.InputStream x,
long length) |
void |
updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x) |
void |
updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x,
long length) |
void |
updateBlob(int columnIndex,
java.io.InputStream inputStream) |
void |
updateBlob(int columnIndex,
java.io.InputStream inputStream,
long length) |
void |
updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream) |
void |
updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream,
long length) |
void |
updateCharacterStream(int columnIndex,
java.io.Reader x) |
void |
updateCharacterStream(int columnIndex,
java.io.Reader x,
long length) |
void |
updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader) |
void |
updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length) |
void |
updateClob(int columnIndex,
java.io.Reader reader) |
void |
updateClob(int columnIndex,
java.io.Reader reader,
long length) |
void |
updateClob(java.lang.String columnLabel,
java.io.Reader reader) |
void |
updateClob(java.lang.String columnLabel,
java.io.Reader reader,
long length) |
void |
updateNCharacterStream(int columnIndex,
java.io.Reader x) |
void |
updateNCharacterStream(int columnIndex,
java.io.Reader x,
long length) |
void |
updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader) |
void |
updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length) |
void |
updateNClob(int columnIndex,
java.io.Reader reader) |
void |
updateNClob(int columnIndex,
java.io.Reader reader,
long length) |
void |
updateNClob(java.lang.String columnLabel,
java.io.Reader reader) |
void |
updateNClob(java.lang.String columnLabel,
java.io.Reader reader,
long length) |
void |
updateNString(int columnIndex,
java.lang.String nString) |
void |
updateNString(java.lang.String columnLabel,
java.lang.String nString) |
boolean |
wasNull() |
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getContext, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getInt, getLong, getLong, getMetaData, getNClob, getNClob, getObject, getObject, getObject, getObject, getRef, getRef, getReturnTableSignature, getRow, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, notImplemented, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setContext, setFetchDirection, setFetchSize, unwrap, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNClob, updateNClob, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp
private static final java.lang.String[][] oneColData
private final java.lang.String[][] data
private final int rows
private final int cols
private int index
private boolean wasNull
private boolean closed
public static java.sql.ResultSet emptySampleVTI()
public static java.sql.ResultSet oneColSampleVTI()
public static java.lang.String[][] oneColSampleVTIData()
private java.lang.String getColumn(int columnIndex) throws java.sql.SQLException
java.sql.SQLException
public boolean next() throws java.sql.SQLException
java.sql.SQLException
public void close() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getString(int columnIndex) throws java.sql.SQLException
getString
in interface java.sql.ResultSet
getString
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public int getInt(int columnIndex) throws java.sql.SQLException
getInt
in interface java.sql.ResultSet
getInt
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public boolean wasNull()
wasNull
in interface java.sql.ResultSet
wasNull
in class org.apache.derby.vti.VTITemplate
public int getHoldability() throws java.sql.SQLException
getHoldability
in interface java.sql.ResultSet
getHoldability
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public boolean isClosed() throws java.sql.SQLException
isClosed
in interface java.sql.ResultSet
isClosed
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateNString(int columnIndex, java.lang.String nString) throws java.sql.SQLException
updateNString
in interface java.sql.ResultSet
updateNString
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateNString(java.lang.String columnLabel, java.lang.String nString) throws java.sql.SQLException
updateNString
in interface java.sql.ResultSet
updateNString
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public java.lang.String getNString(int columnIndex) throws java.sql.SQLException
getNString
in interface java.sql.ResultSet
getNString
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public java.lang.String getNString(java.lang.String columnLabel) throws java.sql.SQLException
getNString
in interface java.sql.ResultSet
getNString
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public java.io.Reader getNCharacterStream(int columnIndex) throws java.sql.SQLException
getNCharacterStream
in interface java.sql.ResultSet
getNCharacterStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public java.io.Reader getNCharacterStream(java.lang.String columnLabel) throws java.sql.SQLException
getNCharacterStream
in interface java.sql.ResultSet
getNCharacterStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateNCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException
updateNCharacterStream
in interface java.sql.ResultSet
updateNCharacterStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
updateNCharacterStream
in interface java.sql.ResultSet
updateNCharacterStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateAsciiStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException
updateAsciiStream
in interface java.sql.ResultSet
updateAsciiStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateBinaryStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException
updateBinaryStream
in interface java.sql.ResultSet
updateBinaryStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException
updateCharacterStream
in interface java.sql.ResultSet
updateCharacterStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLException
updateAsciiStream
in interface java.sql.ResultSet
updateAsciiStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLException
updateBinaryStream
in interface java.sql.ResultSet
updateBinaryStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
updateCharacterStream
in interface java.sql.ResultSet
updateCharacterStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateBlob(int columnIndex, java.io.InputStream inputStream, long length) throws java.sql.SQLException
updateBlob
in interface java.sql.ResultSet
updateBlob
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream, long length) throws java.sql.SQLException
updateBlob
in interface java.sql.ResultSet
updateBlob
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateClob(int columnIndex, java.io.Reader reader, long length) throws java.sql.SQLException
updateClob
in interface java.sql.ResultSet
updateClob
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
updateClob
in interface java.sql.ResultSet
updateClob
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateNClob(int columnIndex, java.io.Reader reader, long length) throws java.sql.SQLException
updateNClob
in interface java.sql.ResultSet
updateNClob
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateNClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
updateNClob
in interface java.sql.ResultSet
updateNClob
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateNCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException
updateNCharacterStream
in interface java.sql.ResultSet
updateNCharacterStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
updateNCharacterStream
in interface java.sql.ResultSet
updateNCharacterStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateAsciiStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException
updateAsciiStream
in interface java.sql.ResultSet
updateAsciiStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateBinaryStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException
updateBinaryStream
in interface java.sql.ResultSet
updateBinaryStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException
updateCharacterStream
in interface java.sql.ResultSet
updateCharacterStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException
updateAsciiStream
in interface java.sql.ResultSet
updateAsciiStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException
updateBinaryStream
in interface java.sql.ResultSet
updateBinaryStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
updateCharacterStream
in interface java.sql.ResultSet
updateCharacterStream
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateBlob(int columnIndex, java.io.InputStream inputStream) throws java.sql.SQLException
updateBlob
in interface java.sql.ResultSet
updateBlob
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream) throws java.sql.SQLException
updateBlob
in interface java.sql.ResultSet
updateBlob
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateClob(int columnIndex, java.io.Reader reader) throws java.sql.SQLException
updateClob
in interface java.sql.ResultSet
updateClob
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
updateClob
in interface java.sql.ResultSet
updateClob
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateNClob(int columnIndex, java.io.Reader reader) throws java.sql.SQLException
updateNClob
in interface java.sql.ResultSet
updateNClob
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void updateNClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
updateNClob
in interface java.sql.ResultSet
updateNClob
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public <T> T getObject(int columnIndex, java.lang.Class<T> type) throws java.sql.SQLException
getObject
in interface java.sql.ResultSet
getObject
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public <T> T getObject(java.lang.String columnLabel, java.lang.Class<T> type) throws java.sql.SQLException
getObject
in interface java.sql.ResultSet
getObject
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.