Class RowImpl
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<String,Object>
-
- com.healthmarketscience.jackcess.impl.RowImpl
-
public class RowImpl extends LinkedHashMap<String,Object> implements Row
A row of data as column->value pairs.Note that the
AbstractMap.equals(java.lang.Object)andAbstractMap.hashCode()methods work on the row contents only (i.e. they ignore the id).- Author:
- James Ahlborn
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalgetBigDecimal(String name)Convenience method which gets the value for the row with the given name, casting it to a BigDecimal (DataTypes MONEY, NUMERIC).OleBlobgetBlob(String name)Convenience method which gets the value for the row with the given name, converting it to anOleBlob(DataTypes OLE).BooleangetBoolean(String name)Convenience method which gets the value for the row with the given name, casting it to a Boolean (DataType BOOLEAN).BytegetByte(String name)Convenience method which gets the value for the row with the given name, casting it to a Byte (DataType BYTE).byte[]getBytes(String name)Convenience method which gets the value for the row with the given name, casting it to a byte[] (DataTypes BINARY, OLE).DategetDate(String name)Convenience method which gets the value for the row with the given name, casting it to a Date (DataType SHORT_DATE_TIME).DoublegetDouble(String name)Convenience method which gets the value for the row with the given name, casting it to a Double (DataType DOUBLE).FloatgetFloat(String name)Convenience method which gets the value for the row with the given name, casting it to a Float (DataType FLOAT).ComplexValueForeignKeygetForeignKey(String name)Convenience method which gets the value for the row with the given name, casting it to aComplexValueForeignKey(DataType COMPLEX_TYPE).RowIdImplgetId()IntegergetInt(String name)Convenience method which gets the value for the row with the given name, casting it to a Integer (DataType LONG).LocalDateTimegetLocalDateTime(String name)Convenience method which gets the value for the row with the given name, casting it to a LocalDateTime (DataType SHORT_DATE_TIME or EXT_DATE_TIME).ShortgetShort(String name)Convenience method which gets the value for the row with the given name, casting it to a Short (DataType INT).StringgetString(String name)Convenience method which gets the value for the row with the given name, casting it to a String (DataTypes TEXT, MEMO, GUID).StringtoString()-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from class java.util.AbstractMap
equals, hashCode
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
getString
public String getString(String name)
Description copied from interface:RowConvenience method which gets the value for the row with the given name, casting it to a String (DataTypes TEXT, MEMO, GUID).
-
getBoolean
public Boolean getBoolean(String name)
Description copied from interface:RowConvenience method which gets the value for the row with the given name, casting it to a Boolean (DataType BOOLEAN).- Specified by:
getBooleanin interfaceRow
-
getByte
public Byte getByte(String name)
Description copied from interface:RowConvenience method which gets the value for the row with the given name, casting it to a Byte (DataType BYTE).
-
getShort
public Short getShort(String name)
Description copied from interface:RowConvenience method which gets the value for the row with the given name, casting it to a Short (DataType INT).
-
getInt
public Integer getInt(String name)
Description copied from interface:RowConvenience method which gets the value for the row with the given name, casting it to a Integer (DataType LONG).
-
getBigDecimal
public BigDecimal getBigDecimal(String name)
Description copied from interface:RowConvenience method which gets the value for the row with the given name, casting it to a BigDecimal (DataTypes MONEY, NUMERIC).- Specified by:
getBigDecimalin interfaceRow
-
getFloat
public Float getFloat(String name)
Description copied from interface:RowConvenience method which gets the value for the row with the given name, casting it to a Float (DataType FLOAT).
-
getDouble
public Double getDouble(String name)
Description copied from interface:RowConvenience method which gets the value for the row with the given name, casting it to a Double (DataType DOUBLE).
-
getDate
public Date getDate(String name)
Description copied from interface:RowConvenience method which gets the value for the row with the given name, casting it to a Date (DataType SHORT_DATE_TIME).
-
getLocalDateTime
public LocalDateTime getLocalDateTime(String name)
Description copied from interface:RowConvenience method which gets the value for the row with the given name, casting it to a LocalDateTime (DataType SHORT_DATE_TIME or EXT_DATE_TIME). This method will only work for Database instances configured forDateTimeType.LOCAL_DATE_TIME.- Specified by:
getLocalDateTimein interfaceRow
-
getBytes
public byte[] getBytes(String name)
Description copied from interface:RowConvenience method which gets the value for the row with the given name, casting it to a byte[] (DataTypes BINARY, OLE).
-
getForeignKey
public ComplexValueForeignKey getForeignKey(String name)
Description copied from interface:RowConvenience method which gets the value for the row with the given name, casting it to aComplexValueForeignKey(DataType COMPLEX_TYPE).- Specified by:
getForeignKeyin interfaceRow
-
getBlob
public OleBlob getBlob(String name)
Description copied from interface:RowConvenience method which gets the value for the row with the given name, converting it to anOleBlob(DataTypes OLE).Note, the OleBlob should be closed after use.
-
toString
public String toString()
- Overrides:
toStringin classAbstractMap<String,Object>
-
-