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

public abstract Class AbstractCursorCommand

extends Object
implements ICursorCommand
Class Inheritance
All Implemented Interfaces
net.ucanaccess.commands.ICursorCommand, net.ucanaccess.commands.ICommand
Known Direct Subclasses
net.ucanaccess.commands.DeleteCommand, net.ucanaccess.commands.UpdateCommand
Imports
io.github.spannm.jackcess.Cursor, java.lang.System.Logger, .System.Logger.Level, java.util.Map

Abstract base class for commands that use a Jackcess Cursor to locate and manipulate rows.

Provides common functionality for matching the current row against a provided pattern and handling autoincrement column updates.

Field Summary

Modifier and TypeField and Description
private static final System.Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
currentRowMatches(Cursor cur, Map<String, Object> currentRow)

Implements net.ucanaccess.commands.ICursorCommand.currentRowMatches.

Verifies if the current row at the cursor position matches the provided data pattern.

public void
replaceAutoincrement(Map<String, Object>
map containing the autoincrement values
map
)

Updates the row pattern with autoincrement values.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

LOGGERback to summary
private static final System.Logger LOGGER

Constructor Detail

AbstractCursorCommandback to summary
public AbstractCursorCommand()

Method Detail

currentRowMatchesback to summary
public boolean currentRowMatches(Cursor cur, Map<String, Object> currentRow)

Implements net.ucanaccess.commands.ICursorCommand.currentRowMatches.

Doc from net.ucanaccess.commands.ICursorCommand.currentRowMatches.

Verifies if the current row at the cursor position matches the provided data pattern.

Annotations
@Override
replaceAutoincrementback to summary
public void replaceAutoincrement(Map<String, Object> map)

Updates the row pattern with autoincrement values.

Parameters
map:Map<String, Object>

map containing the autoincrement values

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