com.evolveum.midpoint.repo.sql.data.common
Class RAnyConverter

java.lang.Object
  extended by com.evolveum.midpoint.repo.sql.data.common.RAnyConverter

public class RAnyConverter
extends Object

Author:
lazyman

Method Summary
static Object getAggregatedRepoObject(Object object)
          Method provides aggregation of some java types (only simple types, which are indexed)
static
<T extends ObjectType>
String
getAnySetType(ItemDefinition definition)
           
static
<T extends ObjectType>
String
getAnySetType(ItemDefinition definition, Element value)
          This method provides extension type (in real it's table) string for definition and value defined as parameters.
static Object getRealRepoValue(ItemDefinition definition, Element value)
          This method provides transformation of Element value to its object form, e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAnySetType

public static <T extends ObjectType> String getAnySetType(ItemDefinition definition,
                                                          Element value)
                            throws SchemaException
This method provides extension type (in real it's table) string for definition and value defined as parameters. This string represent field in RAnyContainer where defined extension value is or can be saved.

Type Parameters:
T -
Parameters:
definition -
value -
Returns:
One of "strings", "longs", "dates", "clobs"
Throws:
SchemaException

getAnySetType

public static <T extends ObjectType> String getAnySetType(ItemDefinition definition)
                            throws SchemaException
Throws:
SchemaException

getRealRepoValue

public static Object getRealRepoValue(ItemDefinition definition,
                                      Element value)
                               throws SchemaException
This method provides transformation of Element value to its object form, e.g. 1 to Integer number 1. It's based on element definition from schema registry or xsi:type attribute in that element.

Parameters:
definition -
value -
Returns:
Throws:
SchemaException

getAggregatedRepoObject

public static Object getAggregatedRepoObject(Object object)
Method provides aggregation of some java types (only simple types, which are indexed)

Parameters:
object -
Returns:
aggregated object


Copyright © 2013 evolveum. All Rights Reserved.