Class RAnyConverter
- java.lang.Object
-
- com.evolveum.midpoint.repo.sql.data.common.any.RAnyConverter
-
public class RAnyConverter extends Object
- Author:
- lazyman
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RAnyConverter.ValueType
-
Constructor Summary
Constructors Constructor Description RAnyConverter(PrismContext prismContext, ExtItemDictionary extItemDictionary)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areDynamicsOfThisKindIndexed(RObjectExtensionType extensionType)
Set<RAnyValue<?>>
convertToRValue(Item<?,?> item, boolean assignment, RObjectExtensionType ownerType)
@NotNull RAnyValue<?>
convertToRValue(PrismValue value, boolean isAssignment, Integer itemId)
static Object
getAggregatedRepoObject(Object object)
Method provides aggregation of some java types (only simple types, which are indexed)static String
getAnySetType(ItemDefinition definition, PrismContext prismContext)
This method provides extension type (in real it's table) string for definition and value defined as parameters.static Collection<? extends ROExtValue>
getExtValues(RObject rObject, RExtItem extItemDef, ItemDefinition<?> itemDef)
static @NotNull Object
getRealRepoValue(ItemDefinition definition, Element value, PrismContext prismContext)
This method provides transformation ofElement
value to its object form, e.g.static RAnyConverter.ValueType
getValueType(ItemDefinition<?> definition, ItemName itemName, boolean indexAlsoDynamics, PrismContext prismContext)
-
-
-
Constructor Detail
-
RAnyConverter
public RAnyConverter(PrismContext prismContext, ExtItemDictionary extItemDictionary)
-
-
Method Detail
-
convertToRValue
@NotNull public @NotNull RAnyValue<?> convertToRValue(PrismValue value, boolean isAssignment, Integer itemId) throws SchemaException
- Throws:
SchemaException
-
convertToRValue
public Set<RAnyValue<?>> convertToRValue(Item<?,?> item, boolean assignment, RObjectExtensionType ownerType) throws SchemaException, DtoTranslationException
-
getValueType
public static RAnyConverter.ValueType getValueType(ItemDefinition<?> definition, ItemName itemName, boolean indexAlsoDynamics, PrismContext prismContext) throws SchemaException
- Returns:
- null if item is not indexed
- Throws:
SchemaException
-
areDynamicsOfThisKindIndexed
public static boolean areDynamicsOfThisKindIndexed(RObjectExtensionType extensionType)
-
getAnySetType
public static String getAnySetType(ItemDefinition definition, PrismContext prismContext) throws SchemaException, QueryException
This method provides extension type (in real it's table) string for definition and value defined as parameters.- Returns:
- One of "strings", "longs", "dates", "clobs"
- Throws:
SchemaException
QueryException
-
getRealRepoValue
@NotNull public static @NotNull Object getRealRepoValue(ItemDefinition definition, Element value, PrismContext prismContext) throws SchemaException
This method provides transformation ofElement
value to its object form, e.g.1 toInteger
number 1. It's based on element definition from schema registry or xsi:type attribute in that element.Expects only property values (references are handled at other place).
[pm] is this method really used? i.e. do we ever try to store PrismPropertyValue
? - Throws:
SchemaException
-
getAggregatedRepoObject
public static Object getAggregatedRepoObject(Object object)
Method provides aggregation of some java types (only simple types, which are indexed)- Returns:
- aggregated object
-
getExtValues
public static Collection<? extends ROExtValue> getExtValues(RObject rObject, RExtItem extItemDef, ItemDefinition<?> itemDef)
-
-