public abstract class GenericDBConnector extends java.lang.Object implements ApplicationConnectorInterface, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
debug
Debug flag, if true, provides additional logging.
|
private static long |
serialVersionUID
The class' serialization version id.
|
COPYRIGHT| Constructor and Description |
|---|
GenericDBConnector()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected ThreadServletContext |
connect()
Connects to the database.
|
protected void |
disconnect(ThreadServletContext ctx)
Disconnects the database connection.
|
protected abstract java.lang.String |
getConnectorName()
Returns the name of this connector.
|
protected void |
printIt(java.lang.String x)
Prints given data to the standard output stream.
|
protected void |
printIt(java.lang.String id,
java.lang.String x)
Prints given data to the standard output stream.
|
protected void |
printIt(java.lang.String id,
java.lang.String[] x)
Prints given data to the standard output stream.
|
abstract JavaConnectorResult |
run(ConnectorParameters parms)
Method called by the flow manager to execute the application connector.
|
private static final long serialVersionUID
protected boolean debug
public abstract JavaConnectorResult run(ConnectorParameters parms)
run in interface ApplicationConnectorInterfaceparms - (ConnectorParm) Parameter information for the transaction.protected void printIt(java.lang.String id,
java.lang.String[] x)
id - (String) Label for the data.x - (String[]) Array of data, only index 0 will print.protected void printIt(java.lang.String id,
java.lang.String x)
id - (String) Label for the data.x - (String) String to be printed.protected void printIt(java.lang.String x)
x - (String) String to be printed.protected ThreadServletContext connect()
protected void disconnect(ThreadServletContext ctx)
ctx - (ThreadServletContext) The connection to be closed.protected abstract java.lang.String getConnectorName()