Class SQLStep
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
-
- org.jenkinsci.plugins.workflow.steps.Step
-
- org.jenkinsci.plugins.database.steps.SQLStep
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class SQLStep extends org.jenkinsci.plugins.workflow.steps.Step
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SQLStep.DescriptorImpl
static class
SQLStep.Execution
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static SQLStep.DescriptorImpl
DESCRIPTOR
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConnection()
org.jenkinsci.plugins.workflow.steps.StepDescriptor
getDescriptor()
List<Object>
getParameters()
String
getSql()
void
setConnection(String connection)
void
setParameters(List<Object> parameters)
org.jenkinsci.plugins.workflow.steps.StepExecution
start(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
-
-
Field Detail
-
DESCRIPTOR
@Extension(optional=true) public static final SQLStep.DescriptorImpl DESCRIPTOR
-
-
Constructor Detail
-
SQLStep
@DataBoundConstructor public SQLStep(String sql)
-
-
Method Detail
-
getSql
public String getSql()
-
getConnection
public String getConnection()
-
setConnection
@DataBoundSetter public void setConnection(@CheckForNull String connection)
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception
- Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.Step
- Throws:
Exception
-
getDescriptor
public org.jenkinsci.plugins.workflow.steps.StepDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<org.jenkinsci.plugins.workflow.steps.Step>
- Overrides:
getDescriptor
in classorg.jenkinsci.plugins.workflow.steps.Step
-
-