Package org.springframework.data.mapping
Class AccessOptions.GetOptions
java.lang.Object
org.springframework.data.mapping.AccessOptions.GetOptions
- Enclosing class:
- AccessOptions
Access options for getting values for property paths.
- Author:
- Oliver Drotbohm
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumHow to handle null values during aPersistentPropertyPathtraversal.
- 
Constructor SummaryConstructorsConstructorDescriptionGetOptions(Map<PersistentProperty<?>, Function<Object, Object>> handlers, AccessOptions.GetOptions.GetNulls nullValues) 
- 
Method SummaryModifier and TypeMethodDescriptionregisterCollectionHandler(PersistentProperty<?> property, Function<? super Collection<?>, Object> handler) Registers aFunctionto handleCollectionvalues for the given property.registerHandler(PersistentProperty<?> property, Class<T> type, Function<? super T, Object> handler) Registers the givenFunctionto post-process values obtained for the givenPersistentPropertyfor the given type.registerHandler(PersistentProperty<?> property, Function<Object, Object> handler) Registers aFunctionto post-process values for the given property.registerListHandler(PersistentProperty<?> property, Function<? super List<?>, Object> handler) registerMapHandler(PersistentProperty<?> property, Function<? super Map<?, ?>, Object> handler) registerSetHandler(PersistentProperty<?> property, Function<? super Set<?>, Object> handler) withNullValues(AccessOptions.GetOptions.GetNulls nullValues) 
- 
Constructor Details- 
GetOptionspublic GetOptions(Map<PersistentProperty<?>, Function<Object, Object>> handlers, AccessOptions.GetOptions.GetNulls nullValues) 
 
- 
- 
Method Details- 
getNullValues
- 
withNullValues
- 
registerHandlerpublic AccessOptions.GetOptions registerHandler(PersistentProperty<?> property, Function<Object, Object> handler) Registers aFunctionto post-process values for the given property.- Parameters:
- property- must not be null.
- handler- must not be null.
- Returns:
 
- 
registerCollectionHandlerpublic AccessOptions.GetOptions registerCollectionHandler(PersistentProperty<?> property, Function<? super Collection<?>, Object> handler) Registers aFunctionto handleCollectionvalues for the given property.- Parameters:
- property- must not be null.
- handler- must not be null.
- Returns:
 
- 
registerListHandlerpublic AccessOptions.GetOptions registerListHandler(PersistentProperty<?> property, Function<? super List<?>, Object> handler) - Parameters:
- property- must not be null.
- handler- must not be null.
- Returns:
 
- 
registerSetHandlerpublic AccessOptions.GetOptions registerSetHandler(PersistentProperty<?> property, Function<? super Set<?>, Object> handler) - Parameters:
- property- must not be null.
- handler- must not be null.
- Returns:
 
- 
registerMapHandlerpublic AccessOptions.GetOptions registerMapHandler(PersistentProperty<?> property, Function<? super Map<?, ?>, Object> handler) - Parameters:
- property- must not be null.
- handler- must not be null.
- Returns:
 
- 
registerHandlerpublic <T> AccessOptions.GetOptions registerHandler(PersistentProperty<?> property, Class<T> type, Function<? super T, Object> handler) Registers the givenFunctionto post-process values obtained for the givenPersistentPropertyfor the given type.- Type Parameters:
- T- the type of the value to handle.
- Parameters:
- property- must not be null.
- type- must not be null.
- handler- must not be null.
- Returns:
 
 
-