Package com.evolveum.midpoint.repo.sqale
Class SqaleUtils
java.lang.Object
com.evolveum.midpoint.repo.sqale.SqaleUtils
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final String
static final String
User Data Key used to attach owner Oid to prism container values in order to propagate OID even if parent full object is not present.static final String
static final String
Global metadata name for schema audit change numberstatic final String
Global metadata name for schema change number, related to -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S> Class<S>
getClass
(S object) Parametrized type friendly version ofObject.getClass()
.static void
handlePostgresException
(Exception exception) Throws more specific exception or returns and then original exception should be rethrown.static boolean
isUniqueConstraintViolation
(Exception exception) static int
objectVersionAsInt
(PrismObject<?> prismObject) Returns version from prism object as a number.static int
objectVersionAsInt
(ObjectType schemaObject) Returns version from midPoint object as a number.static @Nullable UUID
static @NotNull UUID
oidToUuidMandatory
(@NotNull String oid) static ObjectReferenceType
Fixes reference type if `null` and tries to use default from definition.static String
-
Field Details
-
SCHEMA_CHANGE_NUMBER
Global metadata name for schema change number, related to- See Also:
-
SCHEMA_AUDIT_CHANGE_NUMBER
Global metadata name for schema audit change number- See Also:
-
CURRENT_SCHEMA_CHANGE_NUMBER
public static final int CURRENT_SCHEMA_CHANGE_NUMBER- See Also:
-
CURRENT_SCHEMA_AUDIT_CHANGE_NUMBER
public static final int CURRENT_SCHEMA_AUDIT_CHANGE_NUMBER- See Also:
-
OWNER_OID
User Data Key used to attach owner Oid to prism container values in order to propagate OID even if parent full object is not present. THe owner oid knowledge is required for correctly computing filters in case of iterative search of containers NOTE: Role analysis tools use owner oid to get user oid from assignment search.- See Also:
-
FULL_ID_PATH
- See Also:
-
REINDEX_NEEDED
- See Also:
-
-
Constructor Details
-
SqaleUtils
public SqaleUtils()
-
-
Method Details
-
objectVersionAsInt
Returns version from midPoint object as a number.- Throws:
IllegalArgumentException
- if the version is null or non-number
-
objectVersionAsInt
Returns version from prism object as a number.- Throws:
IllegalArgumentException
- if the version is null or non-number
-
oidToUuid
-
oidToUuidMandatory
-
getClass
Parametrized type friendly version ofObject.getClass()
. -
referenceWithTypeFixed
Fixes reference type if `null` and tries to use default from definition. Use returned value. -
handlePostgresException
Throws more specific exception or returns and then original exception should be rethrown.- Throws:
ObjectAlreadyExistsException
-
isUniqueConstraintViolation
-
toString
-