public class SelectResultSet
extends java.lang.Object
implements java.sql.ResultSet
Modifier and Type | Field and Description |
---|---|
private boolean |
callableResult |
private int |
columnInformationLength |
private ColumnNameMap |
columnNameMap |
private ColumnInformation[] |
columnsInformation |
private byte[][] |
data |
private int |
dataFetchTime |
private int |
dataSize |
private int |
dataTypeMappingFlags |
private boolean |
eofDeprecated |
private int |
fetchSize |
private static ColumnInformation[] |
INSERT_ID_COLUMNS |
protected boolean |
isBinaryEncoded |
private boolean |
isClosed |
private boolean |
isEof |
private static java.util.regex.Pattern |
isIntegerRegex |
private boolean |
lastGetWasNull |
private int |
lastRowPointer |
private boolean |
lastValueNull |
private static Logger |
logger |
private static int |
MAX_ARRAY_SIZE |
protected Options |
options |
private Protocol |
protocol |
private PacketInputStream |
reader |
private int |
resultSetScrollType |
private boolean |
returnTableAlias |
private RowProtocol |
row |
private int |
rowPointer |
private MariaDbStatement |
statement |
private boolean |
streaming |
static java.time.format.DateTimeFormatter |
TEXT_LOCAL_DATE_TIME |
static java.time.format.DateTimeFormatter |
TEXT_OFFSET_DATE_TIME |
static java.time.format.DateTimeFormatter |
TEXT_ZONED_DATE_TIME |
protected java.util.TimeZone |
timeZone |
static int |
TINYINT1_IS_BIT |
static int |
YEAR_IS_DATE_TYPE |
Constructor and Description |
---|
SelectResultSet(ColumnInformation[] columnInformation,
java.util.List<byte[]> resultSet,
Protocol protocol,
int resultSetScrollType)
Create filled result-set.
|
SelectResultSet(ColumnInformation[] columnInformation,
Results results,
Protocol protocol,
PacketInputStream reader,
boolean callableResult,
boolean eofDeprecated)
Create Streaming resultSet.
|
Modifier and Type | Method and Description |
---|---|
boolean |
absolute(int row) |
private void |
addStreamingValue()
This permit to add next streaming values to existing resultSet.
|
void |
afterLast() |
void |
beforeFirst() |
private java.sql.Date |
binaryDate(ColumnInformation columnInfo,
java.util.Calendar cal) |
private java.sql.Time |
binaryTime(ColumnInformation columnInfo,
java.util.Calendar cal) |
private java.sql.Timestamp |
binaryTimestamp(ColumnInformation columnInfo,
java.util.Calendar userCalendar) |
void |
cancelRowUpdates()
{inheritDoc}.
|
private void |
checkClose() |
private void |
checkObjectRange(int position) |
void |
clearWarnings() |
void |
close()
Close resultSet.
|
static SelectResultSet |
createEmptyResultSet() |
static java.sql.ResultSet |
createGeneratedData(long[] data,
Protocol protocol,
boolean findColumnReturnsOne)
Create a result set from given data.
|
static java.sql.ResultSet |
createResultSet(java.lang.String[] columnNames,
ColumnType[] columnTypes,
java.lang.String[][] data,
Protocol protocol)
Create a result set from given data.
|
void |
deleteRow()
{inheritDoc}.
|
protected int |
extractNanos(java.lang.String timestring) |
private void |
fetchAllResults() |
void |
fetchRemaining()
When protocol has a current Streaming result (this) fetch all to permit another query is executing.
|
private void |
fetchRemainingLock() |
int |
findColumn(java.lang.String columnLabel)
{inheritDoc}.
|
boolean |
first() |
java.sql.Array |
getArray(int columnIndex)
{inheritDoc}.
|
java.sql.Array |
getArray(java.lang.String columnLabel)
{inheritDoc}.
|
java.io.InputStream |
getAsciiStream(int columnIndex)
{inheritDoc}.
|
java.io.InputStream |
getAsciiStream(java.lang.String columnLabel)
{inheritDoc}.
|
java.math.BigDecimal |
getBigDecimal(int columnIndex)
{inheritDoc}.
|
java.math.BigDecimal |
getBigDecimal(int columnIndex,
int scale)
{inheritDoc}.
|
java.math.BigDecimal |
getBigDecimal(java.lang.String columnLabel)
{inheritDoc}.
|
java.math.BigDecimal |
getBigDecimal(java.lang.String columnLabel,
int scale)
{inheritDoc}.
|
java.io.InputStream |
getBinaryStream(int columnIndex)
{inheritDoc}.
|
java.io.InputStream |
getBinaryStream(java.lang.String columnLabel)
{inheritDoc}.
|
java.sql.Blob |
getBlob(int columnIndex)
{inheritDoc}.
|
java.sql.Blob |
getBlob(java.lang.String columnLabel)
{inheritDoc}.
|
boolean |
getBoolean(int index)
{inheritDoc}.
|
boolean |
getBoolean(java.lang.String columnLabel)
{inheritDoc}.
|
byte |
getByte(int index)
{inheritDoc}.
|
byte |
getByte(java.lang.String columnLabel)
{inheritDoc}.
|
byte[] |
getBytes(int columnIndex)
{inheritDoc}.
|
byte[] |
getBytes(java.lang.String columnLabel)
{inheritDoc}.
|
java.io.Reader |
getCharacterStream(int columnIndex)
{inheritDoc}.
|
java.io.Reader |
getCharacterStream(java.lang.String columnLabel)
{inheritDoc}.
|
java.sql.Clob |
getClob(int columnIndex)
{inheritDoc}.
|
java.sql.Clob |
getClob(java.lang.String columnLabel)
{inheritDoc}.
|
int |
getConcurrency() |
java.lang.String |
getCursorName()
{inheritDoc}.
|
java.sql.Date |
getDate(int columnIndex)
{inheritDoc}.
|
java.sql.Date |
getDate(int columnIndex,
java.util.Calendar cal)
{inheritDoc}.
|
java.sql.Date |
getDate(java.lang.String columnLabel)
{inheritDoc}.
|
java.sql.Date |
getDate(java.lang.String columnLabel,
java.util.Calendar cal)
{inheritDoc}.
|
double |
getDouble(int columnIndex)
{inheritDoc}.
|
double |
getDouble(java.lang.String columnLabel)
{inheritDoc}.
|
int |
getFetchDirection() |
int |
getFetchSize() |
float |
getFloat(int columnIndex)
{inheritDoc}.
|
float |
getFloat(java.lang.String columnLabel)
{inheritDoc}.
|
int |
getHoldability()
{inheritDoc}.
|
int |
getInt(int columnIndex)
{inheritDoc}.
|
int |
getInt(java.lang.String columnLabel)
{inheritDoc}.
|
private java.math.BigDecimal |
getInternalBigDecimal(ColumnInformation columnInfo)
Get BigDecimal from rax data.
|
private java.math.BigInteger |
getInternalBigInteger(ColumnInformation columnInfo)
Get BigInteger from raw data.
|
private boolean |
getInternalBoolean(ColumnInformation columnInfo)
Get boolean value from raw data.
|
private byte |
getInternalByte(ColumnInformation columnInfo)
Get byte from raw data.
|
private java.sql.Date |
getInternalDate(ColumnInformation columnInfo,
java.util.Calendar cal)
Get date from raw data.
|
private double |
getInternalDouble(ColumnInformation columnInfo)
Get double value from raw data.
|
private float |
getInternalFloat(ColumnInformation columnInfo)
Get float from raw data.
|
private int |
getInternalInt(ColumnInformation columnInfo)
Get int from raw data.
|
private long |
getInternalLong(ColumnInformation columnInfo)
Get long from raw data.
|
private long |
getInternalMediumInt(ColumnInformation columnInfo) |
private java.lang.Object |
getInternalObject(ColumnInformation columnInfo,
int dataTypeMappingFlags)
Get object value.
|
private short |
getInternalShort(ColumnInformation columnInfo)
Get short from raw data.
|
private int |
getInternalSmallInt(ColumnInformation columnInfo) |
private java.lang.String |
getInternalString(ColumnInformation columnInfo) |
private java.lang.String |
getInternalString(ColumnInformation columnInfo,
java.util.Calendar cal) |
private java.sql.Time |
getInternalTime(ColumnInformation columnInfo,
java.util.Calendar cal)
Get time from raw data.
|
private java.sql.Timestamp |
getInternalTimestamp(ColumnInformation columnInfo,
java.util.Calendar userCalendar)
Get timeStamp from raw data.
|
private int |
getInternalTinyInt(ColumnInformation columnInfo) |
private java.time.LocalDate |
getLocalDate(ColumnInformation columnInfo)
Get LocalDateTime from raw data.
|
private java.time.LocalTime |
getLocalTime(ColumnInformation columnInfo)
Get LocalTime from raw data.
|
long |
getLong(int columnIndex)
{inheritDoc}.
|
long |
getLong(java.lang.String columnLabel)
{inheritDoc}.
|
java.sql.ResultSetMetaData |
getMetaData()
{inheritDoc}.
|
java.io.Reader |
getNCharacterStream(int columnIndex)
{inheritDoc}.
|
java.io.Reader |
getNCharacterStream(java.lang.String columnLabel)
{inheritDoc}.
|
java.sql.NClob |
getNClob(int columnIndex)
{inheritDoc}.
|
java.sql.NClob |
getNClob(java.lang.String columnLabel)
{inheritDoc}.
|
java.lang.String |
getNString(int columnIndex)
{inheritDoc}.
|
java.lang.String |
getNString(java.lang.String columnLabel)
{inheritDoc}.
|
java.lang.Object |
getObject(int columnIndex)
{inheritDoc}.
|
<T> T |
getObject(int columnIndex,
java.lang.Class<T> type)
{inheritDoc}.
|
java.lang.Object |
getObject(int columnIndex,
java.util.Map<java.lang.String,java.lang.Class<?>> map)
{inheritDoc}.
|
java.lang.Object |
getObject(java.lang.String columnLabel)
{inheritDoc}.
|
<T> T |
getObject(java.lang.String columnLabel,
java.lang.Class<T> type) |
java.lang.Object |
getObject(java.lang.String columnLabel,
java.util.Map<java.lang.String,java.lang.Class<?>> map)
{inheritDoc}.
|
private java.time.OffsetTime |
getOffsetTime(ColumnInformation columnInfo)
Get OffsetTime from raw data.
|
java.sql.Ref |
getRef(int columnIndex)
{inheritDoc}.
|
java.sql.Ref |
getRef(java.lang.String columnLabel)
{inheritDoc}.
|
int |
getRow() |
java.sql.RowId |
getRowId(int columnIndex)
{inheritDoc}.
|
java.sql.RowId |
getRowId(java.lang.String columnLabel)
{inheritDoc}.
|
short |
getShort(int index)
{inheritDoc}.
|
short |
getShort(java.lang.String columnLabel)
{inheritDoc}.
|
java.sql.SQLXML |
getSQLXML(int columnIndex)
{inheritDoc}.
|
java.sql.SQLXML |
getSQLXML(java.lang.String columnLabel)
{inheritDoc}.
|
MariaDbStatement |
getStatement() |
java.lang.String |
getString(int columnIndex)
{inheritDoc}.
|
java.lang.String |
getString(java.lang.String columnLabel)
{inheritDoc}.
|
java.sql.Time |
getTime(int columnIndex)
{inheritDoc}.
|
java.sql.Time |
getTime(int columnIndex,
java.util.Calendar cal)
{inheritDoc}.
|
java.sql.Time |
getTime(java.lang.String columnLabel)
{inheritDoc}.
|
java.sql.Time |
getTime(java.lang.String columnLabel,
java.util.Calendar cal)
{inheritDoc}.
|
java.sql.Timestamp |
getTimestamp(int columnIndex)
{inheritDoc}.
|
java.sql.Timestamp |
getTimestamp(int columnIndex,
java.util.Calendar cal)
{inheritDoc}.
|
java.sql.Timestamp |
getTimestamp(java.lang.String columnLabel)
{inheritDoc}.
|
java.sql.Timestamp |
getTimestamp(java.lang.String columnLabel,
java.util.Calendar cal)
{inheritDoc}.
|
private java.lang.String |
getTimeString(ColumnInformation columnInfo) |
int |
getType() |
java.io.InputStream |
getUnicodeStream(int columnIndex)
{inheritDoc}.
|
java.io.InputStream |
getUnicodeStream(java.lang.String columnLabel)
{inheritDoc}.
|
java.net.URL |
getURL(int columnIndex)
{inheritDoc}.
|
java.net.URL |
getURL(java.lang.String columnLabel)
{inheritDoc}.
|
java.sql.SQLWarning |
getWarnings() |
private java.time.ZonedDateTime |
getZonedDateTime(ColumnInformation columnInfo,
java.lang.Class clazz)
Get LocalDateTime from raw data.
|
private void |
growDataArray()
Grow data array.
|
void |
insertRow()
{inheritDoc}.
|
boolean |
isAfterLast() |
boolean |
isBeforeFirst() |
boolean |
isCallableResult() |
boolean |
isClosed() |
boolean |
isFirst() |
boolean |
isLast() |
boolean |
isWrapperFor(java.lang.Class<?> iface)
{inheritDoc}.
|
boolean |
last() |
void |
moveToCurrentRow()
{inheritDoc}.
|
void |
moveToInsertRow()
{inheritDoc}.
|
boolean |
next() |
private void |
nextStreamingValue()
This permit to replace current stream results by next ones.
|
private byte |
parseByte(ColumnInformation columnInfo) |
private int |
parseInt(ColumnInformation columnInfo) |
private long |
parseLong(ColumnInformation columnInfo) |
private short |
parseShort(ColumnInformation columnInfo) |
boolean |
previous() |
private void |
rangeCheck(java.lang.Object className,
long minValue,
long maxValue,
long value,
ColumnInformation columnInfo) |
boolean |
readNextValue()
Read next value.
|
void |
refreshRow()
{inheritDoc}.
|
boolean |
relative(int rows) |
boolean |
rowDeleted()
{inheritDoc}.
|
boolean |
rowInserted()
{inheritDoc}.
|
boolean |
rowUpdated()
{inheritDoc}.
|
void |
setFetchDirection(int direction) |
void |
setFetchSize(int fetchSize) |
void |
setReturnTableAlias(boolean returnTableAlias) |
void |
setStatement(MariaDbStatement statement) |
private int |
skipLengthEncodedValue(byte[] buf,
int pos) |
<T> T |
unwrap(java.lang.Class<T> iface)
{inheritDoc}.
|
void |
updateArray(int columnIndex,
java.sql.Array array)
{inheritDoc}.
|
void |
updateArray(java.lang.String columnLabel,
java.sql.Array array)
{inheritDoc}.
|
void |
updateAsciiStream(int columnIndex,
java.io.InputStream inputStream)
{inheritDoc}.
|
void |
updateAsciiStream(int columnIndex,
java.io.InputStream inputStream,
int length)
{inheritDoc}.
|
void |
updateAsciiStream(int columnIndex,
java.io.InputStream inputStream,
long length)
{inheritDoc}.
|
void |
updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream inputStream)
{inheritDoc}.
|
void |
updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream value,
int length)
{inheritDoc}.
|
void |
updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream inputStream,
long length)
{inheritDoc}.
|
void |
updateBigDecimal(int columnIndex,
java.math.BigDecimal value)
{inheritDoc}.
|
void |
updateBigDecimal(java.lang.String columnLabel,
java.math.BigDecimal value)
{inheritDoc}.
|
void |
updateBinaryStream(int columnIndex,
java.io.InputStream inputStream)
{inheritDoc}.
|
void |
updateBinaryStream(int columnIndex,
java.io.InputStream inputStream,
int length)
{inheritDoc}.
|
void |
updateBinaryStream(int columnIndex,
java.io.InputStream inputStream,
long length)
{inheritDoc}.
|
void |
updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream inputStream)
{inheritDoc}.
|
void |
updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream value,
int length)
{inheritDoc}.
|
void |
updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream inputStream,
long length)
{inheritDoc}.
|
void |
updateBlob(int columnIndex,
java.sql.Blob blob)
{inheritDoc}.
|
void |
updateBlob(int columnIndex,
java.io.InputStream inputStream)
{inheritDoc}.
|
void |
updateBlob(int columnIndex,
java.io.InputStream inputStream,
long length)
{inheritDoc}.
|
void |
updateBlob(java.lang.String columnLabel,
java.sql.Blob blob)
{inheritDoc}.
|
void |
updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream)
{inheritDoc}.
|
void |
updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream,
long length)
{inheritDoc}.
|
void |
updateBoolean(int columnIndex,
boolean bool)
{inheritDoc}.
|
void |
updateBoolean(java.lang.String columnLabel,
boolean value)
{inheritDoc}.
|
void |
updateByte(int columnIndex,
byte value)
{inheritDoc}.
|
void |
updateByte(java.lang.String columnLabel,
byte value)
{inheritDoc}.
|
void |
updateBytes(int columnIndex,
byte[] value)
{inheritDoc}.
|
void |
updateBytes(java.lang.String columnLabel,
byte[] value)
{inheritDoc}.
|
void |
updateCharacterStream(int columnIndex,
java.io.Reader value)
{inheritDoc}.
|
void |
updateCharacterStream(int columnIndex,
java.io.Reader value,
int length)
{inheritDoc}.
|
void |
updateCharacterStream(int columnIndex,
java.io.Reader value,
long length)
{inheritDoc}.
|
void |
updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader)
{inheritDoc}.
|
void |
updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
int length)
{inheritDoc}.
|
void |
updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length)
{inheritDoc}.
|
void |
updateClob(int columnIndex,
java.sql.Clob clob)
{inheritDoc}.
|
void |
updateClob(int columnIndex,
java.io.Reader reader)
{inheritDoc}.
|
void |
updateClob(int columnIndex,
java.io.Reader reader,
long length)
{inheritDoc}.
|
void |
updateClob(java.lang.String columnLabel,
java.sql.Clob clob)
{inheritDoc}.
|
void |
updateClob(java.lang.String columnLabel,
java.io.Reader reader)
{inheritDoc}.
|
void |
updateClob(java.lang.String columnLabel,
java.io.Reader reader,
long length)
{inheritDoc}.
|
void |
updateDate(int columnIndex,
java.sql.Date date)
{inheritDoc}.
|
void |
updateDate(java.lang.String columnLabel,
java.sql.Date value)
{inheritDoc}.
|
void |
updateDouble(int columnIndex,
double value)
{inheritDoc}.
|
void |
updateDouble(java.lang.String columnLabel,
double value)
{inheritDoc}.
|
void |
updateFloat(int columnIndex,
float value)
{inheritDoc}.
|
void |
updateFloat(java.lang.String columnLabel,
float value)
{inheritDoc}.
|
void |
updateInt(int columnIndex,
int value)
{inheritDoc}.
|
void |
updateInt(java.lang.String columnLabel,
int value)
{inheritDoc}.
|
void |
updateLong(int columnIndex,
long value)
{inheritDoc}.
|
void |
updateLong(java.lang.String columnLabel,
long value)
{inheritDoc}.
|
void |
updateNCharacterStream(int columnIndex,
java.io.Reader reader)
{inheritDoc}.
|
void |
updateNCharacterStream(int columnIndex,
java.io.Reader value,
long length)
{inheritDoc}.
|
void |
updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader)
{inheritDoc}.
|
void |
updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length)
{inheritDoc}.
|
void |
updateNClob(int columnIndex,
java.sql.NClob nclob)
{inheritDoc}.
|
void |
updateNClob(int columnIndex,
java.io.Reader reader)
{inheritDoc}.
|
void |
updateNClob(int columnIndex,
java.io.Reader reader,
long length)
{inheritDoc}.
|
void |
updateNClob(java.lang.String columnLabel,
java.sql.NClob nclob)
{inheritDoc}.
|
void |
updateNClob(java.lang.String columnLabel,
java.io.Reader reader)
{inheritDoc}.
|
void |
updateNClob(java.lang.String columnLabel,
java.io.Reader reader,
long length)
{inheritDoc}.
|
void |
updateNString(int columnIndex,
java.lang.String nstring)
{inheritDoc}.
|
void |
updateNString(java.lang.String columnLabel,
java.lang.String nstring)
{inheritDoc}.
|
void |
updateNull(int columnIndex)
{inheritDoc}.
|
void |
updateNull(java.lang.String columnLabel)
{inheritDoc}.
|
void |
updateObject(int columnIndex,
java.lang.Object value)
{inheritDoc}.
|
void |
updateObject(int columnIndex,
java.lang.Object value,
int scaleOrLength)
{inheritDoc}.
|
void |
updateObject(java.lang.String columnLabel,
java.lang.Object value)
{inheritDoc}.
|
void |
updateObject(java.lang.String columnLabel,
java.lang.Object value,
int scaleOrLength)
{inheritDoc}.
|
void |
updateRef(int columnIndex,
java.sql.Ref ref)
{inheritDoc}.
|
void |
updateRef(java.lang.String columnLabel,
java.sql.Ref ref)
{inheritDoc}.
|
void |
updateRow()
{inheritDoc}.
|
void |
updateRowId(int columnIndex,
java.sql.RowId rowId)
{inheritDoc}.
|
void |
updateRowId(java.lang.String columnLabel,
java.sql.RowId rowId)
{inheritDoc}.
|
void |
updateShort(int columnIndex,
short value)
{inheritDoc}.
|
void |
updateShort(java.lang.String columnLabel,
short value)
{inheritDoc}.
|
void |
updateSQLXML(int columnIndex,
java.sql.SQLXML xmlObject)
{inheritDoc}.
|
void |
updateSQLXML(java.lang.String columnLabel,
java.sql.SQLXML xmlObject)
{inheritDoc}.
|
void |
updateString(int columnIndex,
java.lang.String value)
{inheritDoc}.
|
void |
updateString(java.lang.String columnLabel,
java.lang.String value)
{inheritDoc}.
|
void |
updateTime(int columnIndex,
java.sql.Time time)
{inheritDoc}.
|
void |
updateTime(java.lang.String columnLabel,
java.sql.Time value)
{inheritDoc}.
|
void |
updateTimestamp(int columnIndex,
java.sql.Timestamp timeStamp)
{inheritDoc}.
|
void |
updateTimestamp(java.lang.String columnLabel,
java.sql.Timestamp value)
{inheritDoc}.
|
boolean |
wasNull()
{inheritDoc}.
|
private java.lang.String |
zeroFillingIfNeeded(java.lang.String value,
ColumnInformation columnInformation) |
public static final java.time.format.DateTimeFormatter TEXT_LOCAL_DATE_TIME
public static final java.time.format.DateTimeFormatter TEXT_OFFSET_DATE_TIME
public static final java.time.format.DateTimeFormatter TEXT_ZONED_DATE_TIME
public static final int TINYINT1_IS_BIT
public static final int YEAR_IS_DATE_TYPE
private static final ColumnInformation[] INSERT_ID_COLUMNS
private static final java.util.regex.Pattern isIntegerRegex
private static final int MAX_ARRAY_SIZE
private static Logger logger
protected boolean isBinaryEncoded
protected java.util.TimeZone timeZone
protected Options options
private boolean callableResult
private Protocol protocol
private PacketInputStream reader
private MariaDbStatement statement
private RowProtocol row
private ColumnInformation[] columnsInformation
private boolean isEof
private int dataFetchTime
private boolean streaming
private int columnInformationLength
private byte[][] data
private int dataSize
private int fetchSize
private int resultSetScrollType
private int rowPointer
private ColumnNameMap columnNameMap
private boolean lastGetWasNull
private boolean lastValueNull
private int lastRowPointer
private int dataTypeMappingFlags
private boolean returnTableAlias
private boolean isClosed
private boolean eofDeprecated
public SelectResultSet(ColumnInformation[] columnInformation, Results results, Protocol protocol, PacketInputStream reader, boolean callableResult, boolean eofDeprecated) throws java.io.IOException, java.sql.SQLException
columnInformation
- column informationresults
- resultsprotocol
- current protocolreader
- stream fetchercallableResult
- is it from a callableStatement ?eofDeprecated
- is EOF deprecatedjava.io.IOException
- if any connection error occurjava.sql.SQLException
- if any connection error occurpublic SelectResultSet(ColumnInformation[] columnInformation, java.util.List<byte[]> resultSet, Protocol protocol, int resultSetScrollType)
columnInformation
- column informationresultSet
- result-set dataprotocol
- current protocolresultSetScrollType
- one of the following ResultSet
constants: ResultSet.TYPE_FORWARD_ONLY
,
ResultSet.TYPE_SCROLL_INSENSITIVE
, or ResultSet.TYPE_SCROLL_SENSITIVE
public static java.sql.ResultSet createGeneratedData(long[] data, Protocol protocol, boolean findColumnReturnsOne)
data
- - each element of this array represents a complete row in the ResultSet. Each value is given in its
string representation, as in MySQL text protocol, except boolean (BIT(1)) values that are represented
as "1" or "0" stringsprotocol
- protocolfindColumnReturnsOne
- - special parameter, used only in generated key result setspublic static java.sql.ResultSet createResultSet(java.lang.String[] columnNames, ColumnType[] columnTypes, java.lang.String[][] data, Protocol protocol)
columnNames
- - string array of column namescolumnTypes
- - column typesdata
- - each element of this array represents a complete row in the ResultSet. Each value is given in its string representation,
as in MySQL text protocol, except boolean (BIT(1)) values that are represented as "1" or "0" stringsprotocol
- protocolpublic static SelectResultSet createEmptyResultSet()
private void fetchAllResults() throws java.io.IOException, java.sql.SQLException
java.io.IOException
java.sql.SQLException
public void fetchRemaining() throws java.sql.SQLException
java.sql.SQLException
- if any error occurprivate void fetchRemainingLock() throws java.sql.SQLException
java.sql.SQLException
private void nextStreamingValue() throws java.io.IOException, java.sql.SQLException
java.io.IOException
- if socket exception occurjava.sql.SQLException
- if server return an unexpected errorprivate void addStreamingValue() throws java.io.IOException, java.sql.SQLException
java.io.IOException
- if socket exception occurjava.sql.SQLException
- if server return an unexpected errorpublic boolean readNextValue() throws java.io.IOException, java.sql.SQLException
java.io.IOException
- exceptionjava.sql.SQLException
- exceptionprivate int skipLengthEncodedValue(byte[] buf, int pos)
private void growDataArray()
public void close() throws java.sql.SQLException
close
in interface java.lang.AutoCloseable
close
in interface java.sql.ResultSet
java.sql.SQLException
public boolean next() throws java.sql.SQLException
next
in interface java.sql.ResultSet
java.sql.SQLException
private void checkObjectRange(int position) throws java.sql.SQLException
java.sql.SQLException
public java.sql.SQLWarning getWarnings() throws java.sql.SQLException
getWarnings
in interface java.sql.ResultSet
java.sql.SQLException
public void clearWarnings() throws java.sql.SQLException
clearWarnings
in interface java.sql.ResultSet
java.sql.SQLException
public boolean isBeforeFirst() throws java.sql.SQLException
isBeforeFirst
in interface java.sql.ResultSet
java.sql.SQLException
public boolean isAfterLast() throws java.sql.SQLException
isAfterLast
in interface java.sql.ResultSet
java.sql.SQLException
public boolean isFirst() throws java.sql.SQLException
isFirst
in interface java.sql.ResultSet
java.sql.SQLException
public boolean isLast() throws java.sql.SQLException
isLast
in interface java.sql.ResultSet
java.sql.SQLException
public void beforeFirst() throws java.sql.SQLException
beforeFirst
in interface java.sql.ResultSet
java.sql.SQLException
public void afterLast() throws java.sql.SQLException
afterLast
in interface java.sql.ResultSet
java.sql.SQLException
public boolean first() throws java.sql.SQLException
first
in interface java.sql.ResultSet
java.sql.SQLException
public boolean last() throws java.sql.SQLException
last
in interface java.sql.ResultSet
java.sql.SQLException
public int getRow() throws java.sql.SQLException
getRow
in interface java.sql.ResultSet
java.sql.SQLException
public boolean absolute(int row) throws java.sql.SQLException
absolute
in interface java.sql.ResultSet
java.sql.SQLException
public boolean relative(int rows) throws java.sql.SQLException
relative
in interface java.sql.ResultSet
java.sql.SQLException
public boolean previous() throws java.sql.SQLException
previous
in interface java.sql.ResultSet
java.sql.SQLException
public int getFetchDirection() throws java.sql.SQLException
getFetchDirection
in interface java.sql.ResultSet
java.sql.SQLException
public void setFetchDirection(int direction) throws java.sql.SQLException
setFetchDirection
in interface java.sql.ResultSet
java.sql.SQLException
public int getFetchSize() throws java.sql.SQLException
getFetchSize
in interface java.sql.ResultSet
java.sql.SQLException
public void setFetchSize(int fetchSize) throws java.sql.SQLException
setFetchSize
in interface java.sql.ResultSet
java.sql.SQLException
public int getType() throws java.sql.SQLException
getType
in interface java.sql.ResultSet
java.sql.SQLException
public int getConcurrency() throws java.sql.SQLException
getConcurrency
in interface java.sql.ResultSet
java.sql.SQLException
private void checkClose() throws java.sql.SQLException
java.sql.SQLException
public boolean isCallableResult()
public boolean isClosed()
isClosed
in interface java.sql.ResultSet
public MariaDbStatement getStatement()
getStatement
in interface java.sql.ResultSet
public void setStatement(MariaDbStatement statement)
public boolean wasNull() throws java.sql.SQLException
wasNull
in interface java.sql.ResultSet
java.sql.SQLException
public java.io.InputStream getAsciiStream(java.lang.String columnLabel) throws java.sql.SQLException
getAsciiStream
in interface java.sql.ResultSet
java.sql.SQLException
public java.io.InputStream getAsciiStream(int columnIndex) throws java.sql.SQLException
getAsciiStream
in interface java.sql.ResultSet
java.sql.SQLException
public java.lang.String getString(int columnIndex) throws java.sql.SQLException
getString
in interface java.sql.ResultSet
java.sql.SQLException
public java.lang.String getString(java.lang.String columnLabel) throws java.sql.SQLException
getString
in interface java.sql.ResultSet
java.sql.SQLException
private java.lang.String getInternalString(ColumnInformation columnInfo) throws java.sql.SQLException
java.sql.SQLException
private java.lang.String getInternalString(ColumnInformation columnInfo, java.util.Calendar cal) throws java.sql.SQLException
java.sql.SQLException
private java.lang.String zeroFillingIfNeeded(java.lang.String value, ColumnInformation columnInformation)
public java.io.InputStream getBinaryStream(int columnIndex) throws java.sql.SQLException
getBinaryStream
in interface java.sql.ResultSet
java.sql.SQLException
public java.io.InputStream getBinaryStream(java.lang.String columnLabel) throws java.sql.SQLException
getBinaryStream
in interface java.sql.ResultSet
java.sql.SQLException
public int getInt(int columnIndex) throws java.sql.SQLException
getInt
in interface java.sql.ResultSet
java.sql.SQLException
public int getInt(java.lang.String columnLabel) throws java.sql.SQLException
getInt
in interface java.sql.ResultSet
java.sql.SQLException
private int getInternalInt(ColumnInformation columnInfo) throws java.sql.SQLException
columnInfo
- current column informationjava.sql.SQLException
public long getLong(java.lang.String columnLabel) throws java.sql.SQLException
getLong
in interface java.sql.ResultSet
java.sql.SQLException
public long getLong(int columnIndex) throws java.sql.SQLException
getLong
in interface java.sql.ResultSet
java.sql.SQLException
private long getInternalLong(ColumnInformation columnInfo) throws java.sql.SQLException
columnInfo
- current column informationjava.sql.SQLException
- if any error occurpublic float getFloat(java.lang.String columnLabel) throws java.sql.SQLException
getFloat
in interface java.sql.ResultSet
java.sql.SQLException
public float getFloat(int columnIndex) throws java.sql.SQLException
getFloat
in interface java.sql.ResultSet
java.sql.SQLException
private float getInternalFloat(ColumnInformation columnInfo) throws java.sql.SQLException
columnInfo
- current column informationjava.sql.SQLException
- id any error occurpublic double getDouble(java.lang.String columnLabel) throws java.sql.SQLException
getDouble
in interface java.sql.ResultSet
java.sql.SQLException
public double getDouble(int columnIndex) throws java.sql.SQLException
getDouble
in interface java.sql.ResultSet
java.sql.SQLException
private double getInternalDouble(ColumnInformation columnInfo) throws java.sql.SQLException
columnInfo
- current column informationjava.sql.SQLException
- id any error occurpublic java.math.BigDecimal getBigDecimal(java.lang.String columnLabel, int scale) throws java.sql.SQLException
getBigDecimal
in interface java.sql.ResultSet
java.sql.SQLException
public java.math.BigDecimal getBigDecimal(int columnIndex, int scale) throws java.sql.SQLException
getBigDecimal
in interface java.sql.ResultSet
java.sql.SQLException
public java.math.BigDecimal getBigDecimal(int columnIndex) throws java.sql.SQLException
getBigDecimal
in interface java.sql.ResultSet
java.sql.SQLException
public java.math.BigDecimal getBigDecimal(java.lang.String columnLabel) throws java.sql.SQLException
getBigDecimal
in interface java.sql.ResultSet
java.sql.SQLException
private java.math.BigDecimal getInternalBigDecimal(ColumnInformation columnInfo) throws java.sql.SQLException
columnInfo
- current column informationjava.sql.SQLException
- id any error occurpublic byte[] getBytes(java.lang.String columnLabel) throws java.sql.SQLException
getBytes
in interface java.sql.ResultSet
java.sql.SQLException
public byte[] getBytes(int columnIndex) throws java.sql.SQLException
getBytes
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Date getDate(int columnIndex) throws java.sql.SQLException
getDate
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Date getDate(java.lang.String columnLabel) throws java.sql.SQLException
getDate
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Date getDate(int columnIndex, java.util.Calendar cal) throws java.sql.SQLException
getDate
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Date getDate(java.lang.String columnLabel, java.util.Calendar cal) throws java.sql.SQLException
getDate
in interface java.sql.ResultSet
java.sql.SQLException
private java.sql.Date getInternalDate(ColumnInformation columnInfo, java.util.Calendar cal) throws java.sql.SQLException
columnInfo
- current column informationcal
- session calendarjava.sql.SQLException
- if raw data cannot be parsepublic java.sql.Time getTime(int columnIndex) throws java.sql.SQLException
getTime
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Time getTime(java.lang.String columnLabel) throws java.sql.SQLException
getTime
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Time getTime(int columnIndex, java.util.Calendar cal) throws java.sql.SQLException
getTime
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Time getTime(java.lang.String columnLabel, java.util.Calendar cal) throws java.sql.SQLException
getTime
in interface java.sql.ResultSet
java.sql.SQLException
private java.sql.Time getInternalTime(ColumnInformation columnInfo, java.util.Calendar cal) throws java.sql.SQLException
columnInfo
- current column informationcal
- session calendarjava.sql.SQLException
- if raw data cannot be parsepublic java.sql.Timestamp getTimestamp(java.lang.String columnLabel) throws java.sql.SQLException
getTimestamp
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Timestamp getTimestamp(int columnIndex, java.util.Calendar cal) throws java.sql.SQLException
getTimestamp
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Timestamp getTimestamp(java.lang.String columnLabel, java.util.Calendar cal) throws java.sql.SQLException
getTimestamp
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Timestamp getTimestamp(int columnIndex) throws java.sql.SQLException
getTimestamp
in interface java.sql.ResultSet
java.sql.SQLException
private java.sql.Timestamp getInternalTimestamp(ColumnInformation columnInfo, java.util.Calendar userCalendar) throws java.sql.SQLException
columnInfo
- current column informationuserCalendar
- user calendar.java.sql.SQLException
- if text value cannot be parsepublic java.io.InputStream getUnicodeStream(java.lang.String columnLabel) throws java.sql.SQLException
getUnicodeStream
in interface java.sql.ResultSet
java.sql.SQLException
public java.io.InputStream getUnicodeStream(int columnIndex) throws java.sql.SQLException
getUnicodeStream
in interface java.sql.ResultSet
java.sql.SQLException
public java.lang.String getCursorName() throws java.sql.SQLException
getCursorName
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
getMetaData
in interface java.sql.ResultSet
java.sql.SQLException
public java.lang.Object getObject(int columnIndex) throws java.sql.SQLException
getObject
in interface java.sql.ResultSet
java.sql.SQLException
public java.lang.Object getObject(java.lang.String columnLabel) throws java.sql.SQLException
getObject
in interface java.sql.ResultSet
java.sql.SQLException
public java.lang.Object getObject(int columnIndex, java.util.Map<java.lang.String,java.lang.Class<?>> map) throws java.sql.SQLException
getObject
in interface java.sql.ResultSet
java.sql.SQLException
public java.lang.Object getObject(java.lang.String columnLabel, java.util.Map<java.lang.String,java.lang.Class<?>> map) throws java.sql.SQLException
getObject
in interface java.sql.ResultSet
java.sql.SQLException
public <T> T getObject(int columnIndex, java.lang.Class<T> type) throws java.sql.SQLException
getObject
in interface java.sql.ResultSet
java.sql.SQLException
public <T> T getObject(java.lang.String columnLabel, java.lang.Class<T> type) throws java.sql.SQLException
getObject
in interface java.sql.ResultSet
java.sql.SQLException
private java.lang.Object getInternalObject(ColumnInformation columnInfo, int dataTypeMappingFlags) throws java.sql.SQLException
columnInfo
- current column informationdataTypeMappingFlags
- dataTypeflag (year is date or int, bit boolean or int, ...)java.text.ParseException
- if data cannot be parsejava.sql.SQLException
public int findColumn(java.lang.String columnLabel) throws java.sql.SQLException
findColumn
in interface java.sql.ResultSet
java.sql.SQLException
public java.io.Reader getCharacterStream(java.lang.String columnLabel) throws java.sql.SQLException
getCharacterStream
in interface java.sql.ResultSet
java.sql.SQLException
public java.io.Reader getCharacterStream(int columnIndex) throws java.sql.SQLException
getCharacterStream
in interface java.sql.ResultSet
java.sql.SQLException
public java.io.Reader getNCharacterStream(int columnIndex) throws java.sql.SQLException
getNCharacterStream
in interface java.sql.ResultSet
java.sql.SQLException
public java.io.Reader getNCharacterStream(java.lang.String columnLabel) throws java.sql.SQLException
getNCharacterStream
in interface java.sql.ResultSet
java.sql.SQLException
public boolean rowUpdated() throws java.sql.SQLException
rowUpdated
in interface java.sql.ResultSet
java.sql.SQLException
public boolean rowInserted() throws java.sql.SQLException
rowInserted
in interface java.sql.ResultSet
java.sql.SQLException
public boolean rowDeleted() throws java.sql.SQLException
rowDeleted
in interface java.sql.ResultSet
java.sql.SQLException
public void updateNull(int columnIndex) throws java.sql.SQLException
updateNull
in interface java.sql.ResultSet
java.sql.SQLException
public void updateNull(java.lang.String columnLabel) throws java.sql.SQLException
updateNull
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBoolean(int columnIndex, boolean bool) throws java.sql.SQLException
updateBoolean
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBoolean(java.lang.String columnLabel, boolean value) throws java.sql.SQLException
updateBoolean
in interface java.sql.ResultSet
java.sql.SQLException
public void updateByte(int columnIndex, byte value) throws java.sql.SQLException
updateByte
in interface java.sql.ResultSet
java.sql.SQLException
public void updateByte(java.lang.String columnLabel, byte value) throws java.sql.SQLException
updateByte
in interface java.sql.ResultSet
java.sql.SQLException
public void updateShort(int columnIndex, short value) throws java.sql.SQLException
updateShort
in interface java.sql.ResultSet
java.sql.SQLException
public void updateShort(java.lang.String columnLabel, short value) throws java.sql.SQLException
updateShort
in interface java.sql.ResultSet
java.sql.SQLException
public void updateInt(int columnIndex, int value) throws java.sql.SQLException
updateInt
in interface java.sql.ResultSet
java.sql.SQLException
public void updateInt(java.lang.String columnLabel, int value) throws java.sql.SQLException
updateInt
in interface java.sql.ResultSet
java.sql.SQLException
public void updateFloat(int columnIndex, float value) throws java.sql.SQLException
updateFloat
in interface java.sql.ResultSet
java.sql.SQLException
public void updateFloat(java.lang.String columnLabel, float value) throws java.sql.SQLException
updateFloat
in interface java.sql.ResultSet
java.sql.SQLException
public void updateDouble(int columnIndex, double value) throws java.sql.SQLException
updateDouble
in interface java.sql.ResultSet
java.sql.SQLException
public void updateDouble(java.lang.String columnLabel, double value) throws java.sql.SQLException
updateDouble
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBigDecimal(int columnIndex, java.math.BigDecimal value) throws java.sql.SQLException
updateBigDecimal
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBigDecimal(java.lang.String columnLabel, java.math.BigDecimal value) throws java.sql.SQLException
updateBigDecimal
in interface java.sql.ResultSet
java.sql.SQLException
public void updateString(int columnIndex, java.lang.String value) throws java.sql.SQLException
updateString
in interface java.sql.ResultSet
java.sql.SQLException
public void updateString(java.lang.String columnLabel, java.lang.String value) throws java.sql.SQLException
updateString
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBytes(int columnIndex, byte[] value) throws java.sql.SQLException
updateBytes
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBytes(java.lang.String columnLabel, byte[] value) throws java.sql.SQLException
updateBytes
in interface java.sql.ResultSet
java.sql.SQLException
public void updateDate(int columnIndex, java.sql.Date date) throws java.sql.SQLException
updateDate
in interface java.sql.ResultSet
java.sql.SQLException
public void updateDate(java.lang.String columnLabel, java.sql.Date value) throws java.sql.SQLException
updateDate
in interface java.sql.ResultSet
java.sql.SQLException
public void updateTime(int columnIndex, java.sql.Time time) throws java.sql.SQLException
updateTime
in interface java.sql.ResultSet
java.sql.SQLException
public void updateTime(java.lang.String columnLabel, java.sql.Time value) throws java.sql.SQLException
updateTime
in interface java.sql.ResultSet
java.sql.SQLException
public void updateTimestamp(int columnIndex, java.sql.Timestamp timeStamp) throws java.sql.SQLException
updateTimestamp
in interface java.sql.ResultSet
java.sql.SQLException
public void updateTimestamp(java.lang.String columnLabel, java.sql.Timestamp value) throws java.sql.SQLException
updateTimestamp
in interface java.sql.ResultSet
java.sql.SQLException
public void updateAsciiStream(int columnIndex, java.io.InputStream inputStream, int length) throws java.sql.SQLException
updateAsciiStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream inputStream) throws java.sql.SQLException
updateAsciiStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream value, int length) throws java.sql.SQLException
updateAsciiStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateAsciiStream(int columnIndex, java.io.InputStream inputStream, long length) throws java.sql.SQLException
updateAsciiStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream inputStream, long length) throws java.sql.SQLException
updateAsciiStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateAsciiStream(int columnIndex, java.io.InputStream inputStream) throws java.sql.SQLException
updateAsciiStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBinaryStream(int columnIndex, java.io.InputStream inputStream, int length) throws java.sql.SQLException
updateBinaryStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBinaryStream(int columnIndex, java.io.InputStream inputStream, long length) throws java.sql.SQLException
updateBinaryStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream value, int length) throws java.sql.SQLException
updateBinaryStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream inputStream, long length) throws java.sql.SQLException
updateBinaryStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBinaryStream(int columnIndex, java.io.InputStream inputStream) throws java.sql.SQLException
updateBinaryStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream inputStream) throws java.sql.SQLException
updateBinaryStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateCharacterStream(int columnIndex, java.io.Reader value, int length) throws java.sql.SQLException
updateCharacterStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateCharacterStream(int columnIndex, java.io.Reader value) throws java.sql.SQLException
updateCharacterStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, int length) throws java.sql.SQLException
updateCharacterStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateCharacterStream(int columnIndex, java.io.Reader value, long length) throws java.sql.SQLException
updateCharacterStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
updateCharacterStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
updateCharacterStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateObject(int columnIndex, java.lang.Object value, int scaleOrLength) throws java.sql.SQLException
updateObject
in interface java.sql.ResultSet
java.sql.SQLException
public void updateObject(int columnIndex, java.lang.Object value) throws java.sql.SQLException
updateObject
in interface java.sql.ResultSet
java.sql.SQLException
public void updateObject(java.lang.String columnLabel, java.lang.Object value, int scaleOrLength) throws java.sql.SQLException
updateObject
in interface java.sql.ResultSet
java.sql.SQLException
public void updateObject(java.lang.String columnLabel, java.lang.Object value) throws java.sql.SQLException
updateObject
in interface java.sql.ResultSet
java.sql.SQLException
public void updateLong(java.lang.String columnLabel, long value) throws java.sql.SQLException
updateLong
in interface java.sql.ResultSet
java.sql.SQLException
public void updateLong(int columnIndex, long value) throws java.sql.SQLException
updateLong
in interface java.sql.ResultSet
java.sql.SQLException
public void insertRow() throws java.sql.SQLException
insertRow
in interface java.sql.ResultSet
java.sql.SQLException
public void updateRow() throws java.sql.SQLException
updateRow
in interface java.sql.ResultSet
java.sql.SQLException
public void deleteRow() throws java.sql.SQLException
deleteRow
in interface java.sql.ResultSet
java.sql.SQLException
public void refreshRow() throws java.sql.SQLException
refreshRow
in interface java.sql.ResultSet
java.sql.SQLException
public void cancelRowUpdates() throws java.sql.SQLException
cancelRowUpdates
in interface java.sql.ResultSet
java.sql.SQLException
public void moveToInsertRow() throws java.sql.SQLException
moveToInsertRow
in interface java.sql.ResultSet
java.sql.SQLException
public void moveToCurrentRow() throws java.sql.SQLException
moveToCurrentRow
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Ref getRef(int columnIndex) throws java.sql.SQLException
getRef
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Ref getRef(java.lang.String columnLabel) throws java.sql.SQLException
getRef
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Blob getBlob(int columnIndex) throws java.sql.SQLException
getBlob
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Blob getBlob(java.lang.String columnLabel) throws java.sql.SQLException
getBlob
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Clob getClob(int columnIndex) throws java.sql.SQLException
getClob
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Clob getClob(java.lang.String columnLabel) throws java.sql.SQLException
getClob
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Array getArray(int columnIndex) throws java.sql.SQLException
getArray
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.Array getArray(java.lang.String columnLabel) throws java.sql.SQLException
getArray
in interface java.sql.ResultSet
java.sql.SQLException
public java.net.URL getURL(int columnIndex) throws java.sql.SQLException
getURL
in interface java.sql.ResultSet
java.sql.SQLException
public java.net.URL getURL(java.lang.String columnLabel) throws java.sql.SQLException
getURL
in interface java.sql.ResultSet
java.sql.SQLException
public void updateRef(int columnIndex, java.sql.Ref ref) throws java.sql.SQLException
updateRef
in interface java.sql.ResultSet
java.sql.SQLException
public void updateRef(java.lang.String columnLabel, java.sql.Ref ref) throws java.sql.SQLException
updateRef
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBlob(int columnIndex, java.sql.Blob blob) throws java.sql.SQLException
updateBlob
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBlob(java.lang.String columnLabel, java.sql.Blob blob) throws java.sql.SQLException
updateBlob
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBlob(int columnIndex, java.io.InputStream inputStream) throws java.sql.SQLException
updateBlob
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream) throws java.sql.SQLException
updateBlob
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBlob(int columnIndex, java.io.InputStream inputStream, long length) throws java.sql.SQLException
updateBlob
in interface java.sql.ResultSet
java.sql.SQLException
public void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream, long length) throws java.sql.SQLException
updateBlob
in interface java.sql.ResultSet
java.sql.SQLException
public void updateClob(int columnIndex, java.sql.Clob clob) throws java.sql.SQLException
updateClob
in interface java.sql.ResultSet
java.sql.SQLException
public void updateClob(java.lang.String columnLabel, java.sql.Clob clob) throws java.sql.SQLException
updateClob
in interface java.sql.ResultSet
java.sql.SQLException
public void updateClob(int columnIndex, java.io.Reader reader, long length) throws java.sql.SQLException
updateClob
in interface java.sql.ResultSet
java.sql.SQLException
public void updateClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
updateClob
in interface java.sql.ResultSet
java.sql.SQLException
public void updateClob(int columnIndex, java.io.Reader reader) throws java.sql.SQLException
updateClob
in interface java.sql.ResultSet
java.sql.SQLException
public void updateClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
updateClob
in interface java.sql.ResultSet
java.sql.SQLException
public void updateArray(int columnIndex, java.sql.Array array) throws java.sql.SQLException
updateArray
in interface java.sql.ResultSet
java.sql.SQLException
public void updateArray(java.lang.String columnLabel, java.sql.Array array) throws java.sql.SQLException
updateArray
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.RowId getRowId(int columnIndex) throws java.sql.SQLException
getRowId
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.RowId getRowId(java.lang.String columnLabel) throws java.sql.SQLException
getRowId
in interface java.sql.ResultSet
java.sql.SQLException
public void updateRowId(int columnIndex, java.sql.RowId rowId) throws java.sql.SQLException
updateRowId
in interface java.sql.ResultSet
java.sql.SQLException
public void updateRowId(java.lang.String columnLabel, java.sql.RowId rowId) throws java.sql.SQLException
updateRowId
in interface java.sql.ResultSet
java.sql.SQLException
public int getHoldability() throws java.sql.SQLException
getHoldability
in interface java.sql.ResultSet
java.sql.SQLException
public void updateNString(int columnIndex, java.lang.String nstring) throws java.sql.SQLException
updateNString
in interface java.sql.ResultSet
java.sql.SQLException
public void updateNString(java.lang.String columnLabel, java.lang.String nstring) throws java.sql.SQLException
updateNString
in interface java.sql.ResultSet
java.sql.SQLException
public void updateNClob(int columnIndex, java.sql.NClob nclob) throws java.sql.SQLException
updateNClob
in interface java.sql.ResultSet
java.sql.SQLException
public void updateNClob(java.lang.String columnLabel, java.sql.NClob nclob) throws java.sql.SQLException
updateNClob
in interface java.sql.ResultSet
java.sql.SQLException
public void updateNClob(int columnIndex, java.io.Reader reader) throws java.sql.SQLException
updateNClob
in interface java.sql.ResultSet
java.sql.SQLException
public void updateNClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
updateNClob
in interface java.sql.ResultSet
java.sql.SQLException
public void updateNClob(int columnIndex, java.io.Reader reader, long length) throws java.sql.SQLException
updateNClob
in interface java.sql.ResultSet
java.sql.SQLException
public void updateNClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
updateNClob
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.NClob getNClob(int columnIndex) throws java.sql.SQLException
getNClob
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.NClob getNClob(java.lang.String columnLabel) throws java.sql.SQLException
getNClob
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.SQLXML getSQLXML(int columnIndex) throws java.sql.SQLException
getSQLXML
in interface java.sql.ResultSet
java.sql.SQLException
public java.sql.SQLXML getSQLXML(java.lang.String columnLabel) throws java.sql.SQLException
getSQLXML
in interface java.sql.ResultSet
java.sql.SQLException
public void updateSQLXML(int columnIndex, java.sql.SQLXML xmlObject) throws java.sql.SQLException
updateSQLXML
in interface java.sql.ResultSet
java.sql.SQLException
public void updateSQLXML(java.lang.String columnLabel, java.sql.SQLXML xmlObject) throws java.sql.SQLException
updateSQLXML
in interface java.sql.ResultSet
java.sql.SQLException
public java.lang.String getNString(int columnIndex) throws java.sql.SQLException
getNString
in interface java.sql.ResultSet
java.sql.SQLException
public java.lang.String getNString(java.lang.String columnLabel) throws java.sql.SQLException
getNString
in interface java.sql.ResultSet
java.sql.SQLException
public void updateNCharacterStream(int columnIndex, java.io.Reader value, long length) throws java.sql.SQLException
updateNCharacterStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
updateNCharacterStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateNCharacterStream(int columnIndex, java.io.Reader reader) throws java.sql.SQLException
updateNCharacterStream
in interface java.sql.ResultSet
java.sql.SQLException
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
updateNCharacterStream
in interface java.sql.ResultSet
java.sql.SQLException
public boolean getBoolean(int index) throws java.sql.SQLException
getBoolean
in interface java.sql.ResultSet
java.sql.SQLException
public boolean getBoolean(java.lang.String columnLabel) throws java.sql.SQLException
getBoolean
in interface java.sql.ResultSet
java.sql.SQLException
private boolean getInternalBoolean(ColumnInformation columnInfo) throws java.sql.SQLException
columnInfo
- current column informationjava.sql.SQLException
- id any error occurpublic byte getByte(int index) throws java.sql.SQLException
getByte
in interface java.sql.ResultSet
java.sql.SQLException
public byte getByte(java.lang.String columnLabel) throws java.sql.SQLException
getByte
in interface java.sql.ResultSet
java.sql.SQLException
private byte getInternalByte(ColumnInformation columnInfo) throws java.sql.SQLException
columnInfo
- current column informationjava.sql.SQLException
- id any error occurpublic short getShort(int index) throws java.sql.SQLException
getShort
in interface java.sql.ResultSet
java.sql.SQLException
public short getShort(java.lang.String columnLabel) throws java.sql.SQLException
getShort
in interface java.sql.ResultSet
java.sql.SQLException
private short getInternalShort(ColumnInformation columnInfo) throws java.sql.SQLException
columnInfo
- current column informationjava.sql.SQLException
- id any error occurpublic <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException
unwrap
in interface java.sql.Wrapper
java.sql.SQLException
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException
isWrapperFor
in interface java.sql.Wrapper
java.sql.SQLException
public void setReturnTableAlias(boolean returnTableAlias)
private java.lang.String getTimeString(ColumnInformation columnInfo)
private void rangeCheck(java.lang.Object className, long minValue, long maxValue, long value, ColumnInformation columnInfo) throws java.sql.SQLException
java.sql.SQLException
private int getInternalTinyInt(ColumnInformation columnInfo) throws java.sql.SQLException
java.sql.SQLException
private int getInternalSmallInt(ColumnInformation columnInfo) throws java.sql.SQLException
java.sql.SQLException
private long getInternalMediumInt(ColumnInformation columnInfo) throws java.sql.SQLException
java.sql.SQLException
private byte parseByte(ColumnInformation columnInfo) throws java.sql.SQLException
java.sql.SQLException
private short parseShort(ColumnInformation columnInfo) throws java.sql.SQLException
java.sql.SQLException
private int parseInt(ColumnInformation columnInfo) throws java.sql.SQLException
java.sql.SQLException
private long parseLong(ColumnInformation columnInfo) throws java.sql.SQLException
java.sql.SQLException
private java.math.BigInteger getInternalBigInteger(ColumnInformation columnInfo) throws java.sql.SQLException
columnInfo
- current column informationjava.sql.SQLException
- exceptionprivate java.sql.Date binaryDate(ColumnInformation columnInfo, java.util.Calendar cal) throws java.sql.SQLException
java.sql.SQLException
private java.sql.Time binaryTime(ColumnInformation columnInfo, java.util.Calendar cal) throws java.sql.SQLException
java.sql.SQLException
private java.sql.Timestamp binaryTimestamp(ColumnInformation columnInfo, java.util.Calendar userCalendar) throws java.sql.SQLException
java.sql.SQLException
protected int extractNanos(java.lang.String timestring) throws java.sql.SQLException
java.sql.SQLException
private java.time.ZonedDateTime getZonedDateTime(ColumnInformation columnInfo, java.lang.Class clazz) throws java.sql.SQLException
columnInfo
- current column informationclazz
- ending classjava.text.ParseException
- if text value cannot be parsejava.sql.SQLException
private java.time.OffsetTime getOffsetTime(ColumnInformation columnInfo) throws java.sql.SQLException
columnInfo
- current column informationjava.text.ParseException
- if text value cannot be parsejava.sql.SQLException
private java.time.LocalTime getLocalTime(ColumnInformation columnInfo) throws java.sql.SQLException
columnInfo
- current column informationjava.text.ParseException
- if text value cannot be parsejava.sql.SQLException
private java.time.LocalDate getLocalDate(ColumnInformation columnInfo) throws java.sql.SQLException
columnInfo
- current column informationjava.text.ParseException
- if text value cannot be parsejava.sql.SQLException