Class Utils
java.lang.Object
io.micronaut.data.processor.visitors.Utils
The mapping util class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetConfiguredDataConverters
(io.micronaut.inject.ast.ClassElement element) Resolves the configured data converters.getConfiguredDataTypes
(io.micronaut.inject.ast.ClassElement element) Resolves the configured data types.static SourcePersistentEntity
resolvePersistentEntity
(io.micronaut.inject.ast.ClassElement returnType, Function<io.micronaut.inject.ast.ClassElement, SourcePersistentEntity> entityResolver)
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
resolvePersistentEntity
public static SourcePersistentEntity resolvePersistentEntity(io.micronaut.inject.ast.ClassElement returnType, Function<io.micronaut.inject.ast.ClassElement, SourcePersistentEntity> entityResolver) -
getConfiguredDataTypes
public static Map<String,DataType> getConfiguredDataTypes(io.micronaut.inject.ast.ClassElement element) Resolves the configured data types.- Parameters:
element
- The element- Returns:
- The data types
-
getConfiguredDataConverters
public static Map<String,String> getConfiguredDataConverters(io.micronaut.inject.ast.ClassElement element) Resolves the configured data converters.- Parameters:
element
- The element- Returns:
- The data converters
-