ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitriy Setrakyan <dsetrak...@apache.org>
Subject Re: Custom transformer for CacheJdbcPojoStore
Date Mon, 04 Jul 2016 17:02:58 GMT
On Mon, Jul 4, 2016 at 3:49 AM, Alexey Kuznetsov <akuznetsov@gridgain.com>
wrote:

> Dmitry,
>
> > Hm… Why don’t you use reflection to handle such types? If the driver is
> > there, then load the class, otherwise don’t?
> Yes, we could fix this issue with reflection. But I'm afraid that we will
> end up with "dirty" code.
> Also  with custom transformer user will be able to implement its own custom
> logic. For example transform string "YES" to boolean true.
>

The difference here is automatic vs. manual. I agree that we should have a
transformer, but we should still provide automatic mappings for some types
using reflection, as in most cases no additional logic will be required. No?


>
> > Agree. How will the transformer be specified in configuration?
> I'm planning to add getter and setter on CacheJdbcPojoStoreFactory. The
> same way as for example: JdbcTypeHasher.
>
>
> --
> Alexey Kuznetsov
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message