Package net.sf.jkniv.whinstone.types
Class NoConverterType
- java.lang.Object
-
- net.sf.jkniv.whinstone.types.NoConverterType
-
- All Implemented Interfaces:
Convertible<Object,Object>
public class NoConverterType extends Object implements Convertible<Object,Object>
No conversion is done.- Since:
- 0.6.0
- Author:
- Alisson Gomes
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnTypegetColumnType()static Convertible<Object,Object>getInstance()Class<Object>getType()ObjecttoAttribute(Object jdbc)Convert the jdbc value to attribute format or typeObjecttoJdbc(Object attribute)Convert attribute to jdbc format or type
-
-
-
Method Detail
-
getInstance
public static Convertible<Object,Object> getInstance()
-
toJdbc
public Object toJdbc(Object attribute)
Description copied from interface:ConvertibleConvert attribute to jdbc format or type- Specified by:
toJdbcin interfaceConvertible<Object,Object>- Parameters:
attribute- the value of to be converted- Returns:
- the value to be stored for jdbc driver
-
toAttribute
public Object toAttribute(Object jdbc)
Description copied from interface:ConvertibleConvert the jdbc value to attribute format or type- Specified by:
toAttributein interfaceConvertible<Object,Object>- Parameters:
jdbc- the value stored at database- Returns:
- the value of attribute converted
-
getType
public Class<Object> getType()
- Specified by:
getTypein interfaceConvertible<Object,Object>
-
getColumnType
public ColumnType getColumnType()
- Specified by:
getColumnTypein interfaceConvertible<Object,Object>
-
-