public final class RUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
COLUMN_LENGTH_LOCALPART
This constant is used for
QName.localPart column size in database. |
static int |
COLUMN_LENGTH_OID
This constant is used for oid column size in database.
|
static QName |
CUSTOM_OBJECT |
static QName |
CUSTOM_OBJECTS |
static String |
LOB_STRING_TYPE
This constant is used for mapping type for
Lob fields. |
static String |
NS_SQL_REPO
This namespace is used for wrapping xml parts of objects during save to database.
|
static String |
SQL_REPO_OBJECT |
static String |
SQL_REPO_OBJECTS |
public static final String LOB_STRING_TYPE
Lob
fields.
MaterializedClobType
was not working properly with PostgreSQL,
causing TEXT types (clobs) to be saved not in table row but somewhere else and it always
messed up UTF-8 encodingpublic static final int COLUMN_LENGTH_LOCALPART
QName.localPart
column size in database.public static final int COLUMN_LENGTH_OID
public static final String NS_SQL_REPO
public static final String SQL_REPO_OBJECTS
public static final String SQL_REPO_OBJECT
public static final QName CUSTOM_OBJECT
public static final QName CUSTOM_OBJECTS
public static <T extends Objectable> void revive(Objectable object, PrismContext prismContext) throws DtoTranslationException
DtoTranslationException
public static <T> T toJAXB(String value, Class<T> clazz, PrismContext prismContext) throws SchemaException, JAXBException
SchemaException
JAXBException
public static <T> T toJAXB(String value, Class<T> clazz, QName type, PrismContext prismContext) throws SchemaException, JAXBException
SchemaException
JAXBException
public static <T> T toJAXB(Class<?> parentClass, ItemPath path, String value, Class<T> clazz, PrismContext prismContext) throws SchemaException, JAXBException
SchemaException
JAXBException
public static <T> T toJAXB(Class<?> parentClass, ItemPath path, String value, Class<T> clazz, QName complexType, PrismContext prismContext) throws SchemaException, JAXBException
SchemaException
JAXBException
public static <T> String toRepo(T value, PrismContext prismContext) throws SchemaException, JAXBException
SchemaException
JAXBException
public static Set<RPolyString> listPolyToSet(List<PolyStringType> list)
public static List<PolyStringType> safeSetPolyToList(Set<RPolyString> set)
public static Set<RSynchronizationSituationDescription> listSyncSituationToSet(RShadow owner, List<SynchronizationSituationDescriptionType> list)
public static List<SynchronizationSituationDescriptionType> safeSetSyncSituationToList(Set<RSynchronizationSituationDescription> set)
public static List<ObjectReferenceType> safeSetReferencesToList(Set<RObjectReference> set, PrismContext prismContext)
public static Set<RObjectReference> safeListReferenceToSet(List<ObjectReferenceType> list, PrismContext prismContext, RContainer owner, RReferenceOwner refOwner)
public static RObjectReference jaxbRefToRepo(ObjectReferenceType reference, PrismContext prismContext, RContainer owner, RReferenceOwner refOwner)
public static REmbeddedReference jaxbRefToEmbeddedRepoRef(ObjectReferenceType jaxb, PrismContext prismContext)
public static void fixCompositeIDHandling(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- public static void copyResultToJAXB(OperationResult repo, OperationResultType jaxb, PrismContext prismContext) throws DtoTranslationException
DtoTranslationException
public static void copyResultFromJAXB(OperationResultType jaxb, OperationResult repo, PrismContext prismContext) throws DtoTranslationException
DtoTranslationException
public static <T extends SchemaEnum> T getRepoEnumValue(Object object, Class<T> type)
public static List<SelectorOptions<GetOperationOptions>> filterRetrieveOptions(Collection<SelectorOptions<GetOperationOptions>> options)
public static boolean hasToLoadPath(QName container, Collection<SelectorOptions<GetOperationOptions>> options)
public static boolean hasToLoadPath(ItemPath path, Collection<SelectorOptions<GetOperationOptions>> options)
@Deprecated public static ItemPath createFullPath(ValueFilter filter)
ItemPath
from ValueFilter
created from
main item path and last element, which is now definition.
Will be deleted after query api updatefilter
- Copyright © 2013 evolveum. All rights reserved.