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.ResultSetMetaDataThis 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 classSimpleResultSet.SimpleArrayA simple array implementation, backed by an object array
-
Field Summary
Fields Modifier and Type Field Description private booleanautoCloseprivate java.util.ArrayList<SimpleColumnInfo>columnsprivate java.lang.Object[]currentRowprivate introwIdprivate java.util.ArrayList<java.lang.Object[]>rowsprivate SimpleRowSourcesourceprivate booleanwasNull
-
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 booleanabsolute(int row)INTERNALvoidaddColumn(java.lang.String name, int sqlType, int precision, int scale)Adds a column to the result set.voidaddColumn(java.lang.String name, int sqlType, java.lang.String sqlTypeName, int precision, int scale)Adds a column to the result set.voidaddRow(java.lang.Object... row)Add a new row to the result set.voidafterLast()INTERNALprivate static java.io.InputStreamasInputStream(java.lang.Object o)private static java.io.ReaderasReader(java.lang.Object o)voidbeforeFirst()Moves the current position to before the first row, that means the result set is reset.voidcancelRowUpdates()INTERNALprivate voidcheckClosed()private voidcheckColumnIndex(int columnIndex)voidclearWarnings()INTERNALvoidclose()Closes the result set and releases the resources.voiddeleteRow()INTERNALintfindColumn(java.lang.String columnLabel)Searches for a specific column in the result set.booleanfirst()INTERNALprivate java.lang.Objectget(int columnIndex)java.sql.ArraygetArray(int columnIndex)Returns the value as a java.sql.Array.java.sql.ArraygetArray(java.lang.String columnLabel)Returns the value as a java.sql.Array.java.io.InputStreamgetAsciiStream(int columnIndex)INTERNALjava.io.InputStreamgetAsciiStream(java.lang.String columnLabel)INTERNALbooleangetAutoClose()Get the current auto-close behavior.java.math.BigDecimalgetBigDecimal(int columnIndex)Returns the value as a java.math.BigDecimal.java.math.BigDecimalgetBigDecimal(int columnIndex, int scale)Deprecated.INTERNALjava.math.BigDecimalgetBigDecimal(java.lang.String columnLabel)Returns the value as a java.math.BigDecimal.java.math.BigDecimalgetBigDecimal(java.lang.String columnLabel, int scale)Deprecated.INTERNALjava.io.InputStreamgetBinaryStream(int columnIndex)Returns the value as a java.io.InputStream.java.io.InputStreamgetBinaryStream(java.lang.String columnLabel)Returns the value as a java.io.InputStream.java.sql.BlobgetBlob(int columnIndex)Returns the value as a java.sql.Blob.java.sql.BlobgetBlob(java.lang.String columnLabel)Returns the value as a java.sql.Blob.booleangetBoolean(int columnIndex)Returns the value as a boolean.booleangetBoolean(java.lang.String columnLabel)Returns the value as a boolean.bytegetByte(int columnIndex)Returns the value as a byte.bytegetByte(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.StringgetCatalogName(int columnIndex)Returns empty string.java.io.ReadergetCharacterStream(int columnIndex)Returns the value as a java.io.Reader.java.io.ReadergetCharacterStream(java.lang.String columnLabel)Returns the value as a java.io.Reader.java.sql.ClobgetClob(int columnIndex)Returns the value as a java.sql.Clob.java.sql.ClobgetClob(java.lang.String columnLabel)Returns the value as a java.sql.Clob.private SimpleColumnInfogetColumn(int i)java.lang.StringgetColumnClassName(int columnIndex)Returns the Java class name if this column.intgetColumnCount()Returns the column count.intgetColumnDisplaySize(int columnIndex)Returns 15.java.lang.StringgetColumnLabel(int columnIndex)Returns the column label.java.lang.StringgetColumnName(int columnIndex)Returns the column name.intgetColumnType(int columnIndex)Returns the SQL type.java.lang.StringgetColumnTypeName(int columnIndex)Returns the data type name of a column.intgetConcurrency()Returns ResultSet.CONCUR_READ_ONLY.java.lang.StringgetCursorName()INTERNALjava.sql.DategetDate(int columnIndex)Returns the value as an java.sql.Date.java.sql.DategetDate(int columnIndex, java.util.Calendar cal)INTERNALjava.sql.DategetDate(java.lang.String columnLabel)Returns the value as a java.sql.Date.java.sql.DategetDate(java.lang.String columnLabel, java.util.Calendar cal)INTERNALdoublegetDouble(int columnIndex)Returns the value as an double.doublegetDouble(java.lang.String columnLabel)Returns the value as a double.intgetFetchDirection()Returns ResultSet.FETCH_FORWARD.intgetFetchSize()Returns 0.floatgetFloat(int columnIndex)Returns the value as a float.floatgetFloat(java.lang.String columnLabel)Returns the value as a float.intgetHoldability()Returns the current result set holdability.intgetInt(int columnIndex)Returns the value as an int.intgetInt(java.lang.String columnLabel)Returns the value as an int.longgetLong(int columnIndex)Returns the value as a long.longgetLong(java.lang.String columnLabel)Returns the value as a long.java.sql.ResultSetMetaDatagetMetaData()Returns a reference to itself.java.io.ReadergetNCharacterStream(int columnIndex)INTERNALjava.io.ReadergetNCharacterStream(java.lang.String columnLabel)INTERNALjava.sql.NClobgetNClob(int columnIndex)INTERNALjava.sql.NClobgetNClob(java.lang.String columnLabel)INTERNALjava.lang.StringgetNString(int columnIndex)INTERNALjava.lang.StringgetNString(java.lang.String columnLabel)INTERNALjava.lang.ObjectgetObject(int columnIndex)Returns the value as an Object.<T> TgetObject(int columnIndex, java.lang.Class<T> type)Returns the value as an Object of the specified type.java.lang.ObjectgetObject(int columnIndex, java.util.Map<java.lang.String,java.lang.Class<?>> map)INTERNALjava.lang.ObjectgetObject(java.lang.String columnLabel)Returns the value as an Object.<T> TgetObject(java.lang.String columnName, java.lang.Class<T> type)Returns the value as an Object of the specified type.java.lang.ObjectgetObject(java.lang.String columnLabel, java.util.Map<java.lang.String,java.lang.Class<?>> map)INTERNALintgetPrecision(int columnIndex)Returns the precision.java.sql.RefgetRef(int columnIndex)INTERNALjava.sql.RefgetRef(java.lang.String columnLabel)INTERNALintgetRow()Returns the row number (1, 2,...) or 0 for no row.java.sql.RowIdgetRowId(int columnIndex)INTERNALjava.sql.RowIdgetRowId(java.lang.String columnLabel)INTERNALintgetScale(int columnIndex)Returns the scale.java.lang.StringgetSchemaName(int columnIndex)Returns empty string.shortgetShort(int columnIndex)Returns the value as a short.shortgetShort(java.lang.String columnLabel)Returns the value as a short.java.sql.SQLXMLgetSQLXML(int columnIndex)INTERNALjava.sql.SQLXMLgetSQLXML(java.lang.String columnLabel)INTERNALjava.sql.StatementgetStatement()Returns null.java.lang.StringgetString(int columnIndex)Returns the value as a String.java.lang.StringgetString(java.lang.String columnLabel)Returns the value as a String.java.lang.StringgetTableName(int columnIndex)Returns empty string.java.sql.TimegetTime(int columnIndex)Returns the value as an java.sql.Time.java.sql.TimegetTime(int columnIndex, java.util.Calendar cal)INTERNALjava.sql.TimegetTime(java.lang.String columnLabel)Returns the value as a java.sql.Time.java.sql.TimegetTime(java.lang.String columnLabel, java.util.Calendar cal)INTERNALjava.sql.TimestampgetTimestamp(int columnIndex)Returns the value as an java.sql.Timestamp.java.sql.TimestampgetTimestamp(int columnIndex, java.util.Calendar cal)INTERNALjava.sql.TimestampgetTimestamp(java.lang.String columnLabel)Returns the value as a java.sql.Timestamp.java.sql.TimestampgetTimestamp(java.lang.String columnLabel, java.util.Calendar cal)INTERNALintgetType()Returns the result set type.java.io.InputStreamgetUnicodeStream(int columnIndex)Deprecated.INTERNALjava.io.InputStreamgetUnicodeStream(java.lang.String columnLabel)Deprecated.INTERNAL(package private) static java.sql.SQLExceptiongetUnsupportedException()INTERNALjava.net.URLgetURL(int columnIndex)INTERNALjava.net.URLgetURL(java.lang.String columnLabel)INTERNALjava.sql.SQLWarninggetWarnings()Returns null.voidinsertRow()INTERNALbooleanisAfterLast()INTERNALbooleanisAutoIncrement(int columnIndex)Returns false.booleanisBeforeFirst()INTERNALbooleanisCaseSensitive(int columnIndex)Returns true.booleanisClosed()Returns whether this result set has been closed.booleanisCurrency(int columnIndex)Returns false.booleanisDefinitelyWritable(int columnIndex)Returns false.booleanisFirst()INTERNALbooleanisLast()INTERNALintisNullable(int columnIndex)Returns ResultSetMetaData.columnNullableUnknown.booleanisReadOnly(int columnIndex)Returns true.booleanisSearchable(int columnIndex)Returns true.booleanisSigned(int columnIndex)Returns true.booleanisWrapperFor(java.lang.Class<?> iface)Checks if unwrap can return an object of this class.booleanisWritable(int columnIndex)Returns false.booleanlast()INTERNALvoidmoveToCurrentRow()INTERNALvoidmoveToInsertRow()INTERNALbooleannext()Moves the cursor to the next row of the result set.booleanprevious()INTERNALvoidrefreshRow()INTERNALbooleanrelative(int offset)INTERNALbooleanrowDeleted()INTERNALbooleanrowInserted()INTERNALbooleanrowUpdated()INTERNALvoidsetAutoClose(boolean autoClose)Set the auto-close behavior.voidsetFetchDirection(int direction)INTERNALvoidsetFetchSize(int rows)INTERNAL<T> Tunwrap(java.lang.Class<T> iface)Return an object of this class if possible.private voidupdate(int columnIndex, java.lang.Object obj)private voidupdate(java.lang.String columnLabel, java.lang.Object obj)voidupdateArray(int columnIndex, java.sql.Array x)INTERNALvoidupdateArray(java.lang.String columnLabel, java.sql.Array x)INTERNALvoidupdateAsciiStream(int columnIndex, java.io.InputStream x)INTERNALvoidupdateAsciiStream(int columnIndex, java.io.InputStream x, int length)INTERNALvoidupdateAsciiStream(int columnIndex, java.io.InputStream x, long length)INTERNALvoidupdateAsciiStream(java.lang.String columnLabel, java.io.InputStream x)INTERNALvoidupdateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, int length)INTERNALvoidupdateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, long length)INTERNALvoidupdateBigDecimal(int columnIndex, java.math.BigDecimal x)INTERNALvoidupdateBigDecimal(java.lang.String columnLabel, java.math.BigDecimal x)INTERNALvoidupdateBinaryStream(int columnIndex, java.io.InputStream x)INTERNALvoidupdateBinaryStream(int columnIndex, java.io.InputStream x, int length)INTERNALvoidupdateBinaryStream(int columnIndex, java.io.InputStream x, long length)INTERNALvoidupdateBinaryStream(java.lang.String columnLabel, java.io.InputStream x)INTERNALvoidupdateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, int length)INTERNALvoidupdateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, long length)INTERNALvoidupdateBlob(int columnIndex, java.io.InputStream x)INTERNALvoidupdateBlob(int columnIndex, java.io.InputStream x, long length)INTERNALvoidupdateBlob(int columnIndex, java.sql.Blob x)INTERNALvoidupdateBlob(java.lang.String columnLabel, java.io.InputStream x)INTERNALvoidupdateBlob(java.lang.String columnLabel, java.io.InputStream x, long length)INTERNALvoidupdateBlob(java.lang.String columnLabel, java.sql.Blob x)INTERNALvoidupdateBoolean(int columnIndex, boolean x)INTERNALvoidupdateBoolean(java.lang.String columnLabel, boolean x)INTERNALvoidupdateByte(int columnIndex, byte x)INTERNALvoidupdateByte(java.lang.String columnLabel, byte x)INTERNALvoidupdateBytes(int columnIndex, byte[] x)INTERNALvoidupdateBytes(java.lang.String columnLabel, byte[] x)INTERNALvoidupdateCharacterStream(int columnIndex, java.io.Reader x)INTERNALvoidupdateCharacterStream(int columnIndex, java.io.Reader x, int length)INTERNALvoidupdateCharacterStream(int columnIndex, java.io.Reader x, long length)INTERNALvoidupdateCharacterStream(java.lang.String columnLabel, java.io.Reader x)INTERNALvoidupdateCharacterStream(java.lang.String columnLabel, java.io.Reader x, int length)INTERNALvoidupdateCharacterStream(java.lang.String columnLabel, java.io.Reader x, long length)INTERNALvoidupdateClob(int columnIndex, java.io.Reader x)INTERNALvoidupdateClob(int columnIndex, java.io.Reader x, long length)INTERNALvoidupdateClob(int columnIndex, java.sql.Clob x)INTERNALvoidupdateClob(java.lang.String columnLabel, java.io.Reader x)INTERNALvoidupdateClob(java.lang.String columnLabel, java.io.Reader x, long length)INTERNALvoidupdateClob(java.lang.String columnLabel, java.sql.Clob x)INTERNALvoidupdateDate(int columnIndex, java.sql.Date x)INTERNALvoidupdateDate(java.lang.String columnLabel, java.sql.Date x)INTERNALvoidupdateDouble(int columnIndex, double x)INTERNALvoidupdateDouble(java.lang.String columnLabel, double x)INTERNALvoidupdateFloat(int columnIndex, float x)INTERNALvoidupdateFloat(java.lang.String columnLabel, float x)INTERNALvoidupdateInt(int columnIndex, int x)INTERNALvoidupdateInt(java.lang.String columnLabel, int x)INTERNALvoidupdateLong(int columnIndex, long x)INTERNALvoidupdateLong(java.lang.String columnLabel, long x)INTERNALvoidupdateNCharacterStream(int columnIndex, java.io.Reader x)INTERNALvoidupdateNCharacterStream(int columnIndex, java.io.Reader x, long length)INTERNALvoidupdateNCharacterStream(java.lang.String columnLabel, java.io.Reader x)INTERNALvoidupdateNCharacterStream(java.lang.String columnLabel, java.io.Reader x, long length)INTERNALvoidupdateNClob(int columnIndex, java.io.Reader x)INTERNALvoidupdateNClob(int columnIndex, java.io.Reader x, long length)INTERNALvoidupdateNClob(int columnIndex, java.sql.NClob x)INTERNALvoidupdateNClob(java.lang.String columnLabel, java.io.Reader x)INTERNALvoidupdateNClob(java.lang.String columnLabel, java.io.Reader x, long length)INTERNALvoidupdateNClob(java.lang.String columnLabel, java.sql.NClob x)INTERNALvoidupdateNString(int columnIndex, java.lang.String x)INTERNALvoidupdateNString(java.lang.String columnLabel, java.lang.String x)INTERNALvoidupdateNull(int columnIndex)INTERNALvoidupdateNull(java.lang.String columnLabel)INTERNALvoidupdateObject(int columnIndex, java.lang.Object x)INTERNALvoidupdateObject(int columnIndex, java.lang.Object x, int scale)INTERNALvoidupdateObject(java.lang.String columnLabel, java.lang.Object x)INTERNALvoidupdateObject(java.lang.String columnLabel, java.lang.Object x, int scale)INTERNALvoidupdateRef(int columnIndex, java.sql.Ref x)INTERNALvoidupdateRef(java.lang.String columnLabel, java.sql.Ref x)INTERNALvoidupdateRow()INTERNALvoidupdateRowId(int columnIndex, java.sql.RowId x)INTERNALvoidupdateRowId(java.lang.String columnLabel, java.sql.RowId x)INTERNALvoidupdateShort(int columnIndex, short x)INTERNALvoidupdateShort(java.lang.String columnLabel, short x)INTERNALvoidupdateSQLXML(int columnIndex, java.sql.SQLXML x)INTERNALvoidupdateSQLXML(java.lang.String columnLabel, java.sql.SQLXML x)INTERNALvoidupdateString(int columnIndex, java.lang.String x)INTERNALvoidupdateString(java.lang.String columnLabel, java.lang.String x)INTERNALvoidupdateTime(int columnIndex, java.sql.Time x)INTERNALvoidupdateTime(java.lang.String columnLabel, java.sql.Time x)INTERNALvoidupdateTimestamp(int columnIndex, java.sql.Timestamp x)INTERNALvoidupdateTimestamp(java.lang.String columnLabel, java.sql.Timestamp x)INTERNALbooleanwasNull()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:
getConcurrencyin interfacejava.sql.ResultSet- Returns:
- CONCUR_READ_ONLY
-
getFetchDirection
public int getFetchDirection()
Returns ResultSet.FETCH_FORWARD.- Specified by:
getFetchDirectionin interfacejava.sql.ResultSet- Returns:
- FETCH_FORWARD
-
getFetchSize
public int getFetchSize()
Returns 0.- Specified by:
getFetchSizein interfacejava.sql.ResultSet- Returns:
- 0
-
getRow
public int getRow()
Returns the row number (1, 2,...) or 0 for no row.- Specified by:
getRowin 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:
getTypein 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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.sql.ResultSet
-
next
public boolean next() throws java.sql.SQLExceptionMoves the cursor to the next row of the result set.- Specified by:
nextin 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.SQLExceptionMoves the current position to before the first row, that means the result set is reset.- Specified by:
beforeFirstin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
wasNull
public boolean wasNull()
Returns whether the last column accessed was null.- Specified by:
wasNullin interfacejava.sql.ResultSet- Returns:
- true if the last column accessed was null
-
findColumn
public int findColumn(java.lang.String columnLabel) throws java.sql.SQLExceptionSearches for a specific column in the result set. A case-insensitive search is made.- Specified by:
findColumnin 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:
getMetaDatain interfacejava.sql.ResultSet- Returns:
- this
-
getWarnings
public java.sql.SQLWarning getWarnings()
Returns null.- Specified by:
getWarningsin interfacejava.sql.ResultSet- Returns:
- null
-
getStatement
public java.sql.Statement getStatement()
Returns null.- Specified by:
getStatementin interfacejava.sql.ResultSet- Returns:
- null
-
clearWarnings
public void clearWarnings()
INTERNAL- Specified by:
clearWarningsin interfacejava.sql.ResultSet
-
getArray
public java.sql.Array getArray(int columnIndex) throws java.sql.SQLExceptionReturns the value as a java.sql.Array.- Specified by:
getArrayin 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.SQLExceptionReturns the value as a java.sql.Array.- Specified by:
getArrayin 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.SQLExceptionINTERNAL- Specified by:
getAsciiStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getAsciiStream
public java.io.InputStream getAsciiStream(java.lang.String columnLabel) throws java.sql.SQLExceptionINTERNAL- Specified by:
getAsciiStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(int columnIndex) throws java.sql.SQLExceptionReturns the value as a java.math.BigDecimal.- Specified by:
getBigDecimalin 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.SQLExceptionReturns the value as a java.math.BigDecimal.- Specified by:
getBigDecimalin 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.SQLExceptionDeprecated.INTERNAL- Specified by:
getBigDecimalin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getBigDecimal
@Deprecated public java.math.BigDecimal getBigDecimal(java.lang.String columnLabel, int scale) throws java.sql.SQLExceptionDeprecated.INTERNAL- Specified by:
getBigDecimalin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getBinaryStream
public java.io.InputStream getBinaryStream(int columnIndex) throws java.sql.SQLExceptionReturns the value as a java.io.InputStream.- Specified by:
getBinaryStreamin 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.SQLExceptionReturns the value as a java.io.InputStream.- Specified by:
getBinaryStreamin 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.SQLExceptionReturns the value as a java.sql.Blob. This is only supported if the result set was created using a Blob object.- Specified by:
getBlobin 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.SQLExceptionReturns the value as a java.sql.Blob. This is only supported if the result set was created using a Blob object.- Specified by:
getBlobin interfacejava.sql.ResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getBoolean
public boolean getBoolean(int columnIndex) throws java.sql.SQLExceptionReturns the value as a boolean.- Specified by:
getBooleanin 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.SQLExceptionReturns the value as a boolean.- Specified by:
getBooleanin interfacejava.sql.ResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getByte
public byte getByte(int columnIndex) throws java.sql.SQLExceptionReturns the value as a byte.- Specified by:
getBytein 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.SQLExceptionReturns the value as a byte.- Specified by:
getBytein interfacejava.sql.ResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getBytes
public byte[] getBytes(int columnIndex) throws java.sql.SQLExceptionReturns the value as a byte array.- Specified by:
getBytesin 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.SQLExceptionReturns the value as a byte array.- Specified by:
getBytesin 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.SQLExceptionReturns 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:
getCharacterStreamin 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.SQLExceptionReturns 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:
getCharacterStreamin 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.SQLExceptionReturns the value as a java.sql.Clob. This is only supported if the result set was created using a Clob object.- Specified by:
getClobin 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.SQLExceptionReturns the value as a java.sql.Clob. This is only supported if the result set was created using a Clob object.- Specified by:
getClobin 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.SQLExceptionReturns the value as an java.sql.Date.- Specified by:
getDatein 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.SQLExceptionReturns the value as a java.sql.Date.- Specified by:
getDatein 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.SQLExceptionINTERNAL- Specified by:
getDatein interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getDate
public java.sql.Date getDate(java.lang.String columnLabel, java.util.Calendar cal) throws java.sql.SQLExceptionINTERNAL- Specified by:
getDatein interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getDouble
public double getDouble(int columnIndex) throws java.sql.SQLExceptionReturns the value as an double.- Specified by:
getDoublein 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.SQLExceptionReturns the value as a double.- Specified by:
getDoublein interfacejava.sql.ResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getFloat
public float getFloat(int columnIndex) throws java.sql.SQLExceptionReturns the value as a float.- Specified by:
getFloatin 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.SQLExceptionReturns the value as a float.- Specified by:
getFloatin interfacejava.sql.ResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getInt
public int getInt(int columnIndex) throws java.sql.SQLExceptionReturns the value as an int.- Specified by:
getIntin 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.SQLExceptionReturns the value as an int.- Specified by:
getIntin interfacejava.sql.ResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
java.sql.SQLException
-
getLong
public long getLong(int columnIndex) throws java.sql.SQLExceptionReturns the value as a long.- Specified by:
getLongin 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.SQLExceptionReturns the value as a long.- Specified by:
getLongin 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.SQLExceptionINTERNAL- Specified by:
getNCharacterStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getNCharacterStream
public java.io.Reader getNCharacterStream(java.lang.String columnLabel) throws java.sql.SQLExceptionINTERNAL- Specified by:
getNCharacterStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getNClob
public java.sql.NClob getNClob(int columnIndex) throws java.sql.SQLExceptionINTERNAL- Specified by:
getNClobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getNClob
public java.sql.NClob getNClob(java.lang.String columnLabel) throws java.sql.SQLExceptionINTERNAL- Specified by:
getNClobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getNString
public java.lang.String getNString(int columnIndex) throws java.sql.SQLExceptionINTERNAL- Specified by:
getNStringin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getNString
public java.lang.String getNString(java.lang.String columnLabel) throws java.sql.SQLExceptionINTERNAL- Specified by:
getNStringin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getObject
public java.lang.Object getObject(int columnIndex) throws java.sql.SQLExceptionReturns the value as an Object.- Specified by:
getObjectin 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.SQLExceptionReturns the value as an Object.- Specified by:
getObjectin 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.SQLExceptionReturns the value as an Object of the specified type.- Specified by:
getObjectin 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.SQLExceptionReturns the value as an Object of the specified type.- Specified by:
getObjectin 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.SQLExceptionINTERNAL- Specified by:
getObjectin 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.SQLExceptionINTERNAL- Specified by:
getObjectin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getRef
public java.sql.Ref getRef(int columnIndex) throws java.sql.SQLExceptionINTERNAL- Specified by:
getRefin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getRef
public java.sql.Ref getRef(java.lang.String columnLabel) throws java.sql.SQLExceptionINTERNAL- Specified by:
getRefin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getRowId
public java.sql.RowId getRowId(int columnIndex) throws java.sql.SQLExceptionINTERNAL- Specified by:
getRowIdin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getRowId
public java.sql.RowId getRowId(java.lang.String columnLabel) throws java.sql.SQLExceptionINTERNAL- Specified by:
getRowIdin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getShort
public short getShort(int columnIndex) throws java.sql.SQLExceptionReturns the value as a short.- Specified by:
getShortin 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.SQLExceptionReturns the value as a short.- Specified by:
getShortin 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.SQLExceptionINTERNAL- Specified by:
getSQLXMLin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getSQLXML
public java.sql.SQLXML getSQLXML(java.lang.String columnLabel) throws java.sql.SQLExceptionINTERNAL- Specified by:
getSQLXMLin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getString
public java.lang.String getString(int columnIndex) throws java.sql.SQLExceptionReturns the value as a String.- Specified by:
getStringin 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.SQLExceptionReturns the value as a String.- Specified by:
getStringin 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.SQLExceptionReturns the value as an java.sql.Time.- Specified by:
getTimein 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.SQLExceptionReturns the value as a java.sql.Time.- Specified by:
getTimein 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.SQLExceptionINTERNAL- Specified by:
getTimein interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getTime
public java.sql.Time getTime(java.lang.String columnLabel, java.util.Calendar cal) throws java.sql.SQLExceptionINTERNAL- Specified by:
getTimein interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getTimestamp
public java.sql.Timestamp getTimestamp(int columnIndex) throws java.sql.SQLExceptionReturns the value as an java.sql.Timestamp.- Specified by:
getTimestampin 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.SQLExceptionReturns the value as a java.sql.Timestamp.- Specified by:
getTimestampin 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.SQLExceptionINTERNAL- Specified by:
getTimestampin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getTimestamp
public java.sql.Timestamp getTimestamp(java.lang.String columnLabel, java.util.Calendar cal) throws java.sql.SQLExceptionINTERNAL- Specified by:
getTimestampin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getUnicodeStream
@Deprecated public java.io.InputStream getUnicodeStream(int columnIndex) throws java.sql.SQLExceptionDeprecated.INTERNAL- Specified by:
getUnicodeStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getUnicodeStream
@Deprecated public java.io.InputStream getUnicodeStream(java.lang.String columnLabel) throws java.sql.SQLExceptionDeprecated.INTERNAL- Specified by:
getUnicodeStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getURL
public java.net.URL getURL(int columnIndex) throws java.sql.SQLExceptionINTERNAL- Specified by:
getURLin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getURL
public java.net.URL getURL(java.lang.String columnLabel) throws java.sql.SQLExceptionINTERNAL- Specified by:
getURLin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateArray
public void updateArray(int columnIndex, java.sql.Array x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateArrayin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateArray
public void updateArray(java.lang.String columnLabel, java.sql.Array x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateArrayin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, java.io.InputStream x, int length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, int length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBigDecimal
public void updateBigDecimal(int columnIndex, java.math.BigDecimal x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBigDecimalin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBigDecimal
public void updateBigDecimal(java.lang.String columnLabel, java.math.BigDecimal x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBigDecimalin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, java.io.InputStream x, int length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, int length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(int columnIndex, java.sql.Blob x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBlobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(java.lang.String columnLabel, java.sql.Blob x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBlobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(int columnIndex, java.io.InputStream x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBlobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBlobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBlobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBlobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBoolean
public void updateBoolean(int columnIndex, boolean x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBooleanin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBoolean
public void updateBoolean(java.lang.String columnLabel, boolean x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBooleanin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateByte
public void updateByte(int columnIndex, byte x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBytein interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateByte
public void updateByte(java.lang.String columnLabel, byte x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBytein interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBytes
public void updateBytes(int columnIndex, byte[] x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBytesin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateBytes
public void updateBytes(java.lang.String columnLabel, byte[] x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateBytesin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, java.io.Reader x, int length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader x, int length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader x, long length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(int columnIndex, java.sql.Clob x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateClobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(java.lang.String columnLabel, java.sql.Clob x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateClobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(int columnIndex, java.io.Reader x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateClobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(java.lang.String columnLabel, java.io.Reader x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateClobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateClobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(java.lang.String columnLabel, java.io.Reader x, long length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateClobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateDate
public void updateDate(int columnIndex, java.sql.Date x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateDatein interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateDate
public void updateDate(java.lang.String columnLabel, java.sql.Date x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateDatein interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateDouble
public void updateDouble(int columnIndex, double x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateDoublein interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateDouble
public void updateDouble(java.lang.String columnLabel, double x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateDoublein interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateFloat
public void updateFloat(int columnIndex, float x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateFloatin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateFloat
public void updateFloat(java.lang.String columnLabel, float x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateFloatin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateInt
public void updateInt(int columnIndex, int x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateIntin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateInt
public void updateInt(java.lang.String columnLabel, int x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateIntin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateLong
public void updateLong(int columnIndex, long x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateLongin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateLong
public void updateLong(java.lang.String columnLabel, long x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateLongin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateNCharacterStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateNCharacterStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateNCharacterStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader x, long length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateNCharacterStreamin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(int columnIndex, java.sql.NClob x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateNClobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(java.lang.String columnLabel, java.sql.NClob x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateNClobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(int columnIndex, java.io.Reader x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateNClobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(java.lang.String columnLabel, java.io.Reader x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateNClobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateNClobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(java.lang.String columnLabel, java.io.Reader x, long length) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateNClobin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateNString
public void updateNString(int columnIndex, java.lang.String x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateNStringin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateNString
public void updateNString(java.lang.String columnLabel, java.lang.String x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateNStringin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateNull
public void updateNull(int columnIndex) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateNullin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateNull
public void updateNull(java.lang.String columnLabel) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateNullin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(int columnIndex, java.lang.Object x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateObjectin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(java.lang.String columnLabel, java.lang.Object x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateObjectin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(int columnIndex, java.lang.Object x, int scale) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateObjectin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(java.lang.String columnLabel, java.lang.Object x, int scale) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateObjectin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateRef
public void updateRef(int columnIndex, java.sql.Ref x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateRefin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateRef
public void updateRef(java.lang.String columnLabel, java.sql.Ref x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateRefin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateRowId
public void updateRowId(int columnIndex, java.sql.RowId x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateRowIdin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateRowId
public void updateRowId(java.lang.String columnLabel, java.sql.RowId x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateRowIdin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateShort
public void updateShort(int columnIndex, short x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateShortin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateShort
public void updateShort(java.lang.String columnLabel, short x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateShortin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateSQLXML
public void updateSQLXML(int columnIndex, java.sql.SQLXML x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateSQLXMLin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateSQLXML
public void updateSQLXML(java.lang.String columnLabel, java.sql.SQLXML x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateSQLXMLin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateString
public void updateString(int columnIndex, java.lang.String x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateStringin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateString
public void updateString(java.lang.String columnLabel, java.lang.String x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateStringin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateTime
public void updateTime(int columnIndex, java.sql.Time x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateTimein interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateTime
public void updateTime(java.lang.String columnLabel, java.sql.Time x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateTimein interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateTimestamp
public void updateTimestamp(int columnIndex, java.sql.Timestamp x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateTimestampin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateTimestamp
public void updateTimestamp(java.lang.String columnLabel, java.sql.Timestamp x) throws java.sql.SQLExceptionINTERNAL- Specified by:
updateTimestampin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getColumnCount
public int getColumnCount()
Returns the column count.- Specified by:
getColumnCountin interfacejava.sql.ResultSetMetaData- Returns:
- the column count
-
getColumnDisplaySize
public int getColumnDisplaySize(int columnIndex)
Returns 15.- Specified by:
getColumnDisplaySizein interfacejava.sql.ResultSetMetaData- Parameters:
columnIndex- (1,2,...)- Returns:
- 15
-
getColumnType
public int getColumnType(int columnIndex) throws java.sql.SQLExceptionReturns the SQL type.- Specified by:
getColumnTypein interfacejava.sql.ResultSetMetaData- Parameters:
columnIndex- (1,2,...)- Returns:
- the SQL type
- Throws:
java.sql.SQLException
-
getPrecision
public int getPrecision(int columnIndex) throws java.sql.SQLExceptionReturns the precision.- Specified by:
getPrecisionin interfacejava.sql.ResultSetMetaData- Parameters:
columnIndex- (1,2,...)- Returns:
- the precision
- Throws:
java.sql.SQLException
-
getScale
public int getScale(int columnIndex) throws java.sql.SQLExceptionReturns the scale.- Specified by:
getScalein 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:
isNullablein interfacejava.sql.ResultSetMetaData- Parameters:
columnIndex- (1,2,...)- Returns:
- columnNullableUnknown
-
isAutoIncrement
public boolean isAutoIncrement(int columnIndex)
Returns false.- Specified by:
isAutoIncrementin interfacejava.sql.ResultSetMetaData- Parameters:
columnIndex- (1,2,...)- Returns:
- false
-
isCaseSensitive
public boolean isCaseSensitive(int columnIndex)
Returns true.- Specified by:
isCaseSensitivein interfacejava.sql.ResultSetMetaData- Parameters:
columnIndex- (1,2,...)- Returns:
- true
-
isCurrency
public boolean isCurrency(int columnIndex)
Returns false.- Specified by:
isCurrencyin interfacejava.sql.ResultSetMetaData- Parameters:
columnIndex- (1,2,...)- Returns:
- false
-
isDefinitelyWritable
public boolean isDefinitelyWritable(int columnIndex)
Returns false.- Specified by:
isDefinitelyWritablein interfacejava.sql.ResultSetMetaData- Parameters:
columnIndex- (1,2,...)- Returns:
- false
-
isReadOnly
public boolean isReadOnly(int columnIndex)
Returns true.- Specified by:
isReadOnlyin interfacejava.sql.ResultSetMetaData- Parameters:
columnIndex- (1,2,...)- Returns:
- true
-
isSearchable
public boolean isSearchable(int columnIndex)
Returns true.- Specified by:
isSearchablein interfacejava.sql.ResultSetMetaData- Parameters:
columnIndex- (1,2,...)- Returns:
- true
-
isSigned
public boolean isSigned(int columnIndex)
Returns true.- Specified by:
isSignedin interfacejava.sql.ResultSetMetaData- Parameters:
columnIndex- (1,2,...)- Returns:
- true
-
isWritable
public boolean isWritable(int columnIndex)
Returns false.- Specified by:
isWritablein interfacejava.sql.ResultSetMetaData- Parameters:
columnIndex- (1,2,...)- Returns:
- false
-
getCatalogName
public java.lang.String getCatalogName(int columnIndex)
Returns empty string.- Specified by:
getCatalogNamein interfacejava.sql.ResultSetMetaData- Parameters:
columnIndex- (1,2,...)- Returns:
- empty string
-
getColumnClassName
public java.lang.String getColumnClassName(int columnIndex) throws java.sql.SQLExceptionReturns the Java class name if this column.- Specified by:
getColumnClassNamein 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.SQLExceptionReturns the column label.- Specified by:
getColumnLabelin 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.SQLExceptionReturns the column name.- Specified by:
getColumnNamein 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.SQLExceptionReturns the data type name of a column.- Specified by:
getColumnTypeNamein 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:
getSchemaNamein interfacejava.sql.ResultSetMetaData- Parameters:
columnIndex- (1,2,...)- Returns:
- empty string
-
getTableName
public java.lang.String getTableName(int columnIndex)
Returns empty string.- Specified by:
getTableNamein interfacejava.sql.ResultSetMetaData- Parameters:
columnIndex- (1,2,...)- Returns:
- empty string
-
afterLast
public void afterLast() throws java.sql.SQLExceptionINTERNAL- Specified by:
afterLastin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
cancelRowUpdates
public void cancelRowUpdates() throws java.sql.SQLExceptionINTERNAL- Specified by:
cancelRowUpdatesin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
deleteRow
public void deleteRow() throws java.sql.SQLExceptionINTERNAL- Specified by:
deleteRowin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
insertRow
public void insertRow() throws java.sql.SQLExceptionINTERNAL- Specified by:
insertRowin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
moveToCurrentRow
public void moveToCurrentRow() throws java.sql.SQLExceptionINTERNAL- Specified by:
moveToCurrentRowin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
moveToInsertRow
public void moveToInsertRow() throws java.sql.SQLExceptionINTERNAL- Specified by:
moveToInsertRowin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
refreshRow
public void refreshRow() throws java.sql.SQLExceptionINTERNAL- Specified by:
refreshRowin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
updateRow
public void updateRow() throws java.sql.SQLExceptionINTERNAL- Specified by:
updateRowin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
first
public boolean first() throws java.sql.SQLExceptionINTERNAL- Specified by:
firstin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
isAfterLast
public boolean isAfterLast() throws java.sql.SQLExceptionINTERNAL- Specified by:
isAfterLastin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
isBeforeFirst
public boolean isBeforeFirst() throws java.sql.SQLExceptionINTERNAL- Specified by:
isBeforeFirstin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
isFirst
public boolean isFirst() throws java.sql.SQLExceptionINTERNAL- Specified by:
isFirstin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
isLast
public boolean isLast() throws java.sql.SQLExceptionINTERNAL- Specified by:
isLastin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
last
public boolean last() throws java.sql.SQLExceptionINTERNAL- Specified by:
lastin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
previous
public boolean previous() throws java.sql.SQLExceptionINTERNAL- Specified by:
previousin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
rowDeleted
public boolean rowDeleted() throws java.sql.SQLExceptionINTERNAL- Specified by:
rowDeletedin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
rowInserted
public boolean rowInserted() throws java.sql.SQLExceptionINTERNAL- Specified by:
rowInsertedin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
rowUpdated
public boolean rowUpdated() throws java.sql.SQLExceptionINTERNAL- Specified by:
rowUpdatedin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
setFetchDirection
public void setFetchDirection(int direction) throws java.sql.SQLExceptionINTERNAL- Specified by:
setFetchDirectionin interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
setFetchSize
public void setFetchSize(int rows) throws java.sql.SQLExceptionINTERNAL- Specified by:
setFetchSizein interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
absolute
public boolean absolute(int row) throws java.sql.SQLExceptionINTERNAL- Specified by:
absolutein interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
relative
public boolean relative(int offset) throws java.sql.SQLExceptionINTERNAL- Specified by:
relativein interfacejava.sql.ResultSet- Throws:
java.sql.SQLException
-
getCursorName
public java.lang.String getCursorName() throws java.sql.SQLExceptionINTERNAL- Specified by:
getCursorNamein 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:
getHoldabilityin interfacejava.sql.ResultSet- Returns:
- the holdability
-
isClosed
public boolean isClosed()
Returns whether this result set has been closed.- Specified by:
isClosedin interfacejava.sql.ResultSet- Returns:
- true if the result set was closed
-
unwrap
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLExceptionReturn an object of this class if possible.- Specified by:
unwrapin interfacejava.sql.Wrapper- Parameters:
iface- the class- Returns:
- this
- Throws:
java.sql.SQLException
-
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLExceptionChecks if unwrap can return an object of this class.- Specified by:
isWrapperForin 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
-
-