Exemplo n.º 1
0
  public static void __configureConverter(
      org.revenj.postgres.ObjectConverter.Reader<Clicked>[] readers,
      int __index____event_id,
      int __index___QueuedAt,
      int __index___ProcessedAt,
      int __index___date,
      int __index___number,
      int __index___bigint,
      int __index___bool,
      int __index___en) {

    readers[__index____event_id] =
        (item, reader, context) -> {
          item.URI = org.revenj.postgres.converters.StringConverter.parse(reader, context, false);
        };
    readers[__index___QueuedAt] =
        (item, reader, context) -> {
          item.QueuedAt =
              org.revenj.postgres.converters.TimestampConverter.parse(reader, context, false);
        };
    readers[__index___ProcessedAt] =
        (item, reader, context) -> {
          item.ProcessedAt =
              org.revenj.postgres.converters.TimestampConverter.parse(reader, context, true);
        };
    readers[__index___date] =
        (item, reader, context) -> {
          item.date = org.revenj.postgres.converters.DateConverter.parse(reader, true);
        };
    readers[__index___number] =
        (item, reader, context) -> {
          item.number = org.revenj.postgres.converters.DecimalConverter.parse(reader, false);
        };
    readers[__index___bigint] =
        (item, reader, context) -> {
          item.bigint = org.revenj.postgres.converters.LongConverter.parseNullable(reader);
        };
    readers[__index___bool] =
        (item, reader, context) -> {
          {
            java.util.List<Boolean> __list =
                org.revenj.postgres.converters.BoolConverter.parseCollection(
                    reader, context, false);
            if (__list != null) item.bool = new java.util.HashSet<Boolean>(__list);
            else item.bool = new java.util.HashSet<Boolean>(4);
          }
          ;
        };
    readers[__index___en] =
        (item, reader, context) -> {
          item.en = gen.model.test.converters.EnConverter.fromReader(reader);
        };
  }
Exemplo n.º 2
0
  public static void __configureConverterExtended(
      org.revenj.postgres.ObjectConverter.Reader<Child>[] readers,
      int __index__extended_version,
      int __index__extended_AuthorID,
      int __index__extended_Index) {

    readers[__index__extended_version] =
        (item, reader, context) -> {
          item.version = org.revenj.postgres.converters.LongConverter.parse(reader);
          return item;
        };
    readers[__index__extended_AuthorID] =
        (item, reader, context) -> {
          item.AuthorID = org.revenj.postgres.converters.IntConverter.parse(reader);
          return item;
        };
    readers[__index__extended_Index] =
        (item, reader, context) -> {
          item.Index = org.revenj.postgres.converters.IntConverter.parse(reader);
          return item;
        };
  }