APIdia Launch Partner
Top Fields Constructors Methods
net.ucanaccess.commands

public Class CompositeCommand

extends Object
implements ICommand
Class Inheritance
All Implemented Interfaces
net.ucanaccess.commands.ICommand
Imports
io.github.spannm.jackcess.Cursor, net.ucanaccess.exception.UcanaccessSQLException, net.ucanaccess.util.Try, java.io.IOException, java.lang.System.Logger, .System.Logger.Level, java.sql.SQLException, java.util.*

Field Summary

Modifier and TypeField and Description
private final List<ICursorCommand>
private Map<String, Object>
private String
private IndexSelector
private final System.Logger
private final List<ICursorCommand>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public List<ICursorCommand>
public String
getExecId()

Implements net.ucanaccess.commands.ICommand.getExecId.

Returns the unique execution identifier.

public String
getTableName()

Implements net.ucanaccess.commands.ICommand.getTableName.

Returns the name of the table affected by this command.

public ICommand.CommandType
getType()

Implements net.ucanaccess.commands.ICommand.getType.

Returns the type of this command.

public boolean
moveToNextRow(Cursor cur, Set<String> columnNames)

public IFeedbackAction

Returns:

a composite feedback action containing all individual feedback actions
persist
()

Implements net.ucanaccess.commands.ICommand.persist.

Persists the composite commands by iterating over the table cursor and matching rows.

public IFeedbackAction
rollback()

Implements net.ucanaccess.commands.ICommand.rollback.

Reverts the changes made by this command.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

compositeback to summary
private final List<ICursorCommand> composite
currentRowback to summary
private Map<String, Object> currentRow
execIdback to summary
private String execId
indexSelectorback to summary
private IndexSelector indexSelector
loggerback to summary
private final System.Logger logger
rollbackCacheback to summary
private final List<ICursorCommand> rollbackCache

Constructor Detail

CompositeCommandback to summary
public CompositeCommand()

Method Detail

addback to summary
public boolean add(ICursorCommand c4io)
getCompositeback to summary
public List<ICursorCommand> getComposite()
getExecIdback to summary
public String getExecId()

Implements net.ucanaccess.commands.ICommand.getExecId.

Doc from net.ucanaccess.commands.ICommand.getExecId.

Returns the unique execution identifier.

Annotations
@Override
getTableNameback to summary
public String getTableName()

Implements net.ucanaccess.commands.ICommand.getTableName.

Doc from net.ucanaccess.commands.ICommand.getTableName.

Returns the name of the table affected by this command.

Annotations
@Override
getTypeback to summary
public ICommand.CommandType getType()

Implements net.ucanaccess.commands.ICommand.getType.

Doc from net.ucanaccess.commands.ICommand.getType.

Returns the type of this command.

Annotations
@Override
moveToNextRowback to summary
public boolean moveToNextRow(Cursor cur, Set<String> columnNames) throws IOException
persistback to summary
public IFeedbackAction persist() throws SQLException

Implements net.ucanaccess.commands.ICommand.persist.

Persists the composite commands by iterating over the table cursor and matching rows.

For each row in the table, it checks if any command in the composite list matches the current row's data pattern. If a match is found, the command is executed against the current row.

Returns:IFeedbackAction

a composite feedback action containing all individual feedback actions

Annotations
@Override
Exceptions
SQLException:
if a critical persistence mismatch occurs or database access fails
rollbackback to summary
public IFeedbackAction rollback() throws SQLException

Implements net.ucanaccess.commands.ICommand.rollback.

Doc from net.ucanaccess.commands.ICommand.rollback.

Reverts the changes made by this command.

Annotations
@Override
Exceptions
SQLException:
if a database error occurs during rollback
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override