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
Constructors Constructor Description AddObjectContext(@NotNull SqaleRepoContext repositoryContext, @NotNull PrismObject<S> object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
execute()
Inserts the object provided to the constructor and returns its OID.String
execute(JdbcSession jdbcSession)
Likeexecute()
but with provided JDBC session, does not commit.void
executeReindexed(JdbcSession jdbcSession)
-
-
-
Constructor Detail
-
AddObjectContext
public AddObjectContext(@NotNull @NotNull SqaleRepoContext repositoryContext, @NotNull @NotNull PrismObject<S> object)
-
-
Method Detail
-
execute
public String execute() throws SchemaException, ObjectAlreadyExistsException
Inserts the object provided to the constructor and returns its OID.
-
execute
public String execute(JdbcSession jdbcSession) throws SchemaException
Likeexecute()
but with provided JDBC session, does not commit.- Throws:
SchemaException
-
executeReindexed
public void executeReindexed(JdbcSession jdbcSession) throws SchemaException, ObjectAlreadyExistsException
-
-