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