Package com.mysql.cj.xdevapi
Interface Row
- All Known Implementing Classes:
RowImpl
public interface Row
A row element returned from a SELECT query.
-
Method Summary
Modifier and Type Method Description java.math.BigDecimalgetBigDecimal(int pos)Retrieve the value for column at position `pos' (starting at 0) as a decimal value.java.math.BigDecimalgetBigDecimal(java.lang.String fieldName)Retrieve the value for column `fieldName' as a decimal value.booleangetBoolean(int pos)Retrieve the value for column at position `pos' (starting at 0) as a boolean value.booleangetBoolean(java.lang.String fieldName)Retrieve the value for column `fieldName' as a boolean value.bytegetByte(int pos)Retrieve the value for column at position `pos' (starting at 0) as a byte value.bytegetByte(java.lang.String fieldName)Retrieve the value for column `fieldName' as a byte value.java.sql.DategetDate(int pos)Retrieve the value for column at position `pos' (starting at 0) as a byte value.java.sql.DategetDate(java.lang.String fieldName)Retrieve the value for column `fieldName' as aDatevalue.DbDocgetDbDoc(int pos)Retrieve the value for column at position `pos' (starting at 0) as a DbDoc value.DbDocgetDbDoc(java.lang.String fieldName)Retrieve the value for column `fieldName' as a DbDoc value.doublegetDouble(int pos)Retrieve the value for column at position `pos' (starting at 0) as a double value.doublegetDouble(java.lang.String fieldName)Retrieve the value for column `fieldName' as a double value.intgetInt(int pos)Retrieve the value for column at position `pos' (starting at 0) as an integer value.intgetInt(java.lang.String fieldName)Retrieve the value for column `fieldName' as an integer value.longgetLong(int pos)Retrieve the value for column at position `pos' (starting at 0) as a long value.longgetLong(java.lang.String fieldName)Retrieve the value for column `fieldName' as a long value.java.lang.StringgetString(int pos)Retrieve the value for column at position `pos' (starting at 0) as a string value.java.lang.StringgetString(java.lang.String fieldName)Retrieve the value for column `fieldName' as a string value.java.sql.TimegetTime(int pos)Retrieve the value for column at position `pos' (starting at 0) as a byte value.java.sql.TimegetTime(java.lang.String fieldName)Retrieve the value for column `fieldName' as aTimevalue.java.sql.TimestampgetTimestamp(int pos)Retrieve the value for column at position `pos' (starting at 0) as a byte value.java.sql.TimestampgetTimestamp(java.lang.String fieldName)Retrieve the value for column `fieldName' as aTimestampvalue.
-
Method Details
-
getBigDecimal
java.math.BigDecimal getBigDecimal(java.lang.String fieldName)Retrieve the value for column `fieldName' as a decimal value.- Parameters:
fieldName- field name- Returns:
- value
-
getBigDecimal
java.math.BigDecimal getBigDecimal(int pos)Retrieve the value for column at position `pos' (starting at 0) as a decimal value.- Parameters:
pos- field position- Returns:
- value
-
getBoolean
boolean getBoolean(java.lang.String fieldName)Retrieve the value for column `fieldName' as a boolean value.- Parameters:
fieldName- field name- Returns:
- value
-
getBoolean
boolean getBoolean(int pos)Retrieve the value for column at position `pos' (starting at 0) as a boolean value.- Parameters:
pos- field position field position- Returns:
- value
-
getByte
byte getByte(java.lang.String fieldName)Retrieve the value for column `fieldName' as a byte value.- Parameters:
fieldName- field name- Returns:
- value
-
getByte
byte getByte(int pos)Retrieve the value for column at position `pos' (starting at 0) as a byte value.- Parameters:
pos- field position field position- Returns:
- value
-
getDate
java.sql.Date getDate(java.lang.String fieldName)Retrieve the value for column `fieldName' as aDatevalue.- Parameters:
fieldName- field name- Returns:
- value
-
getDate
java.sql.Date getDate(int pos)Retrieve the value for column at position `pos' (starting at 0) as a byte value.- Parameters:
pos- field position field position- Returns:
- value
-
getDbDoc
Retrieve the value for column `fieldName' as a DbDoc value.- Parameters:
fieldName- field name- Returns:
- value
-
getDbDoc
Retrieve the value for column at position `pos' (starting at 0) as a DbDoc value.- Parameters:
pos- field position field position- Returns:
- value
-
getDouble
double getDouble(java.lang.String fieldName)Retrieve the value for column `fieldName' as a double value.- Parameters:
fieldName- field name- Returns:
- value
-
getDouble
double getDouble(int pos)Retrieve the value for column at position `pos' (starting at 0) as a double value.- Parameters:
pos- field position field position- Returns:
- value
-
getInt
int getInt(java.lang.String fieldName)Retrieve the value for column `fieldName' as an integer value.- Parameters:
fieldName- field name- Returns:
- value
-
getInt
int getInt(int pos)Retrieve the value for column at position `pos' (starting at 0) as an integer value.- Parameters:
pos- field position field position- Returns:
- value
-
getLong
long getLong(java.lang.String fieldName)Retrieve the value for column `fieldName' as a long value.- Parameters:
fieldName- field name- Returns:
- value
-
getLong
long getLong(int pos)Retrieve the value for column at position `pos' (starting at 0) as a long value.- Parameters:
pos- field position- Returns:
- value
-
getString
java.lang.String getString(java.lang.String fieldName)Retrieve the value for column `fieldName' as a string value.- Parameters:
fieldName- field name- Returns:
- value
-
getString
java.lang.String getString(int pos)Retrieve the value for column at position `pos' (starting at 0) as a string value.- Parameters:
pos- field position- Returns:
- value
-
getTime
java.sql.Time getTime(java.lang.String fieldName)Retrieve the value for column `fieldName' as aTimevalue.- Parameters:
fieldName- field name- Returns:
- value
-
getTime
java.sql.Time getTime(int pos)Retrieve the value for column at position `pos' (starting at 0) as a byte value.- Parameters:
pos- field position- Returns:
- value
-
getTimestamp
java.sql.Timestamp getTimestamp(java.lang.String fieldName)Retrieve the value for column `fieldName' as aTimestampvalue.- Parameters:
fieldName- field name- Returns:
- value
-
getTimestamp
java.sql.Timestamp getTimestamp(int pos)Retrieve the value for column at position `pos' (starting at 0) as a byte value.- Parameters:
pos- field position- Returns:
- value
-