APIdia Launch Partner
Top Description Fields Constructors Methods
io.github.spannm.jackcess.impl

public Class RowImpl

extends LinkedHashMap<String, Object>
implements Row
Class Inheritance
All Implemented Interfaces
io.github.spannm.jackcess.Row, java.util.Map
Imports
io.github.spannm.jackcess.DateTimeType, .Row, io.github.spannm.jackcess.complex.ComplexValueForeignKey, io.github.spannm.jackcess.util.OleBlob, .ToStringBuilder, java.math.BigDecimal, java.time.LocalDateTime, java.util.Date, .LinkedHashMap

A row of data as column->value pairs.

Note that the equals and hashCode methods work on the row contents only (i.e. they ignore the id).

Field Summary

Modifier and TypeField and Description
private final RowIdImpl
private static final long

Constructor Summary

AccessConstructor and Description
public
public
RowImpl(RowIdImpl id, int expectedSize)

public
RowImpl(Row row)

Method Summary

Modifier and TypeMethod and Description
public BigDecimal
getBigDecimal(String name)

Implements io.github.spannm.jackcess.Row.getBigDecimal.

Convenience method which gets the value for the row with the given name, casting it to a BigDecimal (DataTypes MONEY, NUMERIC).

public OleBlob
getBlob(String name)

Implements io.github.spannm.jackcess.Row.getBlob.

Convenience method which gets the value for the row with the given name, converting it to an OleBlob (DataTypes OLE).

public Boolean
getBoolean(String name)

Implements io.github.spannm.jackcess.Row.getBoolean.

Convenience method which gets the value for the row with the given name, casting it to a Boolean (DataType BOOLEAN).

public Byte
getByte(String name)

Implements io.github.spannm.jackcess.Row.getByte.

Convenience method which gets the value for the row with the given name, casting it to a Byte (DataType BYTE).

public byte[]
getBytes(String name)

Implements io.github.spannm.jackcess.Row.getBytes.

Convenience method which gets the value for the row with the given name, casting it to a byte[] (DataTypes BINARY, OLE).

public Date
getDate(String name)

Implements io.github.spannm.jackcess.Row.getDate.

Deprecated see DateTimeType for details

Convenience method which gets the value for the row with the given name, casting it to a Date (DataType SHORT_DATE_TIME).

public Double
getDouble(String name)

Implements io.github.spannm.jackcess.Row.getDouble.

Convenience method which gets the value for the row with the given name, casting it to a Double (DataType DOUBLE).

public Float
getFloat(String name)

Implements io.github.spannm.jackcess.Row.getFloat.

Convenience method which gets the value for the row with the given name, casting it to a Float (DataType FLOAT).

public ComplexValueForeignKey
getForeignKey(String name)

Implements io.github.spannm.jackcess.Row.getForeignKey.

Convenience method which gets the value for the row with the given name, casting it to a ComplexValueForeignKey (DataType COMPLEX_TYPE).

public RowIdImpl
getId()

Implements io.github.spannm.jackcess.Row.getId.

Returns the id of this row.

public Integer
getInt(String name)

Implements io.github.spannm.jackcess.Row.getInt.

Convenience method which gets the value for the row with the given name, casting it to a Integer (DataType LONG).

public LocalDateTime
getLocalDateTime(String name)

Implements io.github.spannm.jackcess.Row.getLocalDateTime.

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).

public Short
getShort(String name)

Implements io.github.spannm.jackcess.Row.getShort.

Convenience method which gets the value for the row with the given name, casting it to a Short (DataType INT).

public String
getString(String name)

Implements io.github.spannm.jackcess.Row.getString.

Convenience method which gets the value for the row with the given name, casting it to a String (DataTypes TEXT, MEMO, GUID).

public String
toString()

Overrides java.util.AbstractMap.toString.

Returns a string representation of this map.

Inherited from java.util.LinkedHashMap:
clearcontainsValueentrySetforEachgetgetOrDefaultkeySetnewLinkedHashMapputFirstputLastremoveEldestEntryreplaceAllreversedsequencedEntrySetsequencedKeySetsequencedValuesvalues

Field Detail

idback to summary
private final RowIdImpl id
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.LinkedHashMap.serialVersionUID.

Constructor Detail

RowImplback to summary
public RowImpl(RowIdImpl id)
RowImplback to summary
public RowImpl(RowIdImpl id, int expectedSize)
RowImplback to summary
public RowImpl(Row row)

Method Detail

getBigDecimalback to summary
public BigDecimal getBigDecimal(String name)

Implements io.github.spannm.jackcess.Row.getBigDecimal.

Doc from io.github.spannm.jackcess.Row.getBigDecimal.

Convenience method which gets the value for the row with the given name, casting it to a BigDecimal (DataTypes MONEY, NUMERIC).

Annotations
@Override
getBlobback to summary
public OleBlob getBlob(String name)

Implements io.github.spannm.jackcess.Row.getBlob.

Doc from io.github.spannm.jackcess.Row.getBlob.

Convenience method which gets the value for the row with the given name, converting it to an OleBlob (DataTypes OLE).

Note, the OleBlob should be closed after use.

Annotations
@Override
getBooleanback to summary
public Boolean getBoolean(String name)

Implements io.github.spannm.jackcess.Row.getBoolean.

Doc from io.github.spannm.jackcess.Row.getBoolean.

Convenience method which gets the value for the row with the given name, casting it to a Boolean (DataType BOOLEAN).

Annotations
@Override
getByteback to summary
public Byte getByte(String name)

Implements io.github.spannm.jackcess.Row.getByte.

Doc from io.github.spannm.jackcess.Row.getByte.

Convenience method which gets the value for the row with the given name, casting it to a Byte (DataType BYTE).

Annotations
@Override
getBytesback to summary
public byte[] getBytes(String name)

Implements io.github.spannm.jackcess.Row.getBytes.

Doc from io.github.spannm.jackcess.Row.getBytes.

Convenience method which gets the value for the row with the given name, casting it to a byte[] (DataTypes BINARY, OLE).

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

Implements io.github.spannm.jackcess.Row.getDate.

Doc from io.github.spannm.jackcess.Row.getDate.

Deprecated

see DateTimeType for details

Convenience method which gets the value for the row with the given name, casting it to a Date (DataType SHORT_DATE_TIME).

Annotations
@Override
@Deprecated
getDoubleback to summary
public Double getDouble(String name)

Implements io.github.spannm.jackcess.Row.getDouble.

Doc from io.github.spannm.jackcess.Row.getDouble.

Convenience method which gets the value for the row with the given name, casting it to a Double (DataType DOUBLE).

Annotations
@Override
getFloatback to summary
public Float getFloat(String name)

Implements io.github.spannm.jackcess.Row.getFloat.

Doc from io.github.spannm.jackcess.Row.getFloat.

Convenience method which gets the value for the row with the given name, casting it to a Float (DataType FLOAT).

Annotations
@Override
getForeignKeyback to summary
public ComplexValueForeignKey getForeignKey(String name)

Implements io.github.spannm.jackcess.Row.getForeignKey.

Doc from io.github.spannm.jackcess.Row.getForeignKey.

Convenience method which gets the value for the row with the given name, casting it to a ComplexValueForeignKey (DataType COMPLEX_TYPE).

Annotations
@Override
getIdback to summary
public RowIdImpl getId()

Implements io.github.spannm.jackcess.Row.getId.

Doc from io.github.spannm.jackcess.Row.getId.

Returns the id of this row.

Annotations
@Override
getIntback to summary
public Integer getInt(String name)

Implements io.github.spannm.jackcess.Row.getInt.

Doc from io.github.spannm.jackcess.Row.getInt.

Convenience method which gets the value for the row with the given name, casting it to a Integer (DataType LONG).

Annotations
@Override
getLocalDateTimeback to summary
public LocalDateTime getLocalDateTime(String name)

Implements io.github.spannm.jackcess.Row.getLocalDateTime.

Doc from io.github.spannm.jackcess.Row.getLocalDateTime.

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). This method will only work for Database instances configured for DateTimeType#LOCAL_DATE_TIME.

Annotations
@Override
getShortback to summary
public Short getShort(String name)

Implements io.github.spannm.jackcess.Row.getShort.

Doc from io.github.spannm.jackcess.Row.getShort.

Convenience method which gets the value for the row with the given name, casting it to a Short (DataType INT).

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

Implements io.github.spannm.jackcess.Row.getString.

Doc from io.github.spannm.jackcess.Row.getString.

Convenience method which gets the value for the row with the given name, casting it to a String (DataTypes TEXT, MEMO, GUID).

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.util.AbstractMap.toString.

Doc from java.util.AbstractMap.toString.

Returns a string representation of this map. The string representation consists of a list of key-value mappings in the order returned by the map's entrySet view's iterator, enclosed in braces ("{}"). Adjacent mappings are separated by the characters ", " (comma and space). Each key-value mapping is rendered as the key followed by an equals sign ("=") followed by the associated value. Keys and values are converted to strings as by String#valueOf(Object).

Annotations
@Override