public class RowImpl extends LinkedHashMap<String,Object> implements Row
Note that the AbstractMap.equals(java.lang.Object)
and AbstractMap.hashCode()
methods work on the row
contents only (i.e. they ignore the id).
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
RowImpl(Row row) |
RowImpl(RowIdImpl id) |
RowImpl(RowIdImpl id,
int expectedSize) |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
getBigDecimal(String name)
Convenience method which gets the value for the row with the given name,
casting it to a BigDecimal (DataTypes MONEY, NUMERIC).
|
OleBlob |
getBlob(String name)
Convenience method which gets the value for the row with the given name,
converting it to an
OleBlob (DataTypes OLE). |
Boolean |
getBoolean(String name)
Convenience method which gets the value for the row with the given name,
casting it to a Boolean (DataType BOOLEAN).
|
Byte |
getByte(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).
|
Date |
getDate(String name)
Convenience method which gets the value for the row with the given name,
casting it to a Date (DataType SHORT_DATE_TIME).
|
Double |
getDouble(String name)
Convenience method which gets the value for the row with the given name,
casting it to a Double (DataType DOUBLE).
|
Float |
getFloat(String name)
Convenience method which gets the value for the row with the given name,
casting it to a Float (DataType FLOAT).
|
ComplexValueForeignKey |
getForeignKey(String name)
Convenience method which gets the value for the row with the given name,
casting it to a
ComplexValueForeignKey (DataType COMPLEX_TYPE). |
RowIdImpl |
getId() |
Integer |
getInt(String name)
Convenience method which gets the value for the row with the given name,
casting it to a Integer (DataType LONG).
|
LocalDateTime |
getLocalDateTime(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).
|
Short |
getShort(String name)
Convenience method which gets the value for the row with the given name,
casting it to a Short (DataType INT).
|
String |
getString(String name)
Convenience method which gets the value for the row with the given name,
casting it to a String (DataTypes TEXT, MEMO, GUID).
|
String |
toString() |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode
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
public RowImpl(RowIdImpl id)
public RowImpl(RowIdImpl id, int expectedSize)
public RowImpl(Row row)
public String getString(String name)
Row
public Boolean getBoolean(String name)
Row
getBoolean
in interface Row
public Byte getByte(String name)
Row
public Short getShort(String name)
Row
public Integer getInt(String name)
Row
public BigDecimal getBigDecimal(String name)
Row
getBigDecimal
in interface Row
public Float getFloat(String name)
Row
public Double getDouble(String name)
Row
public Date getDate(String name)
Row
public LocalDateTime getLocalDateTime(String name)
Row
DateTimeType.LOCAL_DATE_TIME
.getLocalDateTime
in interface Row
public byte[] getBytes(String name)
Row
public ComplexValueForeignKey getForeignKey(String name)
Row
ComplexValueForeignKey
(DataType COMPLEX_TYPE).getForeignKey
in interface Row
public OleBlob getBlob(String name) throws IOException
Row
OleBlob
(DataTypes OLE).
Note, the OleBlob should be closed after use.
getBlob
in interface Row
IOException
public String toString()
toString
in class AbstractMap<String,Object>
Copyright © 2005–2024 OpenHMS. All rights reserved.