|
Spring Data Solr | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.solr.core.convert.CustomConversions
public class CustomConversions
CustomConversions holds basically a list of Converter that can be used for mapping objects to (
WritingConverter) and from (ReadingConverter) solr representation.
| Constructor Summary | |
|---|---|
CustomConversions()
Create new instance |
|
CustomConversions(List converters)
Create new instance registering given converters |
|
| Method Summary | |
|---|---|
Class<?> |
getCustomWriteTarget(Class<?> source)
find most recent write target for given class |
Class<?> |
getCustomWriteTarget(Class<?> sourceType,
Class<?> targetType)
find most recent write target for given source and targetType |
boolean |
hasCustomReadTarget(Class<?> sourceType,
Class<?> targetType)
check if custom read target available for given types |
boolean |
hasCustomWriteTarget(Class<?> sourceType,
Class<?> targetType)
check if custom write target available for given types |
boolean |
isSimpleType(Class<?> clazz)
|
void |
registerConvertersIn(GenericConversionService conversionService)
Register custom converters within given GenericConversionService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomConversions()
public CustomConversions(List converters)
converters - | Method Detail |
|---|
public void registerConvertersIn(GenericConversionService conversionService)
GenericConversionService
conversionService - must not be nullpublic boolean isSimpleType(Class<?> clazz)
clazz -
public Class<?> getCustomWriteTarget(Class<?> source)
source - must not be null
public Class<?> getCustomWriteTarget(Class<?> sourceType,
Class<?> targetType)
sourceType - targetType -
public boolean hasCustomReadTarget(Class<?> sourceType,
Class<?> targetType)
sourceType - targetType -
public boolean hasCustomWriteTarget(Class<?> sourceType,
Class<?> targetType)
sourceType - targetType -
|
Spring Data Solr | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||