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

public Class AddColumnCommand

extends Object
implements ICommand
Class Inheritance
All Implemented Interfaces
net.ucanaccess.commands.ICommand
Imports
net.ucanaccess.converters.Persist2Jet, net.ucanaccess.exception.UcanaccessSQLException, net.ucanaccess.util.Try, java.sql.SQLException, java.util.Map

Field Summary

Modifier and TypeField and Description
private final Map<String, String>
private final String
private final String[]
private final String
private final Boolean[]
private final String
private final String[]

Constructor Summary

AccessConstructor and Description
public
AddColumnCommand(String tableName, String columnName, String execId, Map<String, String> columnMap, String[] types, String[] defaults, Boolean[] notNulls)

Method Summary

Modifier and TypeMethod and Description
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 IFeedbackAction
persist()

Implements net.ucanaccess.commands.ICommand.persist.

Persists the changes to the underlying Access database file.

public IFeedbackAction
rollback()

Implements net.ucanaccess.commands.ICommand.rollback.

Reverts the changes made by this command.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnMapback to summary
private final Map<String, String> columnMap
columnNameback to summary
private final String columnName
defaultsback to summary
private final String[] defaults
execIdback to summary
private final String execId
notNullsback to summary
private final Boolean[] notNulls
tableNameback to summary
private final String tableName
typesback to summary
private final String[] types

Constructor Detail

AddColumnCommandback to summary
public AddColumnCommand(String tableName, String columnName, String execId, Map<String, String> columnMap, String[] types, String[] defaults, Boolean[] notNulls)

Method Detail

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
persistback to summary
public IFeedbackAction persist() throws SQLException

Implements net.ucanaccess.commands.ICommand.persist.

Doc from net.ucanaccess.commands.ICommand.persist.

Persists the changes to the underlying Access database file.

Annotations
@Override
Exceptions
SQLException:
if a database error occurs during persistence
rollbackback to summary
public IFeedbackAction rollback()

Implements net.ucanaccess.commands.ICommand.rollback.

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

Reverts the changes made by this command.

Annotations
@Override