Class RunSqlStepExecutable
- java.lang.Object
-
- lumis.portal.deployment.stepexecutable.AbstractDeploymentStepExecutable
-
- lumis.portal.deployment.stepexecutable.script.AbstractScriptStepExecutable
-
- lumis.portal.deployment.stepexecutable.script.RunSqlStepExecutable
-
- All Implemented Interfaces:
java.io.Serializable
,IDeploymentStepExecutable
,IScriptStepExecutable
,IStepExecutable
public class RunSqlStepExecutable extends AbstractScriptStepExecutable
Runs a SQL command.- Since:
- 7.1.0
- Version:
- $Revision: 24878 $ $Date: 2022-03-15 01:44:27 -0300 (Tue, 15 Mar 2022) $
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface lumis.portal.deployment.stepexecutable.script.IScriptStepExecutable
IScriptStepExecutable.ScriptOwnerType
-
-
Constructor Summary
Constructors Constructor Description RunSqlStepExecutable(java.util.Map<java.lang.String,java.util.List<EnvironmentType>> environment, java.lang.String message, java.lang.String sql, java.lang.String database)
Creates a new instance.RunSqlStepExecutable(java.util.Map<java.lang.String,java.util.List<EnvironmentType>> environment, java.lang.String message, org.w3c.dom.Node runSqlNode)
Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeInternal(IStep step)
Executes the step.static java.lang.String
getDatabaseTypeAttributeValue(DatabaseType databaseType)
Returns the respective attribute "database-type" value for theDatabaseType
.java.lang.String
getDescriptionInternal()
Returns the description of this step.protected ILogger
getLogger()
Returns the logger to be used.java.util.Map<java.lang.String,java.lang.String>
getSQLs()
Returns the SQL mappings.-
Methods inherited from class lumis.portal.deployment.stepexecutable.script.AbstractScriptStepExecutable
execute, getDeploymentMessageWriters, getEnvironments, getMessageInternal, getOwnerId, getOwnerType, getStepId, setOwnerId, setOwnerType, setStepId, stepIgnored
-
Methods inherited from class lumis.portal.deployment.stepexecutable.AbstractDeploymentStepExecutable
getDescription, getMessage, isMandatory, localize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface lumis.portal.deployment.stepexecutable.IDeploymentStepExecutable
isMandatory
-
Methods inherited from interface lumis.portal.interactiveprocess.IStepExecutable
getDescription, getMessage
-
-
-
-
Constructor Detail
-
RunSqlStepExecutable
public RunSqlStepExecutable(java.util.Map<java.lang.String,java.util.List<EnvironmentType>> environment, java.lang.String message, java.lang.String sql, java.lang.String database) throws PortalException
Creates a new instance.- Parameters:
environment
- the environment configuration.message
- the message to be displayed.sql
- the SQL command.database
- the target database.- Throws:
PortalException
- Since:
- 7.1.0
-
RunSqlStepExecutable
public RunSqlStepExecutable(java.util.Map<java.lang.String,java.util.List<EnvironmentType>> environment, java.lang.String message, org.w3c.dom.Node runSqlNode) throws PortalException
Creates a new instance.- Parameters:
environment
- the environment configuration.message
- the message to be displayed.runSqlNode
- the SQL node.- Throws:
PortalException
- Since:
- 7.1.0
-
-
Method Detail
-
getDescriptionInternal
public java.lang.String getDescriptionInternal() throws PortalException
Description copied from class:AbstractDeploymentStepExecutable
Returns the description of this step.- Specified by:
getDescriptionInternal
in classAbstractDeploymentStepExecutable
- Returns:
- the description of this step.
- Throws:
PortalException
-
executeInternal
public void executeInternal(IStep step)
Description copied from class:AbstractDeploymentStepExecutable
Executes the step.- Specified by:
executeInternal
in classAbstractDeploymentStepExecutable
- Parameters:
step
- the step.
-
getDatabaseTypeAttributeValue
public static java.lang.String getDatabaseTypeAttributeValue(DatabaseType databaseType)
Returns the respective attribute "database-type" value for theDatabaseType
.- Parameters:
databaseType
- the enum type.- Returns:
- the respective attribute "database-type" value.
- Since:
- 12.0.0
-
getSQLs
public java.util.Map<java.lang.String,java.lang.String> getSQLs()
Returns the SQL mappings.- Returns:
- the SQL mappings.
- Since:
- 7.1.0
-
getLogger
protected ILogger getLogger()
Description copied from class:AbstractDeploymentStepExecutable
Returns the logger to be used.- Specified by:
getLogger
in classAbstractDeploymentStepExecutable
- Returns:
- the logger to be used.
-
-