Package org.h2.tools
Class SimpleResultSet
- java.lang.Object
-
- org.h2.tools.SimpleResultSet
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.sql.ResultSet
,java.sql.ResultSetMetaData
,java.sql.Wrapper
public class SimpleResultSet extends java.lang.Object implements java.sql.ResultSet, java.sql.ResultSetMetaData
This class is a simple result set and meta data implementation. It can be used in Java functions that return a result set. Only the most basic methods are implemented, the others throw an exception. This implementation is standalone, and only relies on standard classes. It can be extended easily if required. An application can create a result set using the following code:SimpleResultSet rs = new SimpleResultSet(); rs.addColumn("ID", Types.INTEGER, 10, 0); rs.addColumn("NAME", Types.VARCHAR, 255, 0); rs.addRow(0, "Hello" }); rs.addRow(1, "World" });
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleResultSet.SimpleArray
A simple array implementation, backed by an object array
-
Field Summary
Fields Modifier and Type Field Description private boolean
autoClose
private java.util.ArrayList<SimpleColumnInfo>
columns
private java.lang.Object[]
currentRow
private int
rowId
private java.util.ArrayList<java.lang.Object[]>
rows
private SimpleRowSource
source
private boolean
wasNull
-
Constructor Summary
Constructors Constructor Description SimpleResultSet()
This constructor is used if the result set is later populated with addRow.SimpleResultSet(SimpleRowSource source)
This constructor is used if the result set should retrieve the rows using the specified row source object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
absolute(int row)
INTERNALvoid
addColumn(java.lang.String name, int sqlType, int precision, int scale)
Adds a column to the result set.void
addColumn(java.lang.String name, int sqlType, java.lang.String sqlTypeName, int precision, int scale)
Adds a column to the result set.void
addRow(java.lang.Object... row)
Add a new row to the result set.void
afterLast()
INTERNALprivate static java.io.InputStream
asInputStream(java.lang.Object o)
private static java.io.Reader
asReader(java.lang.Object o)
void
beforeFirst()
Moves the current position to before the first row, that means the result set is reset.void
cancelRowUpdates()
INTERNALprivate void
checkClosed()
private void
checkColumnIndex(int columnIndex)
void
clearWarnings()
INTERNALvoid
close()
Closes the result set and releases the resources.void
deleteRow()
INTERNALint
findColumn(java.lang.String columnLabel)
Searches for a specific column in the result set.boolean
first()
INTERNALprivate java.lang.Object
get(int columnIndex)
java.sql.Array
getArray(int columnIndex)
Returns the value as a java.sql.Array.java.sql.Array
getArray(java.lang.String columnLabel)
Returns the value as a java.sql.Array.java.io.InputStream
getAsciiStream(int columnIndex)
INTERNALjava.io.InputStream
getAsciiStream(java.lang.String columnLabel)
INTERNALboolean
getAutoClose()
Get the current auto-close behavior.java.math.BigDecimal
getBigDecimal(int columnIndex)
Returns the value as a java.math.BigDecimal.java.math.BigDecimal
getBigDecimal(int columnIndex, int scale)
Deprecated.INTERNALjava.math.BigDecimal
getBigDecimal(java.lang.String columnLabel)
Returns the value as a java.math.BigDecimal.java.math.BigDecimal
getBigDecimal(java.lang.String columnLabel, int scale)
Deprecated.INTERNALjava.io.InputStream
getBinaryStream(int columnIndex)
Returns the value as a java.io.InputStream.java.io.InputStream
getBinaryStream(java.lang.String columnLabel)
Returns the value as a java.io.InputStream.java.sql.Blob
getBlob(int columnIndex)
Returns the value as a java.sql.Blob.java.sql.Blob
getBlob(java.lang.String columnLabel)
Returns the value as a java.sql.Blob.boolean
getBoolean(int columnIndex)
Returns the value as a boolean.boolean
getBoolean(java.lang.String columnLabel)
Returns the value as a boolean.byte
getByte(int columnIndex)
Returns the value as a byte.byte
getByte(java.lang.String columnLabel)
Returns the value as a byte.byte[]
getBytes(int columnIndex)
Returns the value as a byte array.byte[]
getBytes(java.lang.String columnLabel)
Returns the value as a byte array.java.lang.String
getCatalogName(int columnIndex)
Returns empty string.java.io.Reader
getCharacterStream(int columnIndex)
Returns the value as a java.io.Reader.java.io.Reader
getCharacterStream(java.lang.String columnLabel)
Returns the value as a java.io.Reader.java.sql.Clob
getClob(int columnIndex)
Returns the value as a java.sql.Clob.java.sql.Clob
getClob(java.lang.String columnLabel)
Returns the value as a java.sql.Clob.private SimpleColumnInfo
getColumn(int i)
java.lang.String
getColumnClassName(int columnIndex)
Returns the Java class name if this column.int
getColumnCount()
Returns the column count.int
getColumnDisplaySize(int columnIndex)
Returns 15.java.lang.String
getColumnLabel(int columnIndex)
Returns the column label.java.lang.String
getColumnName(int columnIndex)
Returns the column name.int
getColumnType(int columnIndex)
Returns the SQL type.java.lang.String
getColumnTypeName(int columnIndex)
Returns the data type name of a column.int
getConcurrency()
Returns ResultSet.CONCUR_READ_ONLY.java.lang.String
getCursorName()
INTERNALjava.sql.Date
getDate(int columnIndex)
Returns the value as an java.sql.Date.java.sql.Date
getDate(int columnIndex, java.util.Calendar cal)
INTERNALjava.sql.Date
getDate(java.lang.String columnLabel)
Returns the value as a java.sql.Date.java.sql.Date
getDate(java.lang.String columnLabel, java.util.Calendar cal)
INTERNALdouble
getDouble(int columnIndex)
Returns the value as an double.double
getDouble(java.lang.String columnLabel)
Returns the value as a double.int
getFetchDirection()
Returns ResultSet.FETCH_FORWARD.int
getFetchSize()
Returns 0.float
getFloat(int columnIndex)
Returns the value as a float.float
getFloat(java.lang.String columnLabel)
Returns the value as a float.int
getHoldability()
Returns the current result set holdability.int
getInt(int columnIndex)
Returns the value as an int.int
getInt(java.lang.String columnLabel)
Returns the value as an int.long
getLong(int columnIndex)
Returns the value as a long.long
getLong(java.lang.String columnLabel)
Returns the value as a long.java.sql.ResultSetMetaData
getMetaData()
Returns a reference to itself.java.io.Reader
getNCharacterStream(int columnIndex)
INTERNALjava.io.Reader
getNCharacterStream(java.lang.String columnLabel)
INTERNALjava.sql.NClob
getNClob(int columnIndex)
INTERNALjava.sql.NClob
getNClob(java.lang.String columnLabel)
INTERNALjava.lang.String
getNString(int columnIndex)
INTERNALjava.lang.String
getNString(java.lang.String columnLabel)
INTERNALjava.lang.Object
getObject(int columnIndex)
Returns the value as an Object.<T> T
getObject(int columnIndex, java.lang.Class<T> type)
Returns the value as an Object of the specified type.java.lang.Object
getObject(int columnIndex, java.util.Map<java.lang.String,java.lang.Class<?>> map)
INTERNALjava.lang.Object
getObject(java.lang.String columnLabel)
Returns the value as an Object.<T> T
getObject(java.lang.String columnName, java.lang.Class<T> type)
Returns the value as an Object of the specified type.java.lang.Object
getObject(java.lang.String columnLabel, java.util.Map<java.lang.String,java.lang.Class<?>> map)
INTERNALint
getPrecision(int columnIndex)
Returns the precision.java.sql.Ref
getRef(int columnIndex)
INTERNALjava.sql.Ref
getRef(java.lang.String columnLabel)
INTERNALint
getRow()
Returns the row number (1, 2,...) or 0 for no row.java.sql.RowId
getRowId(int columnIndex)
INTERNALjava.sql.RowId
getRowId(java.lang.String columnLabel)
INTERNALint
getScale(int columnIndex)
Returns the scale.java.lang.String
getSchemaName(int columnIndex)
Returns empty string.short
getShort(int columnIndex)
Returns the value as a short.short
getShort(java.lang.String columnLabel)
Returns the value as a short.java.sql.SQLXML
getSQLXML(int columnIndex)
INTERNALjava.sql.SQLXML
getSQLXML(java.lang.String columnLabel)
INTERNALjava.sql.Statement
getStatement()
Returns null.java.lang.String
getString(int columnIndex)
Returns the value as a String.java.lang.String
getString(java.lang.String columnLabel)
Returns the value as a String.java.lang.String
getTableName(int columnIndex)
Returns empty string.java.sql.Time
getTime(int columnIndex)
Returns the value as an java.sql.Time.java.sql.Time
getTime(int columnIndex, java.util.Calendar cal)
INTERNALjava.sql.Time
getTime(java.lang.String columnLabel)
Returns the value as a java.sql.Time.java.sql.Time
getTime(java.lang.String columnLabel, java.util.Calendar cal)
INTERNALjava.sql.Timestamp
getTimestamp(int columnIndex)
Returns the value as an java.sql.Timestamp.java.sql.Timestamp
getTimestamp(int columnIndex, java.util.Calendar cal)
INTERNALjava.sql.Timestamp
getTimestamp(java.lang.String columnLabel)
Returns the value as a java.sql.Timestamp.java.sql.Timestamp
getTimestamp(java.lang.String columnLabel, java.util.Calendar cal)
INTERNALint
getType()
Returns the result set type.java.io.InputStream
getUnicodeStream(int columnIndex)
Deprecated.INTERNALjava.io.InputStream
getUnicodeStream(java.lang.String columnLabel)
Deprecated.INTERNAL(package private) static java.sql.SQLException
getUnsupportedException()
INTERNALjava.net.URL
getURL(int columnIndex)
INTERNALjava.net.URL
getURL(java.lang.String columnLabel)
INTERNALjava.sql.SQLWarning
getWarnings()
Returns null.void
insertRow()
INTERNALboolean
isAfterLast()
INTERNALboolean
isAutoIncrement(int columnIndex)
Returns false.boolean
isBeforeFirst()
INTERNALboolean
isCaseSensitive(int columnIndex)
Returns true.boolean
isClosed()
Returns whether this result set has been closed.boolean
isCurrency(int columnIndex)
Returns false.boolean
isDefinitelyWritable(int columnIndex)
Returns false.boolean
isFirst()
INTERNALboolean
isLast()
INTERNALint
isNullable(int columnIndex)
Returns ResultSetMetaData.columnNullableUnknown.boolean
isReadOnly(int columnIndex)
Returns true.boolean
isSearchable(int columnIndex)
Returns true.boolean
isSigned(int columnIndex)
Returns true.boolean
isWrapperFor(java.lang.Class<?> iface)
Checks if unwrap can return an object of this class.boolean
isWritable(int columnIndex)
Returns false.boolean
last()
INTERNALvoid
moveToCurrentRow()
INTERNALvoid
moveToInsertRow()
INTERNALboolean
next()
Moves the cursor to the next row of the result set.boolean
previous()
INTERNALvoid
refreshRow()
INTERNALboolean
relative(int offset)
INTERNALboolean
rowDeleted()
INTERNALboolean
rowInserted()
INTERNALboolean
rowUpdated()
INTERNALvoid
setAutoClose(boolean autoClose)
Set the auto-close behavior.void
setFetchDirection(int direction)
INTERNALvoid
setFetchSize(int rows)
INTERNAL<T> T
unwrap(java.lang.Class<T> iface)
Return an object of this class if possible.private void
update(int columnIndex, java.lang.Object obj)
private void
update(java.lang.String columnLabel, java.lang.Object obj)
void
updateArray(int columnIndex, java.sql.Array x)
INTERNALvoid
updateArray(java.lang.String columnLabel, java.sql.Array x)
INTERNALvoid
updateAsciiStream(int columnIndex, java.io.InputStream x)
INTERNALvoid
updateAsciiStream(int columnIndex, java.io.InputStream x, int length)
INTERNALvoid
updateAsciiStream(int columnIndex, java.io.InputStream x, long length)
INTERNALvoid
updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x)
INTERNALvoid
updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, int length)
INTERNALvoid
updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, long length)
INTERNALvoid
updateBigDecimal(int columnIndex, java.math.BigDecimal x)
INTERNALvoid
updateBigDecimal(java.lang.String columnLabel, java.math.BigDecimal x)
INTERNALvoid
updateBinaryStream(int columnIndex, java.io.InputStream x)
INTERNALvoid
updateBinaryStream(int columnIndex, java.io.InputStream x, int length)
INTERNALvoid
updateBinaryStream(int columnIndex, java.io.InputStream x, long length)
INTERNALvoid
updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x)
INTERNALvoid
updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, int length)
INTERNALvoid
updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, long length)
INTERNALvoid
updateBlob(int columnIndex, java.io.InputStream x)
INTERNALvoid
updateBlob(int columnIndex, java.io.InputStream x, long length)
INTERNALvoid
updateBlob(int columnIndex, java.sql.Blob x)
INTERNALvoid
updateBlob(java.lang.String columnLabel, java.io.InputStream x)
INTERNALvoid
updateBlob(java.lang.String columnLabel, java.io.InputStream x, long length)
INTERNALvoid
updateBlob(java.lang.String columnLabel, java.sql.Blob x)
INTERNALvoid
updateBoolean(int columnIndex, boolean x)
INTERNALvoid
updateBoolean(java.lang.String columnLabel, boolean x)
INTERNALvoid
updateByte(int columnIndex, byte x)
INTERNALvoid
updateByte(java.lang.String columnLabel, byte x)
INTERNALvoid
updateBytes(int columnIndex, byte[] x)
INTERNALvoid
updateBytes(java.lang.String columnLabel, byte[] x)
INTERNALvoid
updateCharacterStream(int columnIndex, java.io.Reader x)
INTERNALvoid
updateCharacterStream(int columnIndex, java.io.Reader x, int length)
INTERNALvoid
updateCharacterStream(int columnIndex, java.io.Reader x, long length)
INTERNALvoid
updateCharacterStream(java.lang.String columnLabel, java.io.Reader x)
INTERNALvoid
updateCharacterStream(java.lang.String columnLabel, java.io.Reader x, int length)
INTERNALvoid
updateCharacterStream(java.lang.String columnLabel, java.io.Reader x, long length)
INTERNALvoid
updateClob(int columnIndex, java.io.Reader x)
INTERNALvoid
updateClob(int columnIndex, java.io.Reader x, long length)
INTERNALvoid
updateClob(int columnIndex, java.sql.Clob x)
INTERNALvoid
updateClob(java.lang.String columnLabel, java.io.Reader x)
INTERNALvoid
updateClob(java.lang.String columnLabel, java.io.Reader x, long length)
INTERNALvoid
updateClob(java.lang.String columnLabel, java.sql.Clob x)
INTERNALvoid
updateDate(int columnIndex, java.sql.Date x)
INTERNALvoid
updateDate(java.lang.String columnLabel, java.sql.Date x)
INTERNALvoid
updateDouble(int columnIndex, double x)
INTERNALvoid
updateDouble(java.lang.String columnLabel, double x)
INTERNALvoid
updateFloat(int columnIndex, float x)
INTERNALvoid
updateFloat(java.lang.String columnLabel, float x)
INTERNALvoid
updateInt(int columnIndex, int x)
INTERNALvoid
updateInt(java.lang.String columnLabel, int x)
INTERNALvoid
updateLong(int columnIndex, long x)
INTERNALvoid
updateLong(java.lang.String columnLabel, long x)
INTERNALvoid
updateNCharacterStream(int columnIndex, java.io.Reader x)
INTERNALvoid
updateNCharacterStream(int columnIndex, java.io.Reader x, long length)
INTERNALvoid
updateNCharacterStream(java.lang.String columnLabel, java.io.Reader x)
INTERNALvoid
updateNCharacterStream(java.lang.String columnLabel, java.io.Reader x, long length)
INTERNALvoid
updateNClob(int columnIndex, java.io.Reader x)
INTERNALvoid
updateNClob(int columnIndex, java.io.Reader x, long length)
INTERNALvoid
updateNClob(int columnIndex, java.sql.NClob x)
INTERNALvoid
updateNClob(java.lang.String columnLabel, java.io.Reader x)
INTERNALvoid
updateNClob(java.lang.String columnLabel, java.io.Reader x, long length)
INTERNALvoid
updateNClob(java.lang.String columnLabel, java.sql.NClob x)
INTERNALvoid
updateNString(int columnIndex, java.lang.String x)
INTERNALvoid
updateNString(java.lang.String columnLabel, java.lang.String x)
INTERNALvoid
updateNull(int columnIndex)
INTERNALvoid
updateNull(java.lang.String columnLabel)
INTERNALvoid
updateObject(int columnIndex, java.lang.Object x)
INTERNALvoid
updateObject(int columnIndex, java.lang.Object x, int scale)
INTERNALvoid
updateObject(java.lang.String columnLabel, java.lang.Object x)
INTERNALvoid
updateObject(java.lang.String columnLabel, java.lang.Object x, int scale)
INTERNALvoid
updateRef(int columnIndex, java.sql.Ref x)
INTERNALvoid
updateRef(java.lang.String columnLabel, java.sql.Ref x)
INTERNALvoid
updateRow()
INTERNALvoid
updateRowId(int columnIndex, java.sql.RowId x)
INTERNALvoid
updateRowId(java.lang.String columnLabel, java.sql.RowId x)
INTERNALvoid
updateShort(int columnIndex, short x)
INTERNALvoid
updateShort(java.lang.String columnLabel, short x)
INTERNALvoid
updateSQLXML(int columnIndex, java.sql.SQLXML x)
INTERNALvoid
updateSQLXML(java.lang.String columnLabel, java.sql.SQLXML x)
INTERNALvoid
updateString(int columnIndex, java.lang.String x)
INTERNALvoid
updateString(java.lang.String columnLabel, java.lang.String x)
INTERNALvoid
updateTime(int columnIndex, java.sql.Time x)
INTERNALvoid
updateTime(java.lang.String columnLabel, java.sql.Time x)
INTERNALvoid
updateTimestamp(int columnIndex, java.sql.Timestamp x)
INTERNALvoid
updateTimestamp(java.lang.String columnLabel, java.sql.Timestamp x)
INTERNALboolean
wasNull()
Returns whether the last column accessed was null.
-
-
-
Field Detail
-
rows
private java.util.ArrayList<java.lang.Object[]> rows
-
currentRow
private java.lang.Object[] currentRow
-
rowId
private int rowId
-
wasNull
private boolean wasNull
-
source
private SimpleRowSource source
-
columns
private java.util.ArrayList<SimpleColumnInfo> columns
-
autoClose
private boolean autoClose
-
-
Constructor Detail
-
SimpleResultSet
public SimpleResultSet()
This constructor is used if the result set is later populated with addRow.
-
SimpleResultSet
public SimpleResultSet(SimpleRowSource source)
This constructor is used if the result set should retrieve the rows using the specified row source object.- Parameters:
source
- the row source
-
-
Method Detail
-
addColumn
public void addColumn(java.lang.String name, int sqlType, int precision, int scale)
Adds a column to the result set. All columns must be added before adding rows. This method uses the default SQL type names.- Parameters:
name
- null is replaced with C1, C2,...sqlType
- the value returned in getColumnType(..)precision
- the precisionscale
- the scale
-
addColumn
public void addColumn(java.lang.String name, int sqlType, java.lang.String sqlTypeName, int precision, int scale)
Adds a column to the result set. All columns must be added before adding rows.- Parameters:
name
- null is replaced with C1, C2,...sqlType
- the value returned in getColumnType(..)sqlTypeName
- the type name return in getColumnTypeName(..)precision
- the precisionscale
- the scale
-
addRow
public void addRow(java.lang.Object... row)
Add a new row to the result set. Do not use this method when using a RowSource.- Parameters:
row
- the row as an array of objects
-
getConcurrency
public int getConcurrency()
Returns ResultSet.CONCUR_READ_ONLY.- Specified by:
getConcurrency
in interfacejava.sql.ResultSet
- Returns:
- CONCUR_READ_ONLY
-
getFetchDirection
public int getFetchDirection()
Returns ResultSet.FETCH_FORWARD.- Specified by:
getFetchDirection
in interfacejava.sql.ResultSet
- Returns:
- FETCH_FORWARD
-
getFetchSize
public int getFetchSize()
Returns 0.- Specified by:
getFetchSize
in interfacejava.sql.ResultSet
- Returns:
- 0
-
getRow
public int getRow()
Returns the row number (1, 2,...) or 0 for no row.- Specified by:
getRow
in interfacejava.sql.ResultSet
- Returns:
- 0
-
getType
public int getType()
Returns the result set type. This is ResultSet.TYPE_FORWARD_ONLY for auto-close result sets, and ResultSet.TYPE_SCROLL_INSENSITIVE for others.- Specified by:
getType
in interfacejava.sql.ResultSet
- Returns:
- TYPE_FORWARD_ONLY or TYPE_SCROLL_INSENSITIVE
-
close
public void close()
Closes the result set and releases the resources.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.sql.ResultSet
-
next
public boolean next() throws java.sql.SQLException
Moves the cursor to the next row of the result set.- Specified by:
next
in interfacejava.sql.ResultSet
- Returns:
- true if successful, false if there are no more rows
- Throws:
java.sql.SQLException
-
beforeFirst
public void beforeFirst() throws java.sql.SQLException
Moves the current position to before the first row, that means the result set is reset.- Specified by:
beforeFirst
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
wasNull
public boolean wasNull()
Returns whether the last column accessed was null.- Specified by:
wasNull
in interfacejava.sql.ResultSet
- Returns:
- true if the last column accessed was null
-
findColumn
public int findColumn(java.lang.String columnLabel) throws java.sql.SQLException
Searches for a specific column in the result set. A case-insensitive search is made.- Specified by:
findColumn
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the column index (1,2,...)
- Throws:
java.sql.SQLException
- if the column is not found or if the result set is closed
-
getMetaData
public java.sql.ResultSetMetaData getMetaData()
Returns a reference to itself.- Specified by:
getMetaData
in interfacejava.sql.ResultSet
- Returns:
- this
-
getWarnings
public java.sql.SQLWarning getWarnings()
Returns null.- Specified by:
getWarnings
in interfacejava.sql.ResultSet
- Returns:
- null
-
getStatement
public java.sql.Statement getStatement()
Returns null.- Specified by:
getStatement
in interfacejava.sql.ResultSet
- Returns:
- null
-
clearWarnings
public void clearWarnings()
INTERNAL- Specified by:
clearWarnings
in interfacejava.sql.ResultSet
-
getArray
public java.sql.Array getArray(int columnIndex) throws java.sql.SQLException
Returns the value as a java.sql.Array.- Specified by:
getArray
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
getArray
public java.sql.Array getArray(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as a java.sql.Array.- Specified by:
getArray
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getAsciiStream
public java.io.InputStream getAsciiStream(int columnIndex) throws java.sql.SQLException
INTERNAL- Specified by:
getAsciiStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getAsciiStream
public java.io.InputStream getAsciiStream(java.lang.String columnLabel) throws java.sql.SQLException
INTERNAL- Specified by:
getAsciiStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(int columnIndex) throws java.sql.SQLException
Returns the value as a java.math.BigDecimal.- Specified by:
getBigDecimal
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as a java.math.BigDecimal.- Specified by:
getBigDecimal
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getBigDecimal
@Deprecated public java.math.BigDecimal getBigDecimal(int columnIndex, int scale) throws java.sql.SQLException
Deprecated.INTERNAL- Specified by:
getBigDecimal
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getBigDecimal
@Deprecated public java.math.BigDecimal getBigDecimal(java.lang.String columnLabel, int scale) throws java.sql.SQLException
Deprecated.INTERNAL- Specified by:
getBigDecimal
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getBinaryStream
public java.io.InputStream getBinaryStream(int columnIndex) throws java.sql.SQLException
Returns the value as a java.io.InputStream.- Specified by:
getBinaryStream
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
asInputStream
private static java.io.InputStream asInputStream(java.lang.Object o) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getBinaryStream
public java.io.InputStream getBinaryStream(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as a java.io.InputStream.- Specified by:
getBinaryStream
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getBlob
public java.sql.Blob getBlob(int columnIndex) throws java.sql.SQLException
Returns the value as a java.sql.Blob. This is only supported if the result set was created using a Blob object.- Specified by:
getBlob
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
getBlob
public java.sql.Blob getBlob(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as a java.sql.Blob. This is only supported if the result set was created using a Blob object.- Specified by:
getBlob
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getBoolean
public boolean getBoolean(int columnIndex) throws java.sql.SQLException
Returns the value as a boolean.- Specified by:
getBoolean
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
getBoolean
public boolean getBoolean(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as a boolean.- Specified by:
getBoolean
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getByte
public byte getByte(int columnIndex) throws java.sql.SQLException
Returns the value as a byte.- Specified by:
getByte
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
getByte
public byte getByte(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as a byte.- Specified by:
getByte
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getBytes
public byte[] getBytes(int columnIndex) throws java.sql.SQLException
Returns the value as a byte array.- Specified by:
getBytes
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
getBytes
public byte[] getBytes(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as a byte array.- Specified by:
getBytes
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getCharacterStream
public java.io.Reader getCharacterStream(int columnIndex) throws java.sql.SQLException
Returns the value as a java.io.Reader. This is only supported if the result set was created using a Clob or Reader object.- Specified by:
getCharacterStream
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
asReader
private static java.io.Reader asReader(java.lang.Object o) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getCharacterStream
public java.io.Reader getCharacterStream(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as a java.io.Reader. This is only supported if the result set was created using a Clob or Reader object.- Specified by:
getCharacterStream
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getClob
public java.sql.Clob getClob(int columnIndex) throws java.sql.SQLException
Returns the value as a java.sql.Clob. This is only supported if the result set was created using a Clob object.- Specified by:
getClob
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
getClob
public java.sql.Clob getClob(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as a java.sql.Clob. This is only supported if the result set was created using a Clob object.- Specified by:
getClob
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getDate
public java.sql.Date getDate(int columnIndex) throws java.sql.SQLException
Returns the value as an java.sql.Date.- Specified by:
getDate
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
getDate
public java.sql.Date getDate(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as a java.sql.Date.- Specified by:
getDate
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getDate
public java.sql.Date getDate(int columnIndex, java.util.Calendar cal) throws java.sql.SQLException
INTERNAL- Specified by:
getDate
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getDate
public java.sql.Date getDate(java.lang.String columnLabel, java.util.Calendar cal) throws java.sql.SQLException
INTERNAL- Specified by:
getDate
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getDouble
public double getDouble(int columnIndex) throws java.sql.SQLException
Returns the value as an double.- Specified by:
getDouble
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
getDouble
public double getDouble(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as a double.- Specified by:
getDouble
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getFloat
public float getFloat(int columnIndex) throws java.sql.SQLException
Returns the value as a float.- Specified by:
getFloat
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
getFloat
public float getFloat(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as a float.- Specified by:
getFloat
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getInt
public int getInt(int columnIndex) throws java.sql.SQLException
Returns the value as an int.- Specified by:
getInt
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
getInt
public int getInt(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as an int.- Specified by:
getInt
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getLong
public long getLong(int columnIndex) throws java.sql.SQLException
Returns the value as a long.- Specified by:
getLong
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
getLong
public long getLong(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as a long.- Specified by:
getLong
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getNCharacterStream
public java.io.Reader getNCharacterStream(int columnIndex) throws java.sql.SQLException
INTERNAL- Specified by:
getNCharacterStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getNCharacterStream
public java.io.Reader getNCharacterStream(java.lang.String columnLabel) throws java.sql.SQLException
INTERNAL- Specified by:
getNCharacterStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getNClob
public java.sql.NClob getNClob(int columnIndex) throws java.sql.SQLException
INTERNAL- Specified by:
getNClob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getNClob
public java.sql.NClob getNClob(java.lang.String columnLabel) throws java.sql.SQLException
INTERNAL- Specified by:
getNClob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getNString
public java.lang.String getNString(int columnIndex) throws java.sql.SQLException
INTERNAL- Specified by:
getNString
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getNString
public java.lang.String getNString(java.lang.String columnLabel) throws java.sql.SQLException
INTERNAL- Specified by:
getNString
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getObject
public java.lang.Object getObject(int columnIndex) throws java.sql.SQLException
Returns the value as an Object.- Specified by:
getObject
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
getObject
public java.lang.Object getObject(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as an Object.- Specified by:
getObject
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getObject
public <T> T getObject(int columnIndex, java.lang.Class<T> type) throws java.sql.SQLException
Returns the value as an Object of the specified type.- Specified by:
getObject
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- the column index (1, 2, ...)type
- the class of the returned value- Returns:
- the value
- Throws:
java.sql.SQLException
-
getObject
public <T> T getObject(java.lang.String columnName, java.lang.Class<T> type) throws java.sql.SQLException
Returns the value as an Object of the specified type.- Specified by:
getObject
in interfacejava.sql.ResultSet
- Parameters:
columnName
- the column nametype
- the class of the returned value- Returns:
- the value
- Throws:
java.sql.SQLException
-
getObject
public java.lang.Object getObject(int columnIndex, java.util.Map<java.lang.String,java.lang.Class<?>> map) throws java.sql.SQLException
INTERNAL- Specified by:
getObject
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getObject
public java.lang.Object getObject(java.lang.String columnLabel, java.util.Map<java.lang.String,java.lang.Class<?>> map) throws java.sql.SQLException
INTERNAL- Specified by:
getObject
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getRef
public java.sql.Ref getRef(int columnIndex) throws java.sql.SQLException
INTERNAL- Specified by:
getRef
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getRef
public java.sql.Ref getRef(java.lang.String columnLabel) throws java.sql.SQLException
INTERNAL- Specified by:
getRef
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getRowId
public java.sql.RowId getRowId(int columnIndex) throws java.sql.SQLException
INTERNAL- Specified by:
getRowId
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getRowId
public java.sql.RowId getRowId(java.lang.String columnLabel) throws java.sql.SQLException
INTERNAL- Specified by:
getRowId
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getShort
public short getShort(int columnIndex) throws java.sql.SQLException
Returns the value as a short.- Specified by:
getShort
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
getShort
public short getShort(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as a short.- Specified by:
getShort
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getSQLXML
public java.sql.SQLXML getSQLXML(int columnIndex) throws java.sql.SQLException
INTERNAL- Specified by:
getSQLXML
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getSQLXML
public java.sql.SQLXML getSQLXML(java.lang.String columnLabel) throws java.sql.SQLException
INTERNAL- Specified by:
getSQLXML
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getString
public java.lang.String getString(int columnIndex) throws java.sql.SQLException
Returns the value as a String.- Specified by:
getString
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
getString
public java.lang.String getString(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as a String.- Specified by:
getString
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getTime
public java.sql.Time getTime(int columnIndex) throws java.sql.SQLException
Returns the value as an java.sql.Time.- Specified by:
getTime
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
getTime
public java.sql.Time getTime(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as a java.sql.Time.- Specified by:
getTime
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getTime
public java.sql.Time getTime(int columnIndex, java.util.Calendar cal) throws java.sql.SQLException
INTERNAL- Specified by:
getTime
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getTime
public java.sql.Time getTime(java.lang.String columnLabel, java.util.Calendar cal) throws java.sql.SQLException
INTERNAL- Specified by:
getTime
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getTimestamp
public java.sql.Timestamp getTimestamp(int columnIndex) throws java.sql.SQLException
Returns the value as an java.sql.Timestamp.- Specified by:
getTimestamp
in interfacejava.sql.ResultSet
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the value
- Throws:
java.sql.SQLException
-
getTimestamp
public java.sql.Timestamp getTimestamp(java.lang.String columnLabel) throws java.sql.SQLException
Returns the value as a java.sql.Timestamp.- Specified by:
getTimestamp
in interfacejava.sql.ResultSet
- Parameters:
columnLabel
- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getTimestamp
public java.sql.Timestamp getTimestamp(int columnIndex, java.util.Calendar cal) throws java.sql.SQLException
INTERNAL- Specified by:
getTimestamp
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getTimestamp
public java.sql.Timestamp getTimestamp(java.lang.String columnLabel, java.util.Calendar cal) throws java.sql.SQLException
INTERNAL- Specified by:
getTimestamp
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getUnicodeStream
@Deprecated public java.io.InputStream getUnicodeStream(int columnIndex) throws java.sql.SQLException
Deprecated.INTERNAL- Specified by:
getUnicodeStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getUnicodeStream
@Deprecated public java.io.InputStream getUnicodeStream(java.lang.String columnLabel) throws java.sql.SQLException
Deprecated.INTERNAL- Specified by:
getUnicodeStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getURL
public java.net.URL getURL(int columnIndex) throws java.sql.SQLException
INTERNAL- Specified by:
getURL
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getURL
public java.net.URL getURL(java.lang.String columnLabel) throws java.sql.SQLException
INTERNAL- Specified by:
getURL
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateArray
public void updateArray(int columnIndex, java.sql.Array x) throws java.sql.SQLException
INTERNAL- Specified by:
updateArray
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateArray
public void updateArray(java.lang.String columnLabel, java.sql.Array x) throws java.sql.SQLException
INTERNAL- Specified by:
updateArray
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException
INTERNAL- Specified by:
updateAsciiStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException
INTERNAL- Specified by:
updateAsciiStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, java.io.InputStream x, int length) throws java.sql.SQLException
INTERNAL- Specified by:
updateAsciiStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, int length) throws java.sql.SQLException
INTERNAL- Specified by:
updateAsciiStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException
INTERNAL- Specified by:
updateAsciiStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLException
INTERNAL- Specified by:
updateAsciiStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBigDecimal
public void updateBigDecimal(int columnIndex, java.math.BigDecimal x) throws java.sql.SQLException
INTERNAL- Specified by:
updateBigDecimal
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBigDecimal
public void updateBigDecimal(java.lang.String columnLabel, java.math.BigDecimal x) throws java.sql.SQLException
INTERNAL- Specified by:
updateBigDecimal
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException
INTERNAL- Specified by:
updateBinaryStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException
INTERNAL- Specified by:
updateBinaryStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, java.io.InputStream x, int length) throws java.sql.SQLException
INTERNAL- Specified by:
updateBinaryStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, int length) throws java.sql.SQLException
INTERNAL- Specified by:
updateBinaryStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException
INTERNAL- Specified by:
updateBinaryStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLException
INTERNAL- Specified by:
updateBinaryStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(int columnIndex, java.sql.Blob x) throws java.sql.SQLException
INTERNAL- Specified by:
updateBlob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(java.lang.String columnLabel, java.sql.Blob x) throws java.sql.SQLException
INTERNAL- Specified by:
updateBlob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(int columnIndex, java.io.InputStream x) throws java.sql.SQLException
INTERNAL- Specified by:
updateBlob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException
INTERNAL- Specified by:
updateBlob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException
INTERNAL- Specified by:
updateBlob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLException
INTERNAL- Specified by:
updateBlob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBoolean
public void updateBoolean(int columnIndex, boolean x) throws java.sql.SQLException
INTERNAL- Specified by:
updateBoolean
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBoolean
public void updateBoolean(java.lang.String columnLabel, boolean x) throws java.sql.SQLException
INTERNAL- Specified by:
updateBoolean
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateByte
public void updateByte(int columnIndex, byte x) throws java.sql.SQLException
INTERNAL- Specified by:
updateByte
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateByte
public void updateByte(java.lang.String columnLabel, byte x) throws java.sql.SQLException
INTERNAL- Specified by:
updateByte
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBytes
public void updateBytes(int columnIndex, byte[] x) throws java.sql.SQLException
INTERNAL- Specified by:
updateBytes
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateBytes
public void updateBytes(java.lang.String columnLabel, byte[] x) throws java.sql.SQLException
INTERNAL- Specified by:
updateBytes
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException
INTERNAL- Specified by:
updateCharacterStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader x) throws java.sql.SQLException
INTERNAL- Specified by:
updateCharacterStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, java.io.Reader x, int length) throws java.sql.SQLException
INTERNAL- Specified by:
updateCharacterStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader x, int length) throws java.sql.SQLException
INTERNAL- Specified by:
updateCharacterStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException
INTERNAL- Specified by:
updateCharacterStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader x, long length) throws java.sql.SQLException
INTERNAL- Specified by:
updateCharacterStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(int columnIndex, java.sql.Clob x) throws java.sql.SQLException
INTERNAL- Specified by:
updateClob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(java.lang.String columnLabel, java.sql.Clob x) throws java.sql.SQLException
INTERNAL- Specified by:
updateClob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(int columnIndex, java.io.Reader x) throws java.sql.SQLException
INTERNAL- Specified by:
updateClob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(java.lang.String columnLabel, java.io.Reader x) throws java.sql.SQLException
INTERNAL- Specified by:
updateClob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException
INTERNAL- Specified by:
updateClob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(java.lang.String columnLabel, java.io.Reader x, long length) throws java.sql.SQLException
INTERNAL- Specified by:
updateClob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateDate
public void updateDate(int columnIndex, java.sql.Date x) throws java.sql.SQLException
INTERNAL- Specified by:
updateDate
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateDate
public void updateDate(java.lang.String columnLabel, java.sql.Date x) throws java.sql.SQLException
INTERNAL- Specified by:
updateDate
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateDouble
public void updateDouble(int columnIndex, double x) throws java.sql.SQLException
INTERNAL- Specified by:
updateDouble
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateDouble
public void updateDouble(java.lang.String columnLabel, double x) throws java.sql.SQLException
INTERNAL- Specified by:
updateDouble
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateFloat
public void updateFloat(int columnIndex, float x) throws java.sql.SQLException
INTERNAL- Specified by:
updateFloat
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateFloat
public void updateFloat(java.lang.String columnLabel, float x) throws java.sql.SQLException
INTERNAL- Specified by:
updateFloat
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateInt
public void updateInt(int columnIndex, int x) throws java.sql.SQLException
INTERNAL- Specified by:
updateInt
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateInt
public void updateInt(java.lang.String columnLabel, int x) throws java.sql.SQLException
INTERNAL- Specified by:
updateInt
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateLong
public void updateLong(int columnIndex, long x) throws java.sql.SQLException
INTERNAL- Specified by:
updateLong
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateLong
public void updateLong(java.lang.String columnLabel, long x) throws java.sql.SQLException
INTERNAL- Specified by:
updateLong
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException
INTERNAL- Specified by:
updateNCharacterStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader x) throws java.sql.SQLException
INTERNAL- Specified by:
updateNCharacterStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException
INTERNAL- Specified by:
updateNCharacterStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader x, long length) throws java.sql.SQLException
INTERNAL- Specified by:
updateNCharacterStream
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(int columnIndex, java.sql.NClob x) throws java.sql.SQLException
INTERNAL- Specified by:
updateNClob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(java.lang.String columnLabel, java.sql.NClob x) throws java.sql.SQLException
INTERNAL- Specified by:
updateNClob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(int columnIndex, java.io.Reader x) throws java.sql.SQLException
INTERNAL- Specified by:
updateNClob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(java.lang.String columnLabel, java.io.Reader x) throws java.sql.SQLException
INTERNAL- Specified by:
updateNClob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException
INTERNAL- Specified by:
updateNClob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(java.lang.String columnLabel, java.io.Reader x, long length) throws java.sql.SQLException
INTERNAL- Specified by:
updateNClob
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateNString
public void updateNString(int columnIndex, java.lang.String x) throws java.sql.SQLException
INTERNAL- Specified by:
updateNString
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateNString
public void updateNString(java.lang.String columnLabel, java.lang.String x) throws java.sql.SQLException
INTERNAL- Specified by:
updateNString
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateNull
public void updateNull(int columnIndex) throws java.sql.SQLException
INTERNAL- Specified by:
updateNull
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateNull
public void updateNull(java.lang.String columnLabel) throws java.sql.SQLException
INTERNAL- Specified by:
updateNull
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(int columnIndex, java.lang.Object x) throws java.sql.SQLException
INTERNAL- Specified by:
updateObject
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(java.lang.String columnLabel, java.lang.Object x) throws java.sql.SQLException
INTERNAL- Specified by:
updateObject
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(int columnIndex, java.lang.Object x, int scale) throws java.sql.SQLException
INTERNAL- Specified by:
updateObject
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(java.lang.String columnLabel, java.lang.Object x, int scale) throws java.sql.SQLException
INTERNAL- Specified by:
updateObject
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateRef
public void updateRef(int columnIndex, java.sql.Ref x) throws java.sql.SQLException
INTERNAL- Specified by:
updateRef
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateRef
public void updateRef(java.lang.String columnLabel, java.sql.Ref x) throws java.sql.SQLException
INTERNAL- Specified by:
updateRef
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateRowId
public void updateRowId(int columnIndex, java.sql.RowId x) throws java.sql.SQLException
INTERNAL- Specified by:
updateRowId
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateRowId
public void updateRowId(java.lang.String columnLabel, java.sql.RowId x) throws java.sql.SQLException
INTERNAL- Specified by:
updateRowId
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateShort
public void updateShort(int columnIndex, short x) throws java.sql.SQLException
INTERNAL- Specified by:
updateShort
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateShort
public void updateShort(java.lang.String columnLabel, short x) throws java.sql.SQLException
INTERNAL- Specified by:
updateShort
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateSQLXML
public void updateSQLXML(int columnIndex, java.sql.SQLXML x) throws java.sql.SQLException
INTERNAL- Specified by:
updateSQLXML
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateSQLXML
public void updateSQLXML(java.lang.String columnLabel, java.sql.SQLXML x) throws java.sql.SQLException
INTERNAL- Specified by:
updateSQLXML
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateString
public void updateString(int columnIndex, java.lang.String x) throws java.sql.SQLException
INTERNAL- Specified by:
updateString
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateString
public void updateString(java.lang.String columnLabel, java.lang.String x) throws java.sql.SQLException
INTERNAL- Specified by:
updateString
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateTime
public void updateTime(int columnIndex, java.sql.Time x) throws java.sql.SQLException
INTERNAL- Specified by:
updateTime
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateTime
public void updateTime(java.lang.String columnLabel, java.sql.Time x) throws java.sql.SQLException
INTERNAL- Specified by:
updateTime
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateTimestamp
public void updateTimestamp(int columnIndex, java.sql.Timestamp x) throws java.sql.SQLException
INTERNAL- Specified by:
updateTimestamp
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateTimestamp
public void updateTimestamp(java.lang.String columnLabel, java.sql.Timestamp x) throws java.sql.SQLException
INTERNAL- Specified by:
updateTimestamp
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getColumnCount
public int getColumnCount()
Returns the column count.- Specified by:
getColumnCount
in interfacejava.sql.ResultSetMetaData
- Returns:
- the column count
-
getColumnDisplaySize
public int getColumnDisplaySize(int columnIndex)
Returns 15.- Specified by:
getColumnDisplaySize
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- 15
-
getColumnType
public int getColumnType(int columnIndex) throws java.sql.SQLException
Returns the SQL type.- Specified by:
getColumnType
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the SQL type
- Throws:
java.sql.SQLException
-
getPrecision
public int getPrecision(int columnIndex) throws java.sql.SQLException
Returns the precision.- Specified by:
getPrecision
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the precision
- Throws:
java.sql.SQLException
-
getScale
public int getScale(int columnIndex) throws java.sql.SQLException
Returns the scale.- Specified by:
getScale
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the scale
- Throws:
java.sql.SQLException
-
isNullable
public int isNullable(int columnIndex)
Returns ResultSetMetaData.columnNullableUnknown.- Specified by:
isNullable
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- columnNullableUnknown
-
isAutoIncrement
public boolean isAutoIncrement(int columnIndex)
Returns false.- Specified by:
isAutoIncrement
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- false
-
isCaseSensitive
public boolean isCaseSensitive(int columnIndex)
Returns true.- Specified by:
isCaseSensitive
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- true
-
isCurrency
public boolean isCurrency(int columnIndex)
Returns false.- Specified by:
isCurrency
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- false
-
isDefinitelyWritable
public boolean isDefinitelyWritable(int columnIndex)
Returns false.- Specified by:
isDefinitelyWritable
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- false
-
isReadOnly
public boolean isReadOnly(int columnIndex)
Returns true.- Specified by:
isReadOnly
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- true
-
isSearchable
public boolean isSearchable(int columnIndex)
Returns true.- Specified by:
isSearchable
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- true
-
isSigned
public boolean isSigned(int columnIndex)
Returns true.- Specified by:
isSigned
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- true
-
isWritable
public boolean isWritable(int columnIndex)
Returns false.- Specified by:
isWritable
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- false
-
getCatalogName
public java.lang.String getCatalogName(int columnIndex)
Returns empty string.- Specified by:
getCatalogName
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- empty string
-
getColumnClassName
public java.lang.String getColumnClassName(int columnIndex) throws java.sql.SQLException
Returns the Java class name if this column.- Specified by:
getColumnClassName
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the class name
- Throws:
java.sql.SQLException
-
getColumnLabel
public java.lang.String getColumnLabel(int columnIndex) throws java.sql.SQLException
Returns the column label.- Specified by:
getColumnLabel
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the column label
- Throws:
java.sql.SQLException
-
getColumnName
public java.lang.String getColumnName(int columnIndex) throws java.sql.SQLException
Returns the column name.- Specified by:
getColumnName
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the column name
- Throws:
java.sql.SQLException
-
getColumnTypeName
public java.lang.String getColumnTypeName(int columnIndex) throws java.sql.SQLException
Returns the data type name of a column.- Specified by:
getColumnTypeName
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- the type name
- Throws:
java.sql.SQLException
-
getSchemaName
public java.lang.String getSchemaName(int columnIndex)
Returns empty string.- Specified by:
getSchemaName
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- empty string
-
getTableName
public java.lang.String getTableName(int columnIndex)
Returns empty string.- Specified by:
getTableName
in interfacejava.sql.ResultSetMetaData
- Parameters:
columnIndex
- (1,2,...)- Returns:
- empty string
-
afterLast
public void afterLast() throws java.sql.SQLException
INTERNAL- Specified by:
afterLast
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
cancelRowUpdates
public void cancelRowUpdates() throws java.sql.SQLException
INTERNAL- Specified by:
cancelRowUpdates
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
deleteRow
public void deleteRow() throws java.sql.SQLException
INTERNAL- Specified by:
deleteRow
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
insertRow
public void insertRow() throws java.sql.SQLException
INTERNAL- Specified by:
insertRow
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
moveToCurrentRow
public void moveToCurrentRow() throws java.sql.SQLException
INTERNAL- Specified by:
moveToCurrentRow
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
moveToInsertRow
public void moveToInsertRow() throws java.sql.SQLException
INTERNAL- Specified by:
moveToInsertRow
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
refreshRow
public void refreshRow() throws java.sql.SQLException
INTERNAL- Specified by:
refreshRow
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
updateRow
public void updateRow() throws java.sql.SQLException
INTERNAL- Specified by:
updateRow
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
first
public boolean first() throws java.sql.SQLException
INTERNAL- Specified by:
first
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
isAfterLast
public boolean isAfterLast() throws java.sql.SQLException
INTERNAL- Specified by:
isAfterLast
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
isBeforeFirst
public boolean isBeforeFirst() throws java.sql.SQLException
INTERNAL- Specified by:
isBeforeFirst
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
isFirst
public boolean isFirst() throws java.sql.SQLException
INTERNAL- Specified by:
isFirst
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
isLast
public boolean isLast() throws java.sql.SQLException
INTERNAL- Specified by:
isLast
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
last
public boolean last() throws java.sql.SQLException
INTERNAL- Specified by:
last
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
previous
public boolean previous() throws java.sql.SQLException
INTERNAL- Specified by:
previous
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
rowDeleted
public boolean rowDeleted() throws java.sql.SQLException
INTERNAL- Specified by:
rowDeleted
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
rowInserted
public boolean rowInserted() throws java.sql.SQLException
INTERNAL- Specified by:
rowInserted
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
rowUpdated
public boolean rowUpdated() throws java.sql.SQLException
INTERNAL- Specified by:
rowUpdated
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
setFetchDirection
public void setFetchDirection(int direction) throws java.sql.SQLException
INTERNAL- Specified by:
setFetchDirection
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
setFetchSize
public void setFetchSize(int rows) throws java.sql.SQLException
INTERNAL- Specified by:
setFetchSize
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
absolute
public boolean absolute(int row) throws java.sql.SQLException
INTERNAL- Specified by:
absolute
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
relative
public boolean relative(int offset) throws java.sql.SQLException
INTERNAL- Specified by:
relative
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
getCursorName
public java.lang.String getCursorName() throws java.sql.SQLException
INTERNAL- Specified by:
getCursorName
in interfacejava.sql.ResultSet
- Throws:
java.sql.SQLException
-
update
private void update(int columnIndex, java.lang.Object obj) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
update
private void update(java.lang.String columnLabel, java.lang.Object obj) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getUnsupportedException
static java.sql.SQLException getUnsupportedException()
INTERNAL
-
checkClosed
private void checkClosed() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
checkColumnIndex
private void checkColumnIndex(int columnIndex) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
get
private java.lang.Object get(int columnIndex) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getColumn
private SimpleColumnInfo getColumn(int i) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getHoldability
public int getHoldability()
Returns the current result set holdability.- Specified by:
getHoldability
in interfacejava.sql.ResultSet
- Returns:
- the holdability
-
isClosed
public boolean isClosed()
Returns whether this result set has been closed.- Specified by:
isClosed
in interfacejava.sql.ResultSet
- Returns:
- true if the result set was closed
-
unwrap
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException
Return an object of this class if possible.- Specified by:
unwrap
in interfacejava.sql.Wrapper
- Parameters:
iface
- the class- Returns:
- this
- Throws:
java.sql.SQLException
-
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException
Checks if unwrap can return an object of this class.- Specified by:
isWrapperFor
in interfacejava.sql.Wrapper
- Parameters:
iface
- the class- Returns:
- whether or not the interface is assignable from this class
- Throws:
java.sql.SQLException
-
setAutoClose
public void setAutoClose(boolean autoClose)
Set the auto-close behavior. If enabled (the default), the result set is closed after reading the last row.- Parameters:
autoClose
- the new value
-
getAutoClose
public boolean getAutoClose()
Get the current auto-close behavior.- Returns:
- the auto-close value
-
-