public static String buildURI( org.revenj.postgres.PostgresBuffer _sw, gen.model.test.Detail2 instance) throws java.io.IOException { _sw.initBuffer(); String _tmp; org.revenj.postgres.converters.UuidConverter.serializeURI(_sw, instance.getEntityCompositeid()); _sw.addToBuffer('/'); org.revenj.postgres.converters.IntConverter.serializeURI(_sw, instance.getEntityIndex()); _sw.addToBuffer('/'); org.revenj.postgres.converters.IntConverter.serializeURI(_sw, instance.getIndex()); return _sw.bufferToString(); }
public PostgresTuple toExtended(gen.model.test.Detail2 instance) { if (instance == null) return null; PostgresTuple[] items = new PostgresTuple[columnCountExtended]; items[__index__extended_u] = org.revenj.postgres.converters.UrlConverter.toTuple(instance.getU()); items[__index__extended_dd] = org.revenj.postgres.converters.ArrayTuple.create( instance.getDd(), org.revenj.postgres.converters.DoubleConverter::toTuple); items[__index__extended_EntityCompositeid] = org.revenj.postgres.converters.UuidConverter.toTuple(instance.getEntityCompositeid()); items[__index__extended_EntityIndex] = org.revenj.postgres.converters.IntConverter.toTuple(instance.getEntityIndex()); items[__index__extended_Index] = org.revenj.postgres.converters.IntConverter.toTuple(instance.getIndex()); return RecordTuple.from(items); }
public void configure(org.revenj.patterns.ServiceLocator locator) { gen.model.test.Detail2.__configureConverter( readers, __index___u, __index___dd, __index___EntityCompositeid, __index___EntityIndex, __index___Index); gen.model.test.Detail2.__configureConverterExtended( readersExtended, __index__extended_u, __index__extended_dd, __index__extended_EntityCompositeid, __index__extended_EntityIndex, __index__extended_Index); }