コード例 #1
0
  /** @return a new instance of the jdbcMapper based on the current state of the builder. */
  public final M mapper() {
    Mapper<S, T> mapper = fieldMapperMapperBuilder.mapper();

    if (fieldMapperMapperBuilder.hasJoin()) {
      return newJoinJdbcMapper(mapper);
    } else {
      return newStaticJdbcMapper(mapper);
    }
  }
コード例 #2
0
 @SuppressWarnings("unchecked")
 public final B addMapping(K key, FieldMapperColumnDefinition<K> columnDefinition) {
   fieldMapperMapperBuilder.addMapping(key, columnDefinition);
   return (B) this;
 }
コード例 #3
0
 @SuppressWarnings("unchecked")
 public final B addMapping(K key, ColumnProperty... properties) {
   fieldMapperMapperBuilder.addMapping(key, FieldMapperColumnDefinition.<K>of(properties));
   return (B) this;
 }
コード例 #4
0
 /**
  * append a FieldMapper to the mapping list.
  *
  * @param mapper the field jdbcMapper
  * @return the current builder
  */
 @SuppressWarnings("unchecked")
 public final B addMapper(FieldMapper<S, T> mapper) {
   fieldMapperMapperBuilder.addMapper(mapper);
   return (B) this;
 }