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
Constructors Constructor Description ExtensionUpdateContext(SqaleUpdateContext<?,?,?> parentContext, ExtensionMapping<Q,R> mapping, JsonbPath jsonbPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteItem(String extItemId)
Q
entityPath()
Returns entity path (table) for the context.protected void
finishExecutionOwn()
ExtensionMapping<Q,R>
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, finishExecution, getSubcontext, insertOwnedRow, isOverwrittenId, jdbcSession, repositoryContext, row
-
-
-
-
Constructor Detail
-
ExtensionUpdateContext
public ExtensionUpdateContext(SqaleUpdateContext<?,?,?> parentContext, ExtensionMapping<Q,R> mapping, JsonbPath jsonbPath)
-
-
Method Detail
-
entityPath
public Q 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
public ExtensionMapping<Q,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>
-
deleteItem
public void deleteItem(String extItemId)
-
finishExecutionOwn
protected void finishExecutionOwn() throws SchemaException, RepositoryException
- Specified by:
finishExecutionOwn
in classSqaleUpdateContext<Containerable,Q extends FlexibleRelationalPathBase<R>,R>
- Throws:
SchemaException
RepositoryException
-
-