public class DBExecute extends AbstractDBTool
Examples for usage (-credfile option must always be present):
-set our_user.firstname='Harry' -cond user_id=1
-set our_user.firstname=null -cond user_id=1
-sql "update our_user set firstname = 'Harry' where user_id = 1"
-script C:/databases/traindb/sql/test.sql
DBSelect
Constructor and Description |
---|
DBExecute(Credential cred) |
DBExecute(de.esprit.appsuite.database.dbase.tools.DBExecuteCLP clp) |
Modifier and Type | Method and Description |
---|---|
protected de.esprit.appsuite.database.dbase.tools.DBExecuteCLP |
getDBToolCLP() |
static void |
main(java.lang.String[] args) |
protected void |
performDatabaseOperation(java.sql.Connection dbConn) |
void |
setArgScriptFile(java.io.File scriptFile) |
void |
setArgSqlStatement(java.lang.String sql) |
execute, executeCommand, executeCommandScript, executeQuery, executeQueryScript, getDelimiter, getPrintStream, hasHeader, isSkipErrors, setArgSkipErrors
getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toString
public DBExecute(de.esprit.appsuite.database.dbase.tools.DBExecuteCLP clp)
public DBExecute(Credential cred)
public void setArgScriptFile(java.io.File scriptFile)
public void setArgSqlStatement(java.lang.String sql)
protected de.esprit.appsuite.database.dbase.tools.DBExecuteCLP getDBToolCLP()
getDBToolCLP
in class AbstractDBTool
protected void performDatabaseOperation(java.sql.Connection dbConn) throws java.lang.Exception
performDatabaseOperation
in class AbstractDBTool
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
Copyright © 2014 EsprIT-Systems. All Rights Reserved.