Package com.logicaldoc.core
Class SqlRowSetWrapper
java.lang.Object
com.logicaldoc.core.SqlRowSetWrapper
- All Implemented Interfaces:
Serializable
,org.springframework.jdbc.support.rowset.SqlRowSet
public class SqlRowSetWrapper
extends Object
implements org.springframework.jdbc.support.rowset.SqlRowSet
Wrapper for the default SqlRowSet able to hanle modern Jdbc drivers
- Since:
- 8.8.2
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
absolute
(int row) void
void
int
findColumn
(String columnLabel) boolean
first()
getBigDecimal
(int arg0) getBigDecimal
(String arg0) boolean
getBoolean
(int columnIndex) boolean
getBoolean
(String columnLabel) byte
getByte
(int columnIndex) byte
getDate
(int arg0) double
getDouble
(int columnIndex) double
float
getFloat
(int columnIndex) float
int
getInt
(int columnIndex) int
long
getLong
(int columnIndex) long
org.springframework.jdbc.support.rowset.SqlRowSetMetaData
getNString
(int arg0) getNString
(String arg0) getObject
(int arg0) <T> T
<T> T
int
getRow()
short
getShort
(int columnIndex) short
getString
(int arg0) getTime
(int arg0) getTimestamp
(int arg0) getTimestamp
(int arg0, Calendar arg1) getTimestamp
(String arg0) getTimestamp
(String arg0, Calendar arg1) boolean
boolean
boolean
isFirst()
boolean
isLast()
boolean
last()
boolean
next()
boolean
previous()
boolean
relative
(int rows) boolean
wasNull()
-
Constructor Details
-
SqlRowSetWrapper
public SqlRowSetWrapper(org.springframework.jdbc.support.rowset.SqlRowSet rowSet)
-
-
Method Details
-
absolute
public boolean absolute(int row) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
absolute
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
afterLast
public void afterLast() throws org.springframework.jdbc.InvalidResultSetAccessException- Specified by:
afterLast
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
beforeFirst
public void beforeFirst() throws org.springframework.jdbc.InvalidResultSetAccessException- Specified by:
beforeFirst
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
findColumn
public int findColumn(String columnLabel) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
findColumn
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
first
public boolean first() throws org.springframework.jdbc.InvalidResultSetAccessException- Specified by:
first
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getBigDecimal
public BigDecimal getBigDecimal(int arg0) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getBigDecimal
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getBigDecimal
public BigDecimal getBigDecimal(String arg0) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getBigDecimal
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getBoolean
public boolean getBoolean(int columnIndex) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getBoolean
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getBoolean
public boolean getBoolean(String columnLabel) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getBoolean
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getByte
public byte getByte(int columnIndex) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getByte
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getByte
public byte getByte(String columnLabel) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getByte
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getDate
public Date getDate(int arg0, Calendar arg1) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getDate
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getDate
- Specified by:
getDate
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getDate
public Date getDate(String arg0, Calendar arg1) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getDate
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getDate
- Specified by:
getDate
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getDouble
public double getDouble(int columnIndex) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getDouble
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getDouble
public double getDouble(String columnLabel) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getDouble
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getFloat
public float getFloat(int columnIndex) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getFloat
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getFloat
public float getFloat(String columnLabel) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getFloat
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getInt
public int getInt(int columnIndex) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getInt
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getInt
public int getInt(String columnLabel) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getInt
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getLong
public long getLong(int columnIndex) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getLong
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getLong
public long getLong(String columnLabel) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getLong
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getMetaData
public org.springframework.jdbc.support.rowset.SqlRowSetMetaData getMetaData()- Specified by:
getMetaData
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
-
getNString
- Specified by:
getNString
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getNString
public String getNString(String arg0) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getNString
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getObject
public <T> T getObject(int arg0, Class<T> arg1) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getObject
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getObject
public Object getObject(int arg0, Map<String, Class<?>> arg1) throws org.springframework.jdbc.InvalidResultSetAccessException- Specified by:
getObject
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getObject
- Specified by:
getObject
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getObject
public <T> T getObject(String arg0, Class<T> arg1) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getObject
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getObject
public Object getObject(String arg0, Map<String, Class<?>> arg1) throws org.springframework.jdbc.InvalidResultSetAccessException- Specified by:
getObject
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getObject
public Object getObject(String arg0) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getObject
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getRow
public int getRow() throws org.springframework.jdbc.InvalidResultSetAccessException- Specified by:
getRow
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getShort
public short getShort(int columnIndex) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getShort
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getShort
public short getShort(String columnLabel) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getShort
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getString
- Specified by:
getString
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getString
public String getString(String arg0) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getString
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getTime
public Time getTime(int arg0, Calendar arg1) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getTime
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getTime
- Specified by:
getTime
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getTime
public Time getTime(String arg0, Calendar arg1) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getTime
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getTime
- Specified by:
getTime
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getTimestamp
public Timestamp getTimestamp(int arg0, Calendar arg1) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getTimestamp
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getTimestamp
public Timestamp getTimestamp(int arg0) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getTimestamp
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getTimestamp
public Timestamp getTimestamp(String arg0, Calendar arg1) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getTimestamp
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
getTimestamp
public Timestamp getTimestamp(String arg0) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
getTimestamp
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
isAfterLast
public boolean isAfterLast() throws org.springframework.jdbc.InvalidResultSetAccessException- Specified by:
isAfterLast
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
isBeforeFirst
public boolean isBeforeFirst() throws org.springframework.jdbc.InvalidResultSetAccessException- Specified by:
isBeforeFirst
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
isFirst
public boolean isFirst() throws org.springframework.jdbc.InvalidResultSetAccessException- Specified by:
isFirst
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
isLast
public boolean isLast() throws org.springframework.jdbc.InvalidResultSetAccessException- Specified by:
isLast
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
last
public boolean last() throws org.springframework.jdbc.InvalidResultSetAccessException- Specified by:
last
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
next
public boolean next() throws org.springframework.jdbc.InvalidResultSetAccessException- Specified by:
next
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
previous
public boolean previous() throws org.springframework.jdbc.InvalidResultSetAccessException- Specified by:
previous
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
relative
public boolean relative(int rows) throws org.springframework.jdbc.InvalidResultSetAccessException - Specified by:
relative
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-
wasNull
public boolean wasNull() throws org.springframework.jdbc.InvalidResultSetAccessException- Specified by:
wasNull
in interfaceorg.springframework.jdbc.support.rowset.SqlRowSet
- Throws:
org.springframework.jdbc.InvalidResultSetAccessException
-