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) |
java.lang.Object |
getObject(int columnIndex,
java.lang.Class type) |
java.lang.Object |
getObject(java.lang.String columnLabel,
java.lang.Class type) |
java.lang.String |
getString(int columnIndex) |
boolean |
isClosed() |
boolean |
next() |
protected java.sql.SQLException |
notImplemented(java.lang.String arg0) |
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() |
getBigDecimal, getBigDecimal, getBoolean, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, getTime, getTimestamp
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
next
in interface java.sql.ResultSet
next
in class org.apache.derby.vti.VTITemplate
java.sql.SQLException
public void close() throws java.sql.SQLException
close
in interface java.lang.AutoCloseable
close
in interface java.sql.ResultSet
close
in class org.apache.derby.vti.VTITemplate
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
java.sql.SQLException
public boolean isClosed() throws java.sql.SQLException
java.sql.SQLException
public void updateNString(int columnIndex, java.lang.String nString) throws java.sql.SQLException
java.sql.SQLException
public void updateNString(java.lang.String columnLabel, java.lang.String nString) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getNString(int columnIndex) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getNString(java.lang.String columnLabel) throws java.sql.SQLException
java.sql.SQLException
public java.io.Reader getNCharacterStream(int columnIndex) throws java.sql.SQLException
java.sql.SQLException
public java.io.Reader getNCharacterStream(java.lang.String columnLabel) throws java.sql.SQLException
java.sql.SQLException
public void updateNCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateAsciiStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateBinaryStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateBlob(int columnIndex, java.io.InputStream inputStream, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateClob(int columnIndex, java.io.Reader reader, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateNClob(int columnIndex, java.io.Reader reader, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateNClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateNCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException
java.sql.SQLException
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
java.sql.SQLException
public void updateAsciiStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException
java.sql.SQLException
public void updateBinaryStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException
java.sql.SQLException
public void updateCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException
java.sql.SQLException
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException
java.sql.SQLException
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException
java.sql.SQLException
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
java.sql.SQLException
public void updateBlob(int columnIndex, java.io.InputStream inputStream) throws java.sql.SQLException
java.sql.SQLException
public void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream) throws java.sql.SQLException
java.sql.SQLException
public void updateClob(int columnIndex, java.io.Reader reader) throws java.sql.SQLException
java.sql.SQLException
public void updateClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
java.sql.SQLException
public void updateNClob(int columnIndex, java.io.Reader reader) throws java.sql.SQLException
java.sql.SQLException
public void updateNClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
java.sql.SQLException
public java.lang.Object getObject(int columnIndex, java.lang.Class type) throws java.sql.SQLException
java.sql.SQLException
public java.lang.Object getObject(java.lang.String columnLabel, java.lang.Class type) throws java.sql.SQLException
java.sql.SQLException
protected java.sql.SQLException notImplemented(java.lang.String arg0)
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.