public class DeferredProgram
extends java.lang.Object
RUN ... {SINGLETON|SINGLE-RUN}
statement is executed.
This saves the target, mode and any remote server configuration specified at the RUN statement.
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
name
The target of the RUN statement.
|
private ServerImpl |
server
The remote server configuration (may be
null). |
private boolean |
singleRun
When
true, SINGLE-RUN mode is used. |
private boolean |
singleton
When
true, SINGLETON mode is used. |
private boolean |
transactionDistinct
Flag indicating if the TRANSACTION-DISTINCT option was used.
|
| Constructor and Description |
|---|
DeferredProgram(java.lang.String name)
Create a new deferred configuration for the given program.
|
DeferredProgram(java.lang.String name,
ServerImpl s,
boolean transactionDistinct)
Create a new deferred configuration for the given program and remote server.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Get the external program
name. |
ServerImpl |
getServer()
Get the
server instance. |
boolean |
isSingleRun()
Get the
singleRun state. |
boolean |
isSingleton()
Get the
singleton state. |
boolean |
isTransactionDistinct()
Get the
transactionDistinct flag. |
void |
setSingleRun(boolean singleRun)
Set the
singleRun state. |
void |
setSingleton(boolean singleton)
Set the
singleton state. |
private java.lang.String name
private ServerImpl server
null).private boolean transactionDistinct
private boolean singleton
true, SINGLETON mode is used.private boolean singleRun
true, SINGLE-RUN mode is used.public DeferredProgram(java.lang.String name)
name - The program name.public DeferredProgram(java.lang.String name,
ServerImpl s,
boolean transactionDistinct)
name - The program name.s - The server configuration.transactionDistinct - Flag indicating if TRANSACTION-DISTINCT option is set.public ServerImpl getServer()
server instance.public java.lang.String getName()
name.public boolean isTransactionDistinct()
transactionDistinct flag.public boolean isSingleRun()
singleRun state.public void setSingleRun(boolean singleRun)
singleRun state.singleRun - Flag indicating the SINGLE-RUN state, when true.public boolean isSingleton()
singleton state.public void setSingleton(boolean singleton)
singleton state.singleton - Flag indicating the SINGLETON state, when true.