public class SQLScriptAction extends AbstractAction implements IfsParameters
| Modifier and Type | Field and Description |
|---|---|
static String |
NOLOG |
static String |
SQL_ARGUMENTS |
static String |
SQL_SCRIPT |
CONTINUE_ON_ERROR, m_defaultOptions, m_optionsAPPEND_LOG, DATABASE_TYPE, DATABASE_URL, DB_USER_NAME, DB_USER_PASSWORD, DOMAIN_TYPE, ENABLE_SSL_SUPPORT, FOR_SCHEMA_UPGRADE, IFS_DOMAIN_DISPLAY_NAME, IFS_DOMAIN_NAME, IFS_SCHEMA_NAME, IFS_SCHEMA_PASSWORD, IFS_SERVICE_NAME, IFS_USER_NAME, IFS_USER_PASSWORD, INCLUDE_PATH, INITIAL_CONTEXT_FACTORY, LDAP_URL_DAS_LOOKUP, LDAP_USER_NAME, LDAP_USER_PASSWORD, OUTPUT_FILE, PARAMETER_FILE, REGISTRY, SCHEMA_VERSION_KEY, SECURITY_PROTOCOL_NAME, SERVICE_CONFIGURATION_NAME| Constructor and Description |
|---|
SQLScriptAction()
Creates a new SQLScriptAction without specifying a SQL script or
parameters for the SQL script.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Connection con,
String connectString) |
void |
failed(Throwable error)
Does nothing.
|
void |
perform()
Performs this Action.
|
void |
setSQLArguments(String args)
Sets the arguments to pass to the SQL script.
|
void |
setSQLScript(String sql)
Sets the the SQL script to execute.
|
void |
stop()
Does nothing.
|
getDescription, getName, getValue, isContinueOnError, isPostgres, putValue, setDefaultOptions, setDescription, setName, setOptionspublic static final String SQL_SCRIPT
public static final String SQL_ARGUMENTS
public static final String NOLOG
public SQLScriptAction()
public void setSQLScript(String sql)
sql - the path of the SQL script to execute.public void setSQLArguments(String args)
args - a String with pipe (|) separated arguments
to pass to the SQL script,
or null if no arguments are required.public void perform()
throws ActionFailedException
Actionperform in interface ActionActionFailedException - if the action could not be performed.public void execute(Connection con, String connectString) throws SQLException, ActionFailedException
SQLExceptionActionFailedExceptionCopyright © 2025. All rights reserved.