Package net.anwiba.commons.jdbc.result
Class ResultSetToResultAdapter
- java.lang.Object
-
- net.anwiba.commons.jdbc.result.ResultSetToResultAdapter
-
-
Constructor Summary
Constructors Constructor Description ResultSetToResultAdapter(java.sql.ResultSet resultSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.ArraygetArray(int columnIndex)java.sql.ArraygetArray(java.lang.String columnName)java.io.InputStreamgetAsciiStream(int columnIndex)java.io.InputStreamgetBinaryStream(int columnIndex)java.lang.BooleangetBoolean(int columnIndex)booleangetBoolean(int columnIndex, boolean nullValue)java.lang.BytegetByte(int columnIndex)bytegetByte(int columnIndex, byte nullValue)byte[]getBytes(int columnIndex)java.util.List<java.lang.String>getColumnNames()java.sql.DategetDate(int columnIndex)java.lang.DoublegetDouble(int columnIndex)doublegetDouble(int columnIndex, double nullValue)java.lang.FloatgetFloat(int columnIndex)floatgetFloat(int columnIndex, float nullValue)java.lang.IntegergetInteger(int columnIndex)intgetInteger(int columnIndex, int nullValue)java.lang.LonggetLong(int columnIndex)longgetLong(int columnIndex, long nullValue)intgetNumberOfValues()java.lang.ObjectgetObject(int columnIndex)java.lang.ObjectgetObject(java.lang.String columnName)intgetRow()java.lang.ShortgetShort(int columnIndex)shortgetShort(int columnIndex, short nullValue)java.lang.StringgetString(int columnIndex)java.lang.StringgetString(java.lang.String columnName)java.sql.TimegetTime(int columnIndex)java.sql.TimestampgetTimestamp(int columnIndex)booleanhasColumn(java.lang.String columnName)
-
-
-
Method Detail
-
getRow
public int getRow() throws java.sql.SQLException
-
getString
public java.lang.String getString(int columnIndex) throws java.sql.SQLException
-
getString
public java.lang.String getString(java.lang.String columnName) throws java.sql.SQLException
-
getBoolean
public java.lang.Boolean getBoolean(int columnIndex) throws java.sql.SQLException- Specified by:
getBooleanin interfaceIResult- Throws:
java.sql.SQLException
-
getBoolean
public boolean getBoolean(int columnIndex, boolean nullValue) throws java.sql.SQLException- Specified by:
getBooleanin interfaceIResult- Throws:
java.sql.SQLException
-
getByte
public java.lang.Byte getByte(int columnIndex) throws java.sql.SQLException
-
getByte
public byte getByte(int columnIndex, byte nullValue) throws java.sql.SQLException
-
getShort
public java.lang.Short getShort(int columnIndex) throws java.sql.SQLException
-
getShort
public short getShort(int columnIndex, short nullValue) throws java.sql.SQLException
-
getInteger
public java.lang.Integer getInteger(int columnIndex) throws java.sql.SQLException- Specified by:
getIntegerin interfaceIResult- Throws:
java.sql.SQLException
-
getInteger
public int getInteger(int columnIndex, int nullValue) throws java.sql.SQLException- Specified by:
getIntegerin interfaceIResult- Throws:
java.sql.SQLException
-
getLong
public java.lang.Long getLong(int columnIndex) throws java.sql.SQLException
-
getLong
public long getLong(int columnIndex, long nullValue) throws java.sql.SQLException
-
getFloat
public java.lang.Float getFloat(int columnIndex) throws java.sql.SQLException
-
getFloat
public float getFloat(int columnIndex, float nullValue) throws java.sql.SQLException
-
getDouble
public java.lang.Double getDouble(int columnIndex) throws java.sql.SQLException
-
getDouble
public double getDouble(int columnIndex, double nullValue) throws java.sql.SQLException
-
getBytes
public byte[] getBytes(int columnIndex) throws java.sql.SQLException
-
getDate
public java.sql.Date getDate(int columnIndex) throws java.sql.SQLException
-
getTime
public java.sql.Time getTime(int columnIndex) throws java.sql.SQLException
-
getTimestamp
public java.sql.Timestamp getTimestamp(int columnIndex) throws java.sql.SQLException- Specified by:
getTimestampin interfaceIResult- Throws:
java.sql.SQLException
-
getAsciiStream
public java.io.InputStream getAsciiStream(int columnIndex) throws java.sql.SQLException- Specified by:
getAsciiStreamin interfaceIResult- Throws:
java.sql.SQLException
-
getBinaryStream
public java.io.InputStream getBinaryStream(int columnIndex) throws java.sql.SQLException- Specified by:
getBinaryStreamin interfaceIResult- Throws:
java.sql.SQLException
-
getObject
public java.lang.Object getObject(int columnIndex) throws java.sql.SQLException
-
getObject
public java.lang.Object getObject(java.lang.String columnName) throws java.sql.SQLException
-
getArray
public java.sql.Array getArray(int columnIndex) throws java.sql.SQLException
-
getArray
public java.sql.Array getArray(java.lang.String columnName) throws java.sql.SQLException
-
getNumberOfValues
public int getNumberOfValues() throws java.sql.SQLException- Specified by:
getNumberOfValuesin interfaceIResult- Throws:
java.sql.SQLException
-
getColumnNames
public java.util.List<java.lang.String> getColumnNames() throws java.sql.SQLException- Specified by:
getColumnNamesin interfaceIResult- Throws:
java.sql.SQLException
-
-