public class RunSqlStepExecutable extends AbstractScriptStepExecutable
IScriptStepExecutable.ScriptOwnerType
Constructor and Description |
---|
RunSqlStepExecutable(Map<String,List<EnvironmentType>> environment,
String message,
Node runSqlNode)
Creates a new instance.
|
RunSqlStepExecutable(Map<String,List<EnvironmentType>> environment,
String message,
String sql,
String database)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
executeInternal(IStep step)
Executes the step.
|
static String |
getDatabaseTypeAttributeValue(DatabaseType databaseType)
Returns the respective attribute "database-type" value for the
DatabaseType . |
String |
getDescriptionInternal()
Returns the description of this step.
|
protected ILogger |
getLogger()
Returns the logger to be used.
|
Map<String,String> |
getSQLs()
Returns the SQL mappings.
|
execute, getDeploymentMessageWriters, getEnvironments, getMessageInternal, getOwnerId, getOwnerType, getStepId, setOwnerId, setOwnerType, setStepId, stepIgnored
getDescription, getMessage, isMandatory, localize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isMandatory
getDescription, getMessage
public RunSqlStepExecutable(Map<String,List<EnvironmentType>> environment, String message, String sql, String database) throws PortalException
environment
- the environment configuration.message
- the message to be displayed.sql
- the SQL command.database
- the target database.PortalException
public RunSqlStepExecutable(Map<String,List<EnvironmentType>> environment, String message, Node runSqlNode) throws PortalException
environment
- the environment configuration.message
- the message to be displayed.runSqlNode
- the SQL node.PortalException
public String getDescriptionInternal() throws PortalException
AbstractDeploymentStepExecutable
getDescriptionInternal
in class AbstractDeploymentStepExecutable
PortalException
public void executeInternal(IStep step)
AbstractDeploymentStepExecutable
executeInternal
in class AbstractDeploymentStepExecutable
step
- the step.public static String getDatabaseTypeAttributeValue(DatabaseType databaseType)
DatabaseType
.databaseType
- the enum type.public Map<String,String> getSQLs()
protected ILogger getLogger()
AbstractDeploymentStepExecutable
getLogger
in class AbstractDeploymentStepExecutable
LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.