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.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.
-
Constructor Details
-
RowImpl
public RowImpl(Row row, ColumnDefinition metadata, java.util.TimeZone defaultTimeZone, PropertySet pset)Constructor.- Parameters:
row-Rowinstance provided by c/J core.metadata-ColumnDefinitionobject to use for new rows.defaultTimeZone-TimeZoneobject representing the default time zonepset-PropertySet
-
-
Method Details
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(java.lang.String fieldName)Description copied from interface:RowRetrieve the value for column `fieldName' as a decimal value.- Specified by:
getBigDecimalin interfaceRow- Parameters:
fieldName- field name- Returns:
- value
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(int pos)Description copied from interface:RowRetrieve the value for column at position `pos' (starting at 0) as a decimal value.- Specified by:
getBigDecimalin interfaceRow- Parameters:
pos- field position- Returns:
- value
-
getBoolean
public boolean getBoolean(java.lang.String fieldName)Description copied from interface:RowRetrieve the value for column `fieldName' as a boolean value.- Specified by:
getBooleanin interfaceRow- Parameters:
fieldName- field name- Returns:
- value
-
getBoolean
public boolean getBoolean(int pos)Description copied from interface:RowRetrieve the value for column at position `pos' (starting at 0) as a boolean value.- Specified by:
getBooleanin interfaceRow- Parameters:
pos- field position field position- Returns:
- value
-
getByte
public byte getByte(java.lang.String fieldName)Description copied from interface:RowRetrieve the value for column `fieldName' as a byte value. -
getByte
public byte getByte(int pos)Description copied from interface:RowRetrieve 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:RowRetrieve the value for column `fieldName' as aDatevalue. -
getDate
public java.sql.Date getDate(int pos)Description copied from interface:RowRetrieve the value for column at position `pos' (starting at 0) as a byte value. -
getDbDoc
Description copied from interface:RowRetrieve the value for column `fieldName' as a DbDoc value. -
getDbDoc
Description copied from interface:RowRetrieve 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:RowRetrieve the value for column `fieldName' as a double value. -
getDouble
public double getDouble(int pos)Description copied from interface:RowRetrieve 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:RowRetrieve the value for column `fieldName' as an integer value. -
getInt
public int getInt(int pos)Description copied from interface:RowRetrieve 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:RowRetrieve the value for column `fieldName' as a long value. -
getLong
public long getLong(int pos)Description copied from interface:RowRetrieve 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:RowRetrieve the value for column `fieldName' as a string value. -
getString
public java.lang.String getString(int pos)Description copied from interface:RowRetrieve 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:RowRetrieve the value for column `fieldName' as aTimevalue. -
getTime
public java.sql.Time getTime(int pos)Description copied from interface:RowRetrieve 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:RowRetrieve the value for column `fieldName' as aTimestampvalue.- Specified by:
getTimestampin interfaceRow- Parameters:
fieldName- field name- Returns:
- value
-
getTimestamp
public java.sql.Timestamp getTimestamp(int pos)Description copied from interface:RowRetrieve the value for column at position `pos' (starting at 0) as a byte value.- Specified by:
getTimestampin interfaceRow- Parameters:
pos- field position- Returns:
- value
-