Class ExtensionUpdateContext<Q extends FlexibleRelationalPathBase<R>,R>
java.lang.Object
com.evolveum.midpoint.repo.sqale.update.SqaleUpdateContext<Containerable,Q,R>
com.evolveum.midpoint.repo.sqale.update.ExtensionUpdateContext<Q,R>
- Type Parameters:
Q
- entity query type that holds the data for the mapped attributesR
- row type related to theExtensionUpdateContext
public class ExtensionUpdateContext<Q extends FlexibleRelationalPathBase<R>,R>
extends SqaleUpdateContext<Containerable,Q,R>
Update context for extension/attributes JSONB column.
-
Field Summary
Fields inherited from class com.evolveum.midpoint.repo.sqale.update.SqaleUpdateContext
jdbcSession, logger, parentContext, row, subcontexts
-
Constructor Summary
ConstructorDescriptionExtensionUpdateContext
(SqaleUpdateContext<?, ?, ?> parentContext, ExtensionMapping<Q, R> mapping, JsonbPath jsonbPath) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteItem
(String extItemId) Returns entity path (table) for the context.protected void
mapping()
<P extends com.querydsl.core.types.Path<T>,
T>
voidset
(P path, com.querydsl.core.types.Expression<T> value) <P extends com.querydsl.core.types.Path<T>,
T>
voidset
(P path, T value) void
setChangedItem
(String extItemId, Object value) <P extends com.querydsl.core.types.Path<T>,
T>
voidsetNull
(P path) Methods inherited from class com.evolveum.midpoint.repo.sqale.update.SqaleUpdateContext
addSubcontext, findValueOrItem, findValueOrItem, finishExecution, getSubcontext, insertOwnedRow, isOverwrittenId, jdbcSession, repositoryContext, row
-
Constructor Details
-
ExtensionUpdateContext
public ExtensionUpdateContext(SqaleUpdateContext<?, ?, ?> parentContext, ExtensionMapping<Q, R> mapping, JsonbPath jsonbPath)
-
-
Method Details
-
entityPath
Description copied from class:SqaleUpdateContext
Returns entity path (table) for the context. This is NOT the path for item column, which can be actually multiple columns (ref, poly) or just part of the value in the column (JSONB).- Specified by:
entityPath
in classSqaleUpdateContext<Containerable,
Q extends FlexibleRelationalPathBase<R>, R>
-
mapping
- Specified by:
mapping
in classSqaleUpdateContext<Containerable,
Q extends FlexibleRelationalPathBase<R>, R>
-
set
public <P extends com.querydsl.core.types.Path<T>,T> void set(P path, T value) - Specified by:
set
in classSqaleUpdateContext<Containerable,
Q extends FlexibleRelationalPathBase<R>, R>
-
set
public <P extends com.querydsl.core.types.Path<T>,T> void set(P path, com.querydsl.core.types.Expression<T> value) - Specified by:
set
in classSqaleUpdateContext<Containerable,
Q extends FlexibleRelationalPathBase<R>, R>
-
setNull
public <P extends com.querydsl.core.types.Path<T>,T> void setNull(P path) - Specified by:
setNull
in classSqaleUpdateContext<Containerable,
Q extends FlexibleRelationalPathBase<R>, R>
-
setChangedItem
-
deleteItem
-
finishExecutionOwn
- Specified by:
finishExecutionOwn
in classSqaleUpdateContext<Containerable,
Q extends FlexibleRelationalPathBase<R>, R> - Throws:
SchemaException
RepositoryException
-