public abstract class AbstractDBTool extends AbstractApplicationObject<ApplicationContext> implements Executable
| Constructor and Description |
|---|
AbstractDBTool(Credential cred) |
AbstractDBTool(DBToolCommandLineParser clp) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Contains the code to be executed.
|
protected void |
executeCommand(java.lang.String sqlCmd) |
protected void |
executeCommandScript(java.io.File sqlScriptFile) |
protected void |
executeQuery(java.lang.String sqlSelect) |
protected void |
executeQueryScript(java.io.File sqlScriptFile) |
protected DBToolCommandLineParser |
getDBToolCLP() |
protected java.lang.String |
getDelimiter() |
protected java.io.PrintStream |
getPrintStream() |
protected boolean |
hasHeader() |
protected boolean |
isSkipErrors() |
protected abstract void |
performDatabaseOperation(java.sql.Connection dbConn) |
void |
setArgSkipErrors(boolean skipErrors) |
getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toStringpublic AbstractDBTool(DBToolCommandLineParser clp)
public AbstractDBTool(Credential cred)
protected DBToolCommandLineParser getDBToolCLP()
public void setArgSkipErrors(boolean skipErrors)
public final void execute()
throws java.lang.Exception
Executableexecute in interface Executablejava.lang.Exceptionprotected abstract void performDatabaseOperation(java.sql.Connection dbConn)
throws java.lang.Exception
java.lang.Exceptionprotected void executeQuery(java.lang.String sqlSelect)
throws java.lang.Exception
java.lang.Exceptionprotected java.io.PrintStream getPrintStream()
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String getDelimiter()
protected boolean hasHeader()
protected final boolean isSkipErrors()
protected void executeCommand(java.lang.String sqlCmd)
throws java.sql.SQLException
java.sql.SQLExceptionprotected final void executeQueryScript(java.io.File sqlScriptFile)
throws java.lang.Exception
java.lang.Exceptionprotected final void executeCommandScript(java.io.File sqlScriptFile)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2014 EsprIT-Systems. All Rights Reserved.