Package net.sf.jkniv.whinstone.types
Class RegisterType
- java.lang.Object
-
- net.sf.jkniv.whinstone.types.RegisterType
-
public class RegisterType extends Object
A register type ofConvertibledata- Since:
- 0.6.0
- Author:
- Alisson Gomes
-
-
Constructor Summary
Constructors Constructor Description RegisterType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Convertible<Object,Object>getConverter(Class classType)booleanisEmpty()voidregister(Convertible convertible)<T,R>
Convertible<Object,Object>toAttribute(JdbcColumn<R> column, net.sf.jkniv.reflect.beans.ObjectProxy<T> proxy)Retrieve aConvertibleinstance to customize the value of database to class field.<T> Convertible<Object,Object>toJdbc(net.sf.jkniv.reflect.beans.PropertyAccess access, net.sf.jkniv.reflect.beans.ObjectProxy<T> proxy)Retrieve aConvertibleinstance to customize the value of database to class field.
-
-
-
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 aConvertibleinstance to customize the value of database to class field.- Type Parameters:
T- type of object into proxy reference- Parameters:
access- for propertyproxy- of return type from query- Returns:
- A convertible instance if found into class proxy or
NoConverterTypeinstance when the field or method is not annotated.
-
getConverter
public Convertible<Object,Object> getConverter(Class classType)
-
toAttribute
public <T,R> Convertible<Object,Object> toAttribute(JdbcColumn<R> column, net.sf.jkniv.reflect.beans.ObjectProxy<T> proxy)
Retrieve aConvertibleinstance to customize the value of database to class field.- Type Parameters:
T- type of object into proxy referenceR- the result of a query (like aResultSet- Parameters:
column- metadata of itproxy- of return type from query- Returns:
- A convertible instance if found into class proxy or
NoConverterTypeinstance when the field or method is not annotated.
-
isEmpty
public boolean isEmpty()
-
-