@@ -101,7 +101,7 @@ public <R> R read(Class<R> type, Row row, @Nullable RowMetadata metadata) {
101
101
return type .cast (row );
102
102
}
103
103
104
- if (getConversions ().hasCustomReadTarget (Row .class , rawType )
104
+ if (getCustomConversions ().hasCustomReadTarget (Row .class , rawType )
105
105
&& getConversionService ().canConvert (Row .class , rawType )) {
106
106
return getConversionService ().convert (row , rawType );
107
107
}
@@ -170,7 +170,7 @@ public void write(Object source, OutboundRow sink) {
170
170
171
171
Class <?> userClass = ClassUtils .getUserClass (source );
172
172
173
- Optional <Class <?>> customTarget = getConversions ().getCustomWriteTarget (userClass , OutboundRow .class );
173
+ Optional <Class <?>> customTarget = getCustomConversions ().getCustomWriteTarget (userClass , OutboundRow .class );
174
174
if (customTarget .isPresent ()) {
175
175
176
176
OutboundRow result = getConversionService ().convert (source , OutboundRow .class );
@@ -212,7 +212,7 @@ private void writeProperties(OutboundRow sink, RelationalPersistentEntity<?> ent
212
212
continue ;
213
213
}
214
214
215
- if (getConversions ().isSimpleType (value .getClass ())) {
215
+ if (getCustomConversions ().isSimpleType (value .getClass ())) {
216
216
writeSimpleInternal (sink , value , isNew , property );
217
217
} else {
218
218
writePropertyInternal (sink , value , isNew , property );
@@ -286,7 +286,7 @@ private List<Object> writeCollectionInternal(Collection<?> source, @Nullable Typ
286
286
287
287
Class <?> elementType = element == null ? null : element .getClass ();
288
288
289
- if (elementType == null || getConversions ().isSimpleType (elementType )) {
289
+ if (elementType == null || getCustomConversions ().isSimpleType (elementType )) {
290
290
collection .add (getPotentiallyConvertedSimpleWrite (element ,
291
291
componentType != null ? componentType .getType () : Object .class ));
292
292
} else if (element instanceof Collection || elementType .isArray ()) {
@@ -306,7 +306,7 @@ private void writeNullInternal(OutboundRow sink, RelationalPersistentProperty pr
306
306
307
307
private Class <?> getPotentiallyConvertedSimpleNullType (Class <?> type ) {
308
308
309
- Optional <Class <?>> customTarget = getConversions ().getCustomWriteTarget (type );
309
+ Optional <Class <?>> customTarget = getCustomConversions ().getCustomWriteTarget (type );
310
310
311
311
if (customTarget .isPresent ()) {
312
312
return customTarget .get ();
@@ -353,7 +353,7 @@ private Object getPotentiallyConvertedSimpleWrite(@Nullable Object value, Class<
353
353
}
354
354
}
355
355
356
- Optional <Class <?>> customTarget = getConversions ().getCustomWriteTarget (value .getClass ());
356
+ Optional <Class <?>> customTarget = getCustomConversions ().getCustomWriteTarget (value .getClass ());
357
357
358
358
if (customTarget .isPresent ()) {
359
359
return getConversionService ().convert (value , customTarget .get ());
@@ -393,7 +393,7 @@ public Object getArrayValue(ArrayColumns arrayColumns, RelationalPersistentPrope
393
393
@ Override
394
394
public Class <?> getTargetType (Class <?> valueType ) {
395
395
396
- Optional <Class <?>> writeTarget = getConversions ().getCustomWriteTarget (valueType );
396
+ Optional <Class <?>> writeTarget = getCustomConversions ().getCustomWriteTarget (valueType );
397
397
398
398
return writeTarget .orElseGet (() -> {
399
399
return Enum .class .isAssignableFrom (valueType ) ? String .class : valueType ;
@@ -402,7 +402,7 @@ public Class<?> getTargetType(Class<?> valueType) {
402
402
403
403
@ Override
404
404
public boolean isSimpleType (Class <?> type ) {
405
- return getConversions ().isSimpleType (type );
405
+ return getCustomConversions ().isSimpleType (type );
406
406
}
407
407
408
408
// ----------------------------------
0 commit comments