Class SimpleEntityFieldDbAdapter<T,​DBT>

    • Constructor Detail

      • SimpleEntityFieldDbAdapter

        public SimpleEntityFieldDbAdapter​(org.jooq.TableField<org.jooq.Record,​DBT> tableField,
                                          ValueConverter<T,​DBT> valueConverter)
    • Method Detail

      • getTableFields

        public java.util.stream.Stream<org.jooq.TableField<org.jooq.Record,​?>> getTableFields()
        Specified by:
        getTableFields in interface EntityFieldDbAdapter<T>
        Returns:
        the table fields this entity field maps to
      • getFromRecord

        public T getFromRecord​(java.util.Iterator<java.lang.Object> valuesIterator)
        Description copied from interface: EntityFieldDbAdapter
        Composes the value of the entity field out of values of individual table fields. The iterator passed to this method is positioned at the value of the first field returned by EntityFieldDbAdapter.getTableFields() and the following values correspond to the rest of the fields in the same order.
        Specified by:
        getFromRecord in interface EntityFieldDbAdapter<T>
        Parameters:
        valuesIterator - iterator positioned at the start of values for EntityFieldDbAdapter.getTableFields()
        Returns:
        the value of entity field composed out of DB values taken from the supplied iterator