public final class ClobToStringMapper extends Object implements TypeMapper<Clob,String>
TypeMapper.Category, TypeMapper.Ordering
COMPARATOR
Constructor and Description |
---|
ClobToStringMapper() |
Modifier and Type | Method and Description |
---|---|
Type |
getJavaType(Column column)
Returns a type describing the resulting java type when this mapper is
applied to a database result.
|
String |
getLabel()
Returns the label for this mapper that should appear to the end user.
|
Clob |
toDatabaseType(String value)
Converts a value from the java domain to the database domain.
|
String |
toJavaType(Column column,
Class<?> entityType,
Clob value)
Converts a value from the database domain to the java domain.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getJavaTypeCategory, getOrdering, identity, primitive
public String getLabel()
TypeMapper
getLabel
in interface TypeMapper<Clob,String>
public Type getJavaType(Column column)
TypeMapper
getJavaType
in interface TypeMapper<Clob,String>
column
- the column that is being mappedpublic String toJavaType(Column column, Class<?> entityType, Clob value)
TypeMapper
toJavaType
in interface TypeMapper<Clob,String>
column
- the column that is being mappedentityType
- the entity type that the mapping is forvalue
- the value to convertpublic Clob toDatabaseType(String value)
TypeMapper
toDatabaseType
in interface TypeMapper<Clob,String>
value
- the value to convertCopyright © 2018 Speedment, Inc.. All rights reserved.