Top Description Fields Constructors Methods
com.mysql.cj.xdevapi

public Class RowImpl

extends Object
implements Row
Class Inheritance
All Implemented Interfaces
com.mysql.cj.xdevapi.Row
Imports
java.math.BigDecimal, java.sql.Date, .Time, .Timestamp, java.util.TimeZone, com.mysql.cj.conf.PropertySet, com.mysql.cj.exceptions.DataReadException, com.mysql.cj.protocol.ColumnDefinition, com.mysql.cj.result.BigDecimalValueFactory, .BooleanValueFactory, .ByteValueFactory, .DoubleValueFactory, .IntegerValueFactory, .LongValueFactory, .Row, .SqlDateValueFactory, .SqlTimeValueFactory, .SqlTimestampValueFactory, .StringValueFactory

com.mysql.cj.xdevapi.Row implementation.

Field Summary

Modifier and TypeField and Description
private TimeZone
defaultTimeZone

Default time zone used to create date/time result values.

private ColumnDefinition
private PropertySet
private Row

Constructor Summary

AccessConstructor and Description
public
RowImpl(Row
Row instance provided by c/J core.
row
,
ColumnDefinition
ColumnDefinition object to use for new rows.
metadata
,
TimeZone
TimeZone object representing the default time zone
defaultTimeZone
,
PropertySet pset)

Constructor.

Method Summary

Modifier and TypeMethod and Description
private int

Returns:

field index
fieldNameToIndex
(String
field name
fieldName
)

Map a field name to it's index in the row.

public BigDecimal
getBigDecimal(String
field name
fieldName
)

Implements com.mysql.cj.xdevapi.Row.getBigDecimal.

Retrieve the value for column `fieldName' as a decimal value.

public BigDecimal
getBigDecimal(int
field position
pos
)

Implements com.mysql.cj.xdevapi.Row.getBigDecimal.

Retrieve the value for column at position `pos' (starting at 0) as a decimal value.

public boolean
getBoolean(String
field name
fieldName
)

Implements com.mysql.cj.xdevapi.Row.getBoolean.

Retrieve the value for column `fieldName' as a boolean value.

public boolean
getBoolean(int
field position field position
pos
)

Implements com.mysql.cj.xdevapi.Row.getBoolean.

Retrieve the value for column at position `pos' (starting at 0) as a boolean value.

public byte
getByte(String
field name
fieldName
)

Implements com.mysql.cj.xdevapi.Row.getByte.

Retrieve the value for column `fieldName' as a byte value.

public byte
getByte(int
field position field position
pos
)

Implements com.mysql.cj.xdevapi.Row.getByte.

Retrieve the value for column at position `pos' (starting at 0) as a byte value.

public Date
getDate(String
field name
fieldName
)

Implements com.mysql.cj.xdevapi.Row.getDate.

Retrieve the value for column `fieldName' as a Date value.

public Date
getDate(int
field position field position
pos
)

Implements com.mysql.cj.xdevapi.Row.getDate.

Retrieve the value for column at position `pos' (starting at 0) as a byte value.

public DbDoc
getDbDoc(String
field name
fieldName
)

Implements com.mysql.cj.xdevapi.Row.getDbDoc.

Retrieve the value for column `fieldName' as a DbDoc value.

public DbDoc
getDbDoc(int
field position field position
pos
)

Implements com.mysql.cj.xdevapi.Row.getDbDoc.

Retrieve the value for column at position `pos' (starting at 0) as a DbDoc value.

public double
getDouble(String
field name
fieldName
)

Implements com.mysql.cj.xdevapi.Row.getDouble.

Retrieve the value for column `fieldName' as a double value.

public double
getDouble(int
field position field position
pos
)

Implements com.mysql.cj.xdevapi.Row.getDouble.

Retrieve the value for column at position `pos' (starting at 0) as a double value.

public int
getInt(String
field name
fieldName
)

Implements com.mysql.cj.xdevapi.Row.getInt.

Retrieve the value for column `fieldName' as an integer value.

public int
getInt(int
field position field position
pos
)

Implements com.mysql.cj.xdevapi.Row.getInt.

Retrieve the value for column at position `pos' (starting at 0) as an integer value.

public long
getLong(String
field name
fieldName
)

Implements com.mysql.cj.xdevapi.Row.getLong.

Retrieve the value for column `fieldName' as a long value.

public long
getLong(int
field position
pos
)

Implements com.mysql.cj.xdevapi.Row.getLong.

Retrieve the value for column at position `pos' (starting at 0) as a long value.

public String
getString(String
field name
fieldName
)

Implements com.mysql.cj.xdevapi.Row.getString.

Retrieve the value for column `fieldName' as a string value.

public String
getString(int
field position
pos
)

Implements com.mysql.cj.xdevapi.Row.getString.

Retrieve the value for column at position `pos' (starting at 0) as a string value.

public Time
getTime(String
field name
fieldName
)

Implements com.mysql.cj.xdevapi.Row.getTime.

Retrieve the value for column `fieldName' as a Time value.

public Time
getTime(int
field position
pos
)

Implements com.mysql.cj.xdevapi.Row.getTime.

Retrieve the value for column at position `pos' (starting at 0) as a byte value.

public Timestamp
getTimestamp(String
field name
fieldName
)

Implements com.mysql.cj.xdevapi.Row.getTimestamp.

Retrieve the value for column `fieldName' as a Timestamp value.

public Timestamp
getTimestamp(int
field position
pos
)

Implements com.mysql.cj.xdevapi.Row.getTimestamp.

Retrieve the value for column at position `pos' (starting at 0) as a byte value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultTimeZoneback to summary
private TimeZone defaultTimeZone

Default time zone used to create date/time result values.

metadataback to summary
private ColumnDefinition metadata
psetback to summary
private PropertySet pset
rowback to summary
private Row row

Constructor Detail

RowImplback to summary
public RowImpl(Row row, ColumnDefinition metadata, TimeZone defaultTimeZone, PropertySet pset)

Constructor.

Parameters
row:Row

Row instance provided by c/J core.

metadata:ColumnDefinition

ColumnDefinition object to use for new rows.

defaultTimeZone:TimeZone

TimeZone object representing the default time zone

pset:PropertySet

PropertySet

Method Detail

fieldNameToIndexback to summary
private int fieldNameToIndex(String fieldName)

Map a field name to it's index in the row.

Parameters
fieldName:String

field name

Returns:int

field index

Exceptions
DataReadException:
if the field name is not in the row
getBigDecimalback to summary
public BigDecimal getBigDecimal(String fieldName)

Implements com.mysql.cj.xdevapi.Row.getBigDecimal.

Doc from com.mysql.cj.xdevapi.Row.getBigDecimal.

Retrieve the value for column `fieldName' as a decimal value.

Parameters
fieldName:String

field name

Returns:BigDecimal

value

Annotations
@Override
getBigDecimalback to summary
public BigDecimal getBigDecimal(int pos)

Implements com.mysql.cj.xdevapi.Row.getBigDecimal.

Doc from com.mysql.cj.xdevapi.Row.getBigDecimal.

Retrieve the value for column at position `pos' (starting at 0) as a decimal value.

Parameters
pos:int

field position

Returns:BigDecimal

value

Annotations
@Override
getBooleanback to summary
public boolean getBoolean(String fieldName)

Implements com.mysql.cj.xdevapi.Row.getBoolean.

Doc from com.mysql.cj.xdevapi.Row.getBoolean.

Retrieve the value for column `fieldName' as a boolean value.

Parameters
fieldName:String

field name

Returns:boolean

value

Annotations
@Override
getBooleanback to summary
public boolean getBoolean(int pos)

Implements com.mysql.cj.xdevapi.Row.getBoolean.

Doc from com.mysql.cj.xdevapi.Row.getBoolean.

Retrieve the value for column at position `pos' (starting at 0) as a boolean value.

Parameters
pos:int

field position field position

Returns:boolean

value

Annotations
@Override
getByteback to summary
public byte getByte(String fieldName)

Implements com.mysql.cj.xdevapi.Row.getByte.

Doc from com.mysql.cj.xdevapi.Row.getByte.

Retrieve the value for column `fieldName' as a byte value.

Parameters
fieldName:String

field name

Returns:byte

value

Annotations
@Override
getByteback to summary
public byte getByte(int pos)

Implements com.mysql.cj.xdevapi.Row.getByte.

Doc from com.mysql.cj.xdevapi.Row.getByte.

Retrieve the value for column at position `pos' (starting at 0) as a byte value.

Parameters
pos:int

field position field position

Returns:byte

value

Annotations
@Override
getDateback to summary
public Date getDate(String fieldName)

Implements com.mysql.cj.xdevapi.Row.getDate.

Doc from com.mysql.cj.xdevapi.Row.getDate.

Retrieve the value for column `fieldName' as a Date value.

Parameters
fieldName:String

field name

Returns:Date

value

Annotations
@Override
getDateback to summary
public Date getDate(int pos)

Implements com.mysql.cj.xdevapi.Row.getDate.

Doc from com.mysql.cj.xdevapi.Row.getDate.

Retrieve the value for column at position `pos' (starting at 0) as a byte value.

Parameters
pos:int

field position field position

Returns:Date

value

Annotations
@Override
getDbDocback to summary
public DbDoc getDbDoc(String fieldName)

Implements com.mysql.cj.xdevapi.Row.getDbDoc.

Doc from com.mysql.cj.xdevapi.Row.getDbDoc.

Retrieve the value for column `fieldName' as a DbDoc value.

Parameters
fieldName:String

field name

Returns:DbDoc

value

Annotations
@Override
getDbDocback to summary
public DbDoc getDbDoc(int pos)

Implements com.mysql.cj.xdevapi.Row.getDbDoc.

Doc from com.mysql.cj.xdevapi.Row.getDbDoc.

Retrieve the value for column at position `pos' (starting at 0) as a DbDoc value.

Parameters
pos:int

field position field position

Returns:DbDoc

value

Annotations
@Override
getDoubleback to summary
public double getDouble(String fieldName)

Implements com.mysql.cj.xdevapi.Row.getDouble.

Doc from com.mysql.cj.xdevapi.Row.getDouble.

Retrieve the value for column `fieldName' as a double value.

Parameters
fieldName:String

field name

Returns:double

value

Annotations
@Override
getDoubleback to summary
public double getDouble(int pos)

Implements com.mysql.cj.xdevapi.Row.getDouble.

Doc from com.mysql.cj.xdevapi.Row.getDouble.

Retrieve the value for column at position `pos' (starting at 0) as a double value.

Parameters
pos:int

field position field position

Returns:double

value

Annotations
@Override
getIntback to summary
public int getInt(String fieldName)

Implements com.mysql.cj.xdevapi.Row.getInt.

Doc from com.mysql.cj.xdevapi.Row.getInt.

Retrieve the value for column `fieldName' as an integer value.

Parameters
fieldName:String

field name

Returns:int

value

Annotations
@Override
getIntback to summary
public int getInt(int pos)

Implements com.mysql.cj.xdevapi.Row.getInt.

Doc from com.mysql.cj.xdevapi.Row.getInt.

Retrieve the value for column at position `pos' (starting at 0) as an integer value.

Parameters
pos:int

field position field position

Returns:int

value

Annotations
@Override
getLongback to summary
public long getLong(String fieldName)

Implements com.mysql.cj.xdevapi.Row.getLong.

Doc from com.mysql.cj.xdevapi.Row.getLong.

Retrieve the value for column `fieldName' as a long value.

Parameters
fieldName:String

field name

Returns:long

value

Annotations
@Override
getLongback to summary
public long getLong(int pos)

Implements com.mysql.cj.xdevapi.Row.getLong.

Doc from com.mysql.cj.xdevapi.Row.getLong.

Retrieve the value for column at position `pos' (starting at 0) as a long value.

Parameters
pos:int

field position

Returns:long

value

Annotations
@Override
getStringback to summary
public String getString(String fieldName)

Implements com.mysql.cj.xdevapi.Row.getString.

Doc from com.mysql.cj.xdevapi.Row.getString.

Retrieve the value for column `fieldName' as a string value.

Parameters
fieldName:String

field name

Returns:String

value

Annotations
@Override
getStringback to summary
public String getString(int pos)

Implements com.mysql.cj.xdevapi.Row.getString.

Doc from com.mysql.cj.xdevapi.Row.getString.

Retrieve the value for column at position `pos' (starting at 0) as a string value.

Parameters
pos:int

field position

Returns:String

value

Annotations
@Override
getTimeback to summary
public Time getTime(String fieldName)

Implements com.mysql.cj.xdevapi.Row.getTime.

Doc from com.mysql.cj.xdevapi.Row.getTime.

Retrieve the value for column `fieldName' as a Time value.

Parameters
fieldName:String

field name

Returns:Time

value

Annotations
@Override
getTimeback to summary
public Time getTime(int pos)

Implements com.mysql.cj.xdevapi.Row.getTime.

Doc from com.mysql.cj.xdevapi.Row.getTime.

Retrieve the value for column at position `pos' (starting at 0) as a byte value.

Parameters
pos:int

field position

Returns:Time

value

Annotations
@Override
getTimestampback to summary
public Timestamp getTimestamp(String fieldName)

Implements com.mysql.cj.xdevapi.Row.getTimestamp.

Doc from com.mysql.cj.xdevapi.Row.getTimestamp.

Retrieve the value for column `fieldName' as a Timestamp value.

Parameters
fieldName:String

field name

Returns:Timestamp

value

Annotations
@Override
getTimestampback to summary
public Timestamp getTimestamp(int pos)

Implements com.mysql.cj.xdevapi.Row.getTimestamp.

Doc from com.mysql.cj.xdevapi.Row.getTimestamp.

Retrieve the value for column at position `pos' (starting at 0) as a byte value.

Parameters
pos:int

field position

Returns:Timestamp

value

Annotations
@Override