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, getTimestampclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprivate 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.SQLExceptionpublic boolean next()
throws java.sql.SQLException
next in interface java.sql.ResultSetnext in class org.apache.derby.vti.VTITemplatejava.sql.SQLExceptionpublic void close()
throws java.sql.SQLException
close in interface java.lang.AutoCloseableclose in interface java.sql.ResultSetclose in class org.apache.derby.vti.VTITemplatejava.sql.SQLExceptionpublic java.lang.String getString(int columnIndex)
throws java.sql.SQLException
getString in interface java.sql.ResultSetgetString in class org.apache.derby.vti.VTITemplatejava.sql.SQLExceptionpublic int getInt(int columnIndex)
throws java.sql.SQLException
getInt in interface java.sql.ResultSetgetInt in class org.apache.derby.vti.VTITemplatejava.sql.SQLExceptionpublic boolean wasNull()
wasNull in interface java.sql.ResultSetwasNull in class org.apache.derby.vti.VTITemplatepublic int getHoldability()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isClosed()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNString(int columnIndex,
java.lang.String nString)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNString(java.lang.String columnLabel,
java.lang.String nString)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String getNString(int columnIndex)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String getNString(java.lang.String columnLabel)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.Reader getNCharacterStream(int columnIndex)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.Reader getNCharacterStream(java.lang.String columnLabel)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNCharacterStream(int columnIndex,
java.io.Reader x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateAsciiStream(int columnIndex,
java.io.InputStream x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBinaryStream(int columnIndex,
java.io.InputStream x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateCharacterStream(int columnIndex,
java.io.Reader x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBlob(int columnIndex,
java.io.InputStream inputStream,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateClob(int columnIndex,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateClob(java.lang.String columnLabel,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNClob(int columnIndex,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNClob(java.lang.String columnLabel,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNCharacterStream(int columnIndex,
java.io.Reader x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateAsciiStream(int columnIndex,
java.io.InputStream x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBinaryStream(int columnIndex,
java.io.InputStream x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateCharacterStream(int columnIndex,
java.io.Reader x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBlob(int columnIndex,
java.io.InputStream inputStream)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateClob(int columnIndex,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateClob(java.lang.String columnLabel,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNClob(int columnIndex,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNClob(java.lang.String columnLabel,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Object getObject(int columnIndex,
java.lang.Class type)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Object getObject(java.lang.String columnLabel,
java.lang.Class type)
throws java.sql.SQLException
java.sql.SQLExceptionprotected java.sql.SQLException notImplemented(java.lang.String arg0)
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.