java.lang.AutoCloseable
, java.security.PrivilegedAction<java.io.InputStream>
, java.sql.ResultSet
, java.sql.Wrapper
, AwareVTI
, VTICosting
public final class ErrorMessages extends VTITemplate implements VTICosting, java.security.PrivilegedAction<java.io.InputStream>
To use it, query it as follows:
SELECT* FROM NEW org.apache.derby.diag.ErrorMessages() AS EQ;
The following columns will be returned:
VTITemplate.ColumnDescriptor
Modifier and Type | Field | Description |
---|---|---|
private static ResultColumnDescriptor[] |
columnInfo |
|
private java.lang.String |
k |
|
private java.util.Enumeration |
keys |
|
private java.lang.String |
message |
|
private static java.sql.ResultSetMetaData |
metadata |
|
private int |
msgFile |
|
private java.util.Properties |
p |
|
private int |
severity |
|
private java.lang.String |
SQLState |
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
defaultEstimatedCost, defaultEstimatedRowCount
Constructor | Description |
---|---|
ErrorMessages() |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
double |
getEstimatedCostPerInstantiation(VTIEnvironment vtiEnvironment) |
Get the estimated cost for a single instantiation of a Table Function.
|
double |
getEstimatedRowCount(VTIEnvironment vtiEnvironment) |
Get the estimated row count for a single scan of a Table Function.
|
int |
getInt(int columnIndex) |
|
java.sql.ResultSetMetaData |
getMetaData() |
|
java.lang.String |
getString(int columnIndex) |
|
private void |
loadProperties() |
|
boolean |
next() |
|
private boolean |
notAnException() |
|
java.io.InputStream |
run() |
|
boolean |
supportsMultipleInstantiations(VTIEnvironment vtiEnvironment) |
Find out if the ResultSet of the Table Function can be instantiated multiple times.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
updateObject, updateObject, updateObject, updateObject
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, getHoldability, getInt, getLong, getLong, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, 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, isClosed, isFirst, isLast, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, notImplemented, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setContext, setFetchDirection, setFetchSize, unwrap, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull
private java.util.Properties p
private java.util.Enumeration keys
private java.lang.String k
private java.lang.String SQLState
private java.lang.String message
private int severity
private int msgFile
private static final ResultColumnDescriptor[] columnInfo
private static final java.sql.ResultSetMetaData metadata
public ErrorMessages() throws java.io.IOException
java.io.IOException
public boolean next()
next
in interface java.sql.ResultSet
ResultSet.next()
public void close()
close
in interface java.lang.AutoCloseable
close
in interface java.sql.ResultSet
ResultSet.close()
public java.sql.ResultSetMetaData getMetaData()
getMetaData
in interface java.sql.ResultSet
getMetaData
in class VTITemplate
ResultSet.getMetaData()
public java.lang.String getString(int columnIndex) throws java.sql.SQLException
getString
in interface java.sql.ResultSet
getString
in class VTITemplate
java.sql.SQLException
- column at index is not foundResultSet.getString(int)
public int getInt(int columnIndex) throws java.sql.SQLException
getInt
in interface java.sql.ResultSet
getInt
in class VTITemplate
java.sql.SQLException
- column at index is not foundResultSet.getInt(int)
private void loadProperties() throws java.io.IOException
java.io.IOException
private boolean notAnException()
public double getEstimatedRowCount(VTIEnvironment vtiEnvironment)
VTICosting
getEstimatedRowCount
in interface VTICosting
vtiEnvironment
- The state variable for optimizing the Table Function.public double getEstimatedCostPerInstantiation(VTIEnvironment vtiEnvironment)
VTICosting
getEstimatedCostPerInstantiation
in interface VTICosting
vtiEnvironment
- The state variable for optimizing the Table Function.public boolean supportsMultipleInstantiations(VTIEnvironment vtiEnvironment)
VTICosting
supportsMultipleInstantiations
in interface VTICosting
vtiEnvironment
- The state variable for optimizing the Table Function.public final java.io.InputStream run()
run
in interface java.security.PrivilegedAction<java.io.InputStream>
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.