
public.javadoc.org.spincast.plugins.jdbc.SpincastResultSet.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastResultSet (org.spincast:spincast-framework 2.1.1 API)
Package org.spincast.plugins.jdbc
Interface SpincastResultSet
- All Superinterfaces:
AutoCloseable
, ResultSet
, Wrapper
- All Known Implementing Classes:
SpincastResultSetDefault
Resultset that adds a "getXXXOrNull()"
method for every primitive types.
By default, Jdbc will return 0 when a value is
null and "getInt()" or "getLong()" is used, for example.
Also add some new getters.
-
Field Summary
Fields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
-
Method Summary
Modifier and Type
Method
Description
boolean
getBoolean(int columnIndex)
Deprecated.
boolean
getBoolean(String columnLabel)
Deprecated.
boolean
getBooleanOrFalse(int columnIndex)
Returns false
when null
.
boolean
getBooleanOrFalse(String columnLabel)
Returns false
when null
.
getBooleanOrNull(int columnIndex)
Returns null
when null, not false
as
JDBC does by default!
getBooleanOrNull(String columnLabel)
Returns null
when null, not false
as
JDBC does by default!
byte
getByte(int columnIndex)
Deprecated.
byte
Deprecated.
getByteOrNull(int columnIndex)
Returns null
when null, not 0
as
JDBC does by default!
getByteOrNull(String columnLabel)
Returns null
when null, not 0
as
JDBC does by default!
getByteOrZero(int columnIndex)
Returns 0
when null.
getByteOrZero(String columnLabel)
Returns 0
when null.
double
getDouble(int columnIndex)
Deprecated.
double
Deprecated.
getDoubleOrNull(int columnIndex)
Returns null
when null, not 0
as
JDBC does by default!
getDoubleOrNull(String columnLabel)
Returns null
when null, not 0
as
JDBC does by default!
getDoubleOrZero(int columnIndex)
Returns 0
when null.
getDoubleOrZero(String columnLabel)
Returns 0
when null.
float
getFloat(int columnIndex)
Deprecated.
float
Deprecated.
getFloatOrNull(int columnIndex)
Returns null
when null, not 0
as
JDBC does by default!
getFloatOrNull(String columnLabel)
Returns null
when null, not 0
as
JDBC does by default!
getFloatOrZero(int columnIndex)
Returns 0
when null.
getFloatOrZero(String columnLabel)
Returns 0
when null.
getInstant(int columnIndex)
Returns an Instant
from a TIMESTAMP WITH TIME ZONE
(ie: "TIMESTAMPTZ") column.
getInstant(String columnLabel)
Returns an Instant
from a TIMESTAMP WITH TIME ZONE
(ie: "TIMESTAMPTZ") column.
int
getInt(int columnIndex)
Deprecated.
int
Deprecated.
getIntegerOrNull(int columnIndex)
Returns null
when null, not 0
as
JDBC does by default!
getIntegerOrNull(String columnLabel)
Returns null
when null, not 0
as
JDBC does by default!
getIntegerOrZero(int columnIndex)
Returns 0
when null.
getIntegerOrZero(String columnLabel)
Returns 0
when null.
long
getLong(int columnIndex)
Deprecated.
long
Deprecated.
getLongOrNull(int columnIndex)
Returns null
when null, not 0
as
JDBC does by default!
getLongOrNull(String columnLabel)
Returns null
when null, not 0
as
JDBC does by default!
getLongOrZero(int columnIndex)
Returns 0
when null.
getLongOrZero(String columnLabel)
Returns 0
when null.
short
getShort(int columnIndex)
Deprecated.
short
Deprecated.
getShortOrNull(int columnIndex)
Returns null
when null, not 0
as
JDBC does by default!
getShortOrNull(String columnLabel)
Returns null
when null, not 0
as
JDBC does by default!
getShortOrZero(int columnIndex)
Returns 0
when null.
getShortOrZero(String columnLabel)
Returns 0
when null.
Methods inherited from interface java.sql.ResultSet
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getFetchDirection, getFetchSize, getHoldability, getMetaData, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getRowId, getRowId, getSQLXML, getSQLXML, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Method Details
-
getBooleanOrNull
Returns null
when null, not false
as
JDBC does by default!
- Throws:
SQLException
-
getBooleanOrNull
Returns null
when null, not false
as
JDBC does by default!
- Throws:
SQLException
-
getBooleanOrFalse
Returns false
when null
.
- Throws:
SQLException
-
getBooleanOrFalse
Returns false
when null
.
- Throws:
SQLException
-
getByteOrNull
Returns null
when null, not 0
as
JDBC does by default!
- Throws:
SQLException
-
getByteOrNull
Returns null
when null, not 0
as
JDBC does by default!
- Throws:
SQLException
-
getByteOrZero
Returns 0
when null.
- Throws:
SQLException
-
getByteOrZero
Returns 0
when null.
- Throws:
SQLException
-
getShortOrNull
Returns null
when null, not 0
as
JDBC does by default!
- Throws:
SQLException
-
getShortOrNull
Returns null
when null, not 0
as
JDBC does by default!
- Throws:
SQLException
-
getShortOrZero
Returns 0
when null.
- Throws:
SQLException
-
getShortOrZero
Returns 0
when null.
- Throws:
SQLException
-
getIntegerOrNull
Returns null
when null, not 0
as
JDBC does by default!
- Throws:
SQLException
-
getIntegerOrNull
Returns null
when null, not 0
as
JDBC does by default!
- Throws:
SQLException
-
getIntegerOrZero
Returns 0
when null.
- Throws:
SQLException
-
getIntegerOrZero
Returns 0
when null.
- Throws:
SQLException
-
getLongOrNull
Returns null
when null, not 0
as
JDBC does by default!
- Throws:
SQLException
-
getLongOrNull
Returns null
when null, not 0
as
JDBC does by default!
- Throws:
SQLException
-
getLongOrZero
Returns 0
when null.
- Throws:
SQLException
-
getLongOrZero
Returns 0
when null.
- Throws:
SQLException
-
getFloatOrNull
Returns null
when null, not 0
as
JDBC does by default!
- Throws:
SQLException
-
getFloatOrNull
Returns null
when null, not 0
as
JDBC does by default!
- Throws:
SQLException
-
getFloatOrZero
Returns 0
when null.
- Throws:
SQLException
-
getFloatOrZero
Returns 0
when null.
- Throws:
SQLException
-
getDoubleOrNull
Returns null
when null, not 0
as
JDBC does by default!
- Throws:
SQLException
-
getDoubleOrNull
Returns null
when null, not 0
as
JDBC does by default!
- Throws:
SQLException
-
getDoubleOrZero
Returns 0
when null.
- Throws:
SQLException
-
getDoubleOrZero
Returns 0
when null.
- Throws:
SQLException
-
getBoolean
Deprecated.
Use getBooleanOrNull(int)
or
getBooleanOrFalse(int)
instead.
- Specified by:
getBoolean
in interface ResultSet
- Throws:
SQLException
-
getBoolean
Deprecated.
Use getBooleanOrNull(String)
or
getBooleanOrFalse(String)
instead.
- Specified by:
getBoolean
in interface ResultSet
- Throws:
SQLException
-
getByte
Deprecated.
Use getByteOrNull(int)
or getByteOrZero(int)
instead.
- Specified by:
getByte
in interface ResultSet
- Throws:
SQLException
-
getByte
Deprecated.
Use getByteOrNull(String)
or getByteOrZero(String)
instead.
- Specified by:
getByte
in interface ResultSet
- Throws:
SQLException
-
getShort
Deprecated.
Use getShortOrNull(int)
or getShortOrZero(int)
} instead.
- Specified by:
getShort
in interface ResultSet
- Throws:
SQLException
-
getShort
Deprecated.
Use getShortOrNull(String)
or getShortOrZero(String)
instead.
- Specified by:
getShort
in interface ResultSet
- Throws:
SQLException
-
getInt
Deprecated.
Use getIntegerOrNull(int)
or getIntegerOrZero(int)
instead.
- Specified by:
getInt
in interface ResultSet
- Throws:
SQLException
-
getInt
Deprecated.
Use getIntegerOrNull(String)
or getIntegerOrZero(String)
instead.
- Specified by:
getInt
in interface ResultSet
- Throws:
SQLException
-
getLong
Deprecated.
Use getLongOrNull(int)
or #getLongOrLong(int)
instead.
- Specified by:
getLong
in interface ResultSet
- Throws:
SQLException
-
getLong
Deprecated.
Use getLongOrNull(String)
or getLongOrZero(String)
instead.
- Specified by:
getLong
in interface ResultSet
- Throws:
SQLException
-
getFloat
Deprecated.
Use getFloatOrNull(int)
or getFloatOrZero(int)
instead.
- Specified by:
getFloat
in interface ResultSet
- Throws:
SQLException
-
getFloat
Deprecated.
Use getFloatOrNull(String)
or getFloatOrZero(String)
instead.
- Specified by:
getFloat
in interface ResultSet
- Throws:
SQLException
-
getDouble
Deprecated.
Use getDoubleOrNull(int)
or getDoubleOrZero(int)
instead.
- Specified by:
getDouble
in interface ResultSet
- Throws:
SQLException
-
getDouble
Deprecated.
Use getDoubleOrNull(String)
or getDoubleOrZero(String)
instead.
- Specified by:
getDouble
in interface ResultSet
- Throws:
SQLException
-
getInstant
Returns an Instant
from a TIMESTAMP WITH TIME ZONE
(ie: "TIMESTAMPTZ") column.
Make sure the type of the column you use can store up to nanoseconds,
if this is required.
- Throws:
SQLException
-
getInstant
Returns an Instant
from a TIMESTAMP WITH TIME ZONE
(ie: "TIMESTAMPTZ") column.
Make sure the type of the column you use can store up to nanoseconds,
if this is required.
- Throws:
SQLException
© 2015 - 2025 Weber Informatics LLC | Privacy Policy