Class AddObjectContext<S extends ObjectType,Q extends QObject<R>,R extends MObject>
java.lang.Object
com.evolveum.midpoint.repo.sqale.update.AddObjectContext<S,Q,R>
public class AddObjectContext<S extends ObjectType,Q extends QObject<R>,R extends MObject>
extends Object
Add object operation context; used only for true add, not overwrite which is more like modify.
-
Constructor Summary
ConstructorDescriptionAddObjectContext
(@NotNull SqaleRepoContext repositoryContext, @NotNull PrismObject<S> object) -
Method Summary
Modifier and TypeMethodDescriptionexecute()
Inserts the object provided to the constructor and returns its OID.execute
(JdbcSession jdbcSession) Likeexecute()
but with provided JDBC session, does not commit.void
executeReindexed
(JdbcSession jdbcSession)
-
Constructor Details
-
AddObjectContext
public AddObjectContext(@NotNull @NotNull SqaleRepoContext repositoryContext, @NotNull @NotNull PrismObject<S> object)
-
-
Method Details
-
execute
Inserts the object provided to the constructor and returns its OID. -
execute
Likeexecute()
but with provided JDBC session, does not commit.- Throws:
SchemaException
-
executeReindexed
public void executeReindexed(JdbcSession jdbcSession) throws SchemaException, ObjectAlreadyExistsException
-