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 voiddeleteItem(String extItemId)QentityPath()Returns entity path (table) for the context.protected voidfinishExecutionOwn()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)voidsetChangedItem(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 Detail
-
ExtensionUpdateContext
public ExtensionUpdateContext(SqaleUpdateContext<?,?,?> parentContext, ExtensionMapping<Q,R> mapping, JsonbPath jsonbPath)
-
-
Method Detail
-
entityPath
public Q entityPath()
Description copied from class:SqaleUpdateContextReturns 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:
entityPathin classSqaleUpdateContext<Containerable,Q extends FlexibleRelationalPathBase<R>,R>
-
mapping
public ExtensionMapping<Q,R> mapping()
- Specified by:
mappingin 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:
setin 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:
setin classSqaleUpdateContext<Containerable,Q extends FlexibleRelationalPathBase<R>,R>
-
setNull
public <P extends com.querydsl.core.types.Path<T>,T> void setNull(P path)
- Specified by:
setNullin classSqaleUpdateContext<Containerable,Q extends FlexibleRelationalPathBase<R>,R>
-
deleteItem
public void deleteItem(String extItemId)
-
finishExecutionOwn
protected void finishExecutionOwn() throws SchemaException, RepositoryException- Specified by:
finishExecutionOwnin classSqaleUpdateContext<Containerable,Q extends FlexibleRelationalPathBase<R>,R>- Throws:
SchemaExceptionRepositoryException
-
-