Class RegisterType


  • public class RegisterType
    extends Object
    A register type of Convertible data
    Since:
    0.6.0
    Author:
    Alisson Gomes
    • Constructor Detail

      • RegisterType

        public RegisterType()
    • Method Detail

      • register

        public void register​(Convertible convertible)
      • toJdbc

        public <T> Convertible<Object,​Object> toJdbc​(net.sf.jkniv.reflect.beans.PropertyAccess access,
                                                           net.sf.jkniv.reflect.beans.ObjectProxy<T> proxy)
        Retrieve a Convertible instance to customize the value of database to class field.
        Type Parameters:
        T - type of object into proxy reference
        Parameters:
        access - for property
        proxy - of return type from query
        Returns:
        A convertible instance if found into class proxy or NoConverterType instance when the field or method is not annotated.
      • toAttribute

        public <T,​R> Convertible<Object,​Object> toAttribute​(JdbcColumn<R> column,
                                                                        net.sf.jkniv.reflect.beans.ObjectProxy<T> proxy)
        Retrieve a Convertible instance to customize the value of database to class field.
        Type Parameters:
        T - type of object into proxy reference
        R - the result of a query (like a ResultSet
        Parameters:
        column - metadata of it
        proxy - of return type from query
        Returns:
        A convertible instance if found into class proxy or NoConverterType instance when the field or method is not annotated.
      • isEmpty

        public boolean isEmpty()