public class Main
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
commandHelp |
static java.lang.String[] |
knownDrivers |
static java.lang.String |
usage |
Constructor and Description |
---|
Main(Main originalMain,
java.lang.String command,
java.io.PrintStream out) |
Main(java.lang.String url,
java.lang.String userid,
java.lang.String password) |
Modifier and Type | Method and Description |
---|---|
static void |
appendMixedUXOutput(java.lang.StringBuffer sb,
char[] chars) |
static void |
dispResultSet(java.sql.ResultSet rs) |
void |
executeCallCommand(java.lang.String command,
java.io.PrintStream out1) |
void |
executeCLCommand(java.lang.String clCommand,
java.io.PrintStream out1) |
boolean |
executeCommand(java.lang.String command1,
java.io.PrintStream printStreamForExecuteCommand)
Executes a command that is not an SQL query.
|
void |
executeSqlCommand(java.lang.String command,
java.io.PrintStream out1) |
boolean |
executeTopLevelCommand(java.lang.String command,
java.io.PrintStream printStreamForTopLevelCommand)
Execute a top level command.
|
java.lang.Object |
getParameterObject(java.lang.String thisParm,
java.io.PrintStream printStreamForParameterObject) |
java.sql.Connection |
getPooledConnection(java.lang.String thisConnectUserId,
java.lang.String thisConnectPassword,
java.lang.String connectUrl,
java.io.PrintStream out1) |
int |
go(java.io.InputStream in,
java.io.PrintStream printStreamForGo) |
static void |
main(java.lang.String[] args) |
java.sql.Array |
makeArray(java.lang.Object parameter,
java.lang.String arrayType) |
static void |
printStackTraceToStringBuffer(java.lang.Throwable e,
java.lang.StringBuffer sb) |
void |
processException(java.sql.SQLException ex,
java.lang.String command,
java.io.PrintStream out1) |
static java.lang.String |
readLine(java.io.BufferedReader input) |
java.lang.String |
removeProperty(java.lang.String url,
java.lang.String newProperties) |
void |
run() |
void |
setCommand(java.lang.String command) |
void |
setManualResultSetColType(java.sql.ResultSetMetaData rsmd) |
void |
setParameter(java.sql.PreparedStatement cstmt,
java.lang.String thisParm,
int parm,
java.io.PrintStream printStreamForSetParameter) |
void |
setPassword(java.lang.String newpassword) |
void |
setUrl(java.lang.String newUrl) |
void |
setUserId(java.lang.String newUserId) |
void |
showMixedUXOutput(java.io.PrintStream out1,
char[] chars) |
void |
useConnectionPool(boolean value) |
public static java.lang.String[] knownDrivers
public static java.lang.String usage
public static java.lang.String[] commandHelp
public Main(java.lang.String url, java.lang.String userid, java.lang.String password) throws java.sql.SQLException
java.sql.SQLException
public Main(Main originalMain, java.lang.String command, java.io.PrintStream out)
public static java.lang.String readLine(java.io.BufferedReader input) throws java.lang.Exception
java.lang.Exception
public int go(java.io.InputStream in, java.io.PrintStream printStreamForGo)
public void run()
run
in interface java.lang.Runnable
public void setCommand(java.lang.String command)
public void useConnectionPool(boolean value)
public void setUrl(java.lang.String newUrl)
public void setUserId(java.lang.String newUserId)
public void setPassword(java.lang.String newpassword)
public java.lang.String removeProperty(java.lang.String url, java.lang.String newProperties)
public void setManualResultSetColType(java.sql.ResultSetMetaData rsmd) throws java.sql.SQLException
java.sql.SQLException
public java.sql.Connection getPooledConnection(java.lang.String thisConnectUserId, java.lang.String thisConnectPassword, java.lang.String connectUrl, java.io.PrintStream out1) throws java.sql.SQLException
java.sql.SQLException
public void executeCLCommand(java.lang.String clCommand, java.io.PrintStream out1) throws java.lang.Exception
java.lang.Exception
public void executeCallCommand(java.lang.String command, java.io.PrintStream out1) throws java.lang.Exception
java.lang.Exception
public void executeSqlCommand(java.lang.String command, java.io.PrintStream out1) throws java.lang.Exception
java.lang.Exception
public void processException(java.sql.SQLException ex, java.lang.String command, java.io.PrintStream out1)
public boolean executeTopLevelCommand(java.lang.String command, java.io.PrintStream printStreamForTopLevelCommand)
command
- printStreamForTopLevelCommand
- public boolean executeCommand(java.lang.String command1, java.io.PrintStream printStreamForExecuteCommand)
command1
- printStreamForExecuteCommand
- public static void printStackTraceToStringBuffer(java.lang.Throwable e, java.lang.StringBuffer sb)
public static void dispResultSet(java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLException
public void showMixedUXOutput(java.io.PrintStream out1, char[] chars)
public static void appendMixedUXOutput(java.lang.StringBuffer sb, char[] chars)
public java.lang.Object getParameterObject(java.lang.String thisParm, java.io.PrintStream printStreamForParameterObject)
public void setParameter(java.sql.PreparedStatement cstmt, java.lang.String thisParm, int parm, java.io.PrintStream printStreamForSetParameter) throws java.sql.SQLException
java.sql.SQLException
public java.sql.Array makeArray(java.lang.Object parameter, java.lang.String arrayType) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args)