Package com.mysql.cj.xdevapi
Class RowImpl
java.lang.Object
com.mysql.cj.xdevapi.RowImpl
- All Implemented Interfaces:
Row
public class RowImpl extends java.lang.Object implements Row
Row
implementation.-
Constructor Summary
Constructors Constructor Description RowImpl(Row row, ColumnDefinition metadata, java.util.TimeZone defaultTimeZone, PropertySet pset)
Constructor. -
Method Summary
Modifier and Type Method Description java.math.BigDecimal
getBigDecimal(int pos)
Retrieve the value for column at position `pos' (starting at 0) as a decimal value.java.math.BigDecimal
getBigDecimal(java.lang.String fieldName)
Retrieve the value for column `fieldName' as a decimal value.boolean
getBoolean(int pos)
Retrieve the value for column at position `pos' (starting at 0) as a boolean value.boolean
getBoolean(java.lang.String fieldName)
Retrieve the value for column `fieldName' as a boolean value.byte
getByte(int pos)
Retrieve the value for column at position `pos' (starting at 0) as a byte value.byte
getByte(java.lang.String fieldName)
Retrieve the value for column `fieldName' as a byte value.java.sql.Date
getDate(int pos)
Retrieve the value for column at position `pos' (starting at 0) as a byte value.java.sql.Date
getDate(java.lang.String fieldName)
Retrieve the value for column `fieldName' as aDate
value.DbDoc
getDbDoc(int pos)
Retrieve the value for column at position `pos' (starting at 0) as a DbDoc value.DbDoc
getDbDoc(java.lang.String fieldName)
Retrieve the value for column `fieldName' as a DbDoc value.double
getDouble(int pos)
Retrieve the value for column at position `pos' (starting at 0) as a double value.double
getDouble(java.lang.String fieldName)
Retrieve the value for column `fieldName' as a double value.int
getInt(int pos)
Retrieve the value for column at position `pos' (starting at 0) as an integer value.int
getInt(java.lang.String fieldName)
Retrieve the value for column `fieldName' as an integer value.long
getLong(int pos)
Retrieve the value for column at position `pos' (starting at 0) as a long value.long
getLong(java.lang.String fieldName)
Retrieve the value for column `fieldName' as a long value.java.lang.String
getString(int pos)
Retrieve the value for column at position `pos' (starting at 0) as a string value.java.lang.String
getString(java.lang.String fieldName)
Retrieve the value for column `fieldName' as a string value.java.sql.Time
getTime(int pos)
Retrieve the value for column at position `pos' (starting at 0) as a byte value.java.sql.Time
getTime(java.lang.String fieldName)
Retrieve the value for column `fieldName' as aTime
value.java.sql.Timestamp
getTimestamp(int pos)
Retrieve the value for column at position `pos' (starting at 0) as a byte value.java.sql.Timestamp
getTimestamp(java.lang.String fieldName)
Retrieve the value for column `fieldName' as aTimestamp
value.
-
Constructor Details
-
RowImpl
public RowImpl(Row row, ColumnDefinition metadata, java.util.TimeZone defaultTimeZone, PropertySet pset)Constructor.- Parameters:
row
-Row
instance provided by c/J core.metadata
-ColumnDefinition
object to use for new rows.defaultTimeZone
-TimeZone
object representing the default time zonepset
-PropertySet
-
-
Method Details
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(java.lang.String fieldName)Description copied from interface:Row
Retrieve the value for column `fieldName' as a decimal value.- Specified by:
getBigDecimal
in interfaceRow
- Parameters:
fieldName
- field name- Returns:
- value
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(int pos)Description copied from interface:Row
Retrieve the value for column at position `pos' (starting at 0) as a decimal value.- Specified by:
getBigDecimal
in interfaceRow
- Parameters:
pos
- field position- Returns:
- value
-
getBoolean
public boolean getBoolean(java.lang.String fieldName)Description copied from interface:Row
Retrieve the value for column `fieldName' as a boolean value.- Specified by:
getBoolean
in interfaceRow
- Parameters:
fieldName
- field name- Returns:
- value
-
getBoolean
public boolean getBoolean(int pos)Description copied from interface:Row
Retrieve the value for column at position `pos' (starting at 0) as a boolean value.- Specified by:
getBoolean
in interfaceRow
- Parameters:
pos
- field position field position- Returns:
- value
-
getByte
public byte getByte(java.lang.String fieldName)Description copied from interface:Row
Retrieve the value for column `fieldName' as a byte value. -
getByte
public byte getByte(int pos)Description copied from interface:Row
Retrieve the value for column at position `pos' (starting at 0) as a byte value. -
getDate
public java.sql.Date getDate(java.lang.String fieldName)Description copied from interface:Row
Retrieve the value for column `fieldName' as aDate
value. -
getDate
public java.sql.Date getDate(int pos)Description copied from interface:Row
Retrieve the value for column at position `pos' (starting at 0) as a byte value. -
getDbDoc
Description copied from interface:Row
Retrieve the value for column `fieldName' as a DbDoc value. -
getDbDoc
Description copied from interface:Row
Retrieve the value for column at position `pos' (starting at 0) as a DbDoc value. -
getDouble
public double getDouble(java.lang.String fieldName)Description copied from interface:Row
Retrieve the value for column `fieldName' as a double value. -
getDouble
public double getDouble(int pos)Description copied from interface:Row
Retrieve the value for column at position `pos' (starting at 0) as a double value. -
getInt
public int getInt(java.lang.String fieldName)Description copied from interface:Row
Retrieve the value for column `fieldName' as an integer value. -
getInt
public int getInt(int pos)Description copied from interface:Row
Retrieve the value for column at position `pos' (starting at 0) as an integer value. -
getLong
public long getLong(java.lang.String fieldName)Description copied from interface:Row
Retrieve the value for column `fieldName' as a long value. -
getLong
public long getLong(int pos)Description copied from interface:Row
Retrieve the value for column at position `pos' (starting at 0) as a long value. -
getString
public java.lang.String getString(java.lang.String fieldName)Description copied from interface:Row
Retrieve the value for column `fieldName' as a string value. -
getString
public java.lang.String getString(int pos)Description copied from interface:Row
Retrieve the value for column at position `pos' (starting at 0) as a string value. -
getTime
public java.sql.Time getTime(java.lang.String fieldName)Description copied from interface:Row
Retrieve the value for column `fieldName' as aTime
value. -
getTime
public java.sql.Time getTime(int pos)Description copied from interface:Row
Retrieve the value for column at position `pos' (starting at 0) as a byte value. -
getTimestamp
public java.sql.Timestamp getTimestamp(java.lang.String fieldName)Description copied from interface:Row
Retrieve the value for column `fieldName' as aTimestamp
value.- Specified by:
getTimestamp
in interfaceRow
- Parameters:
fieldName
- field name- Returns:
- value
-
getTimestamp
public java.sql.Timestamp getTimestamp(int pos)Description copied from interface:Row
Retrieve the value for column at position `pos' (starting at 0) as a byte value.- Specified by:
getTimestamp
in interfaceRow
- Parameters:
pos
- field position- Returns:
- value
-