モジュール org.nkjmlab.sorm4j
パッケージ org.nkjmlab.sorm4j.result

インタフェース RowMap

すべてのスーパーインタフェース:
Map<String,Object>
既知の実装クラスのリスト:
BasicRowMap

public interface RowMap extends Map<String,Object>
A instance represents a row in a table. This interface extends Map<String,Object>. The key is represented by canonical case defined by Sorm.
作成者:
yuu_nkjm
  • メソッドの詳細

    • create

      static RowMap create()
    • create

      static RowMap create(Map<String,Object> map)
    • of

      @SafeVarargs static RowMap of(Map.Entry<String,Object>... entries)
    • of

      static RowMap of(String k1, Object v1)
    • of

      static RowMap of(String k1, Object v1, String k2, Object v2)
    • of

      static RowMap of(String k1, Object v1, String k2, Object v2, String k3, Object v3)
    • of

      static RowMap of(String k1, Object v1, String k2, Object v2, String k3, Object v3, String k4, Object v4)
    • of

      static RowMap of(String k1, Object v1, String k2, Object v2, String k3, Object v3, String k4, Object v4, String k5, Object v5)
    • toKey

      static String toKey(String key)
      Key to canonical key
      パラメータ:
      key -
      戻り値:
    • getArray

      <T> T[] getArray(String key, Class<T> componentType)
    • getDouble

      Double getDouble(String key)
    • getFloat

      Float getFloat(String key)
    • getInteger

      Integer getInteger(String key)
    • getLocalDate

      LocalDate getLocalDate(String key)
    • getLocalDateTime

      LocalDateTime getLocalDateTime(String key)
    • getLocalTime

      LocalTime getLocalTime(String key)
    • getLong

      Long getLong(String key)
    • getObject

      Object getObject(String key)
    • getString

      String getString(String key)
    • getObjectList

      List<Object> getObjectList(String... key)
    • getStringList

      List<String> getStringList(String... keys)
    • fromRecord

      static <T extends Record> RowMap fromRecord(T src)
      A RowMap object is created from a record object.
      型パラメータ:
      T -
      パラメータ:
      src -
      戻り値:
    • toRecord

      static <T extends Record> T toRecord(RowMap src, Class<T> toType)
      The object is converted to a record object.
       A key of the map is included in the record components. =>  the record component set the value.
       A key of the map is not included in the record components. => the entry of the map is ignore.
       A record component does not exists in the key set of the map => the record component set as null. if the component is primitive type, an exception is thrown.
       
      型パラメータ:
      T -
      パラメータ:
      src -
      toType -
      戻り値:
    • toRecord

      default <T extends Record> T toRecord(Class<T> toType)
      The object is converted to a record object.
       A key of the map is included in the record components. =>  the record component set the value.
       A key of the map is not included in the record components. => the entry of the map is ignore.
       A record component does not exists in the key set of the map => the record component set as null. if the component is primitive type, an exception is thrown.
       
      型パラメータ:
      T -
      パラメータ:
      toType -
      戻り値: