Package org.labkey.remoteapi.query
Class SaveRowsCommand.Command
java.lang.Object
org.labkey.remoteapi.query.SaveRowsCommand.Command
- Enclosing class:
- SaveRowsCommand
Represents a single command operation of a specified type
(e.g., insert, update, delete) to be executed within a
SaveRowsCommand.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the audit behavior setting for this command.Gets the user-provided comment that will be included in the audit log.Gets the type of operation this command represents.Gets the container path where this command should be executed.Gets additional context parameters specific to this command.org.json.JSONObjectGets the name of the query this command operates on.getRows()Gets the list of rows to be processed by this command.Gets the name of the schema containing the query.Checks if the command should skip re-selecting rows after the operation.setAuditBehavior(BaseRowsCommand.AuditBehavior auditBehavior) Sets the audit behavior for this command.setAuditUserComment(String auditUserComment) Sets a user comment to be included in the audit log for this command.setContainerPath(String containerPath) Sets the container path where this command should be executed.setExtraContext(Map<String, Object> extraContext) Sets additional context parameters for this specific command.Sets the list of rows to be processed by this command.setSkipReselectRows(Boolean skipReselectRows) Sets whether to skip re-selecting rows after the operation completes.
-
Constructor Details
-
Command
-
-
Method Details
-
getJsonObject
public org.json.JSONObject getJsonObject() -
getAuditBehavior
Gets the audit behavior setting for this command. Determines the level of detail in the audit log for this operation.- Returns:
- The current audit behavior setting, or null if using default behavior
-
setAuditBehavior
Sets the audit behavior for this command.- Parameters:
auditBehavior- The desired audit behavior- Returns:
- This Command instance for method chaining
-
getAuditUserComment
Gets the user-provided comment that will be included in the audit log.- Returns:
- The audit comment, or null if none was set
-
setAuditUserComment
Sets a user comment to be included in the audit log for this command.- Parameters:
auditUserComment- The comment to include in the audit log- Returns:
- This Command instance for method chaining
-
getCommandType
Gets the type of operation this command represents.- Returns:
- The CommandType for this command
-
getContainerPath
Gets the container path where this command should be executed.- Returns:
- The container path, or null if using the default container
-
setContainerPath
Sets the container path where this command should be executed.- Parameters:
containerPath- The target container path- Returns:
- This Command instance for method chaining
-
getExtraContext
Gets additional context parameters specific to this command.- Returns:
- Map of extra context parameters, or null if none are set
-
setExtraContext
Sets additional context parameters for this specific command.- Parameters:
extraContext- Map of extra parameters to be passed with this command- Returns:
- This Command instance for method chaining
-
getQueryName
Gets the name of the query this command operates on.- Returns:
- The query name
-
getSchemaName
Gets the name of the schema containing the query.- Returns:
- The schema name
-
getRows
Gets the list of rows to be processed by this command. Each row is represented as a Map of column names to values.- Returns:
- List of rows to be processed
-
setRows
Sets the list of rows to be processed by this command.- Parameters:
rows- List of maps where each map represents a row with column names as keys- Returns:
- This Command instance for method chaining
-
isSkipReselectRows
Checks if the command should skip re-selecting rows after the operation.- Returns:
- Boolean indicating whether to skip row re-selection or null for default behavior
-
setSkipReselectRows
Sets whether to skip re-selecting rows after the operation completes.- Parameters:
skipReselectRows- When true, skips row reselection after the operation When false, performs row reselection When null, uses server default behavior- Returns:
- This Command instance for method chaining
-