All Packages Class Hierarchy This Package Previous Next Index
Class twz1.jdbc.mysql.jdbcMysqlBase
java.lang.Object
|
+----twz1.jdbc.mysql.jdbcMysqlBase
- public final class jdbcMysqlBase
- extends Object
-
applet
- Am I an applet?
-
BINARY_FLAG
-
-
BLOB_FLAG
-
-
cmds
- Commands Hashtable
-
COM_ALTER
-
-
COM_COMMENT
-
-
COM_CONNECT
-
-
COM_CREATE_DB
-
-
COM_CREATE_T
-
-
COM_DEBUG
-
-
COM_DELETE
-
-
COM_DESCRIBE
-
-
COM_DROP
-
-
COM_DROP_DB
-
-
COM_EXPLAIN
-
-
COM_FIELD_LIST
-
-
COM_GRANT
-
-
COM_INIT_DB
-
-
COM_INSERT
-
-
COM_LOCK
-
-
COM_PROCESS_INFO
-
-
COM_PROCESS_KILL
-
-
COM_QUERY
-
-
COM_QUIT
-
-
COM_REFRESH
-
-
COM_REPLACE
-
-
COM_SELECT
-
-
COM_SET
-
-
COM_SHOW
-
-
COM_SHUTDOWN
-
-
COM_SLEEP
-
-
COM_STATISTICS
-
-
COM_UNLOCK
-
-
COM_UPDATE
-
-
debug
- The debug object
-
driver
- Circular reference to the driver.
-
ENUM_FLAG
-
-
errs
-
-
FIELD_TYPE_BLOB
-
-
FIELD_TYPE_CHAR
-
-
FIELD_TYPE_DATE
-
-
FIELD_TYPE_DATETIME
-
-
FIELD_TYPE_DECIMAL
-
-
FIELD_TYPE_DOUBLE
-
-
FIELD_TYPE_ENUM
-
-
FIELD_TYPE_FLOAT
-
-
FIELD_TYPE_INT24
-
-
FIELD_TYPE_INTERVAL
-
-
FIELD_TYPE_LONG
-
-
FIELD_TYPE_LONG_BLOB
-
-
FIELD_TYPE_LONGLONG
-
-
FIELD_TYPE_MEDIUM_BLOB
-
-
FIELD_TYPE_NULL
-
-
FIELD_TYPE_SET
-
-
FIELD_TYPE_SHORT
-
-
FIELD_TYPE_STRING
-
-
FIELD_TYPE_TIME
-
-
FIELD_TYPE_TIMESTAMP
-
-
FIELD_TYPE_TINY
-
-
FIELD_TYPE_TINY_BLOB
-
-
FIELD_TYPE_VAR_STRING
-
-
GROUP_FLAG
-
-
MULTIPLE_KEY_FLAG
-
-
mysqlDefaults
- The default values for our driver.
-
NOT_NULL_FLAG
-
-
PART_KEY_FLAG
-
-
pdepth
- properties depth.
-
PRI_KEY_FLAG
-
-
self
- Reference self
-
UNIQUE_KEY_FLAG
-
-
UNSIGNED_FLAG
-
-
xoid
- Discrete ojbect numbers .
-
ZEROFILL_FLAG
-
-
jdbcMysqlBase(jdbcMysqlDriver)
- Constructor for the defaults
-
append(String)
- Use properties files potentially nested to a depth of 16 by
means of setting "moreProperties" in each.
-
base()
- Return a reference to myself
-
boolValue(String, int, int)
- Common true or false values of a string.
-
copyDefaults()
- Export a copy of the defaults hashtable.
-
debugMessage(String)
-
-
eMessage(Exception)
- Put an emessage as something quasi intelligible
-
errHandlerM(int, Exception)
-
-
errHandlerP(int, Exception)
-
-
errHandlerS(int, String)
-
-
errMessage(int, Exception)
-
-
errMessage(String)
- Common error message handling with write to debug file if
operative.
-
getCommand(String)
- get a command value matching a string.
-
getDebug()
- Return a reference to debug.
-
getDefault(String)
- Return a default value for mMysql.
-
getDefaultNames()
- Return an array of the names in the Defaults Hashtable.
-
getDriver()
- Return the reference to our driver.
-
getLastInsertID(Statement)
- Get the last_insert_ID MySQL returns from an insert.
-
getOID()
- Get an object id
-
intValue(String, int, int)
- Common parse of a string into an integer value.
-
isMultipleQuery(jdbcMysqlConnex)
-
-
setMultipleQuery(jdbcMysqlConnex, boolean)
-
-
setReadDump(jdbcMysqlConnex, boolean)
-
-
setWriteDump(jdbcMysqlConnex, boolean)
-
COM_SLEEP
static final int COM_SLEEP
COM_QUIT
static final int COM_QUIT
COM_INIT_DB
static final int COM_INIT_DB
COM_QUERY
static final int COM_QUERY
COM_FIELD_LIST
static final int COM_FIELD_LIST
COM_CREATE_DB
static final int COM_CREATE_DB
COM_DROP_DB
static final int COM_DROP_DB
COM_REFRESH
static final int COM_REFRESH
COM_SHUTDOWN
static final int COM_SHUTDOWN
COM_STATISTICS
static final int COM_STATISTICS
COM_PROCESS_INFO
static final int COM_PROCESS_INFO
COM_CONNECT
static final int COM_CONNECT
COM_PROCESS_KILL
static final int COM_PROCESS_KILL
COM_DEBUG
static final int COM_DEBUG
COM_INSERT
static final int COM_INSERT
COM_UPDATE
static final int COM_UPDATE
COM_DELETE
static final int COM_DELETE
COM_CREATE_T
static final int COM_CREATE_T
COM_DROP
static final int COM_DROP
COM_ALTER
static final int COM_ALTER
COM_LOCK
static final int COM_LOCK
COM_UNLOCK
static final int COM_UNLOCK
COM_SET
static final int COM_SET
COM_GRANT
static final int COM_GRANT
COM_REPLACE
static final int COM_REPLACE
COM_COMMENT
static final int COM_COMMENT
COM_SELECT
static final int COM_SELECT
COM_DESCRIBE
static final int COM_DESCRIBE
COM_EXPLAIN
static final int COM_EXPLAIN
COM_SHOW
static final int COM_SHOW
NOT_NULL_FLAG
static final int NOT_NULL_FLAG
PRI_KEY_FLAG
static final int PRI_KEY_FLAG
UNIQUE_KEY_FLAG
static final int UNIQUE_KEY_FLAG
MULTIPLE_KEY_FLAG
static final int MULTIPLE_KEY_FLAG
BLOB_FLAG
static final int BLOB_FLAG
UNSIGNED_FLAG
static final int UNSIGNED_FLAG
ZEROFILL_FLAG
static final int ZEROFILL_FLAG
BINARY_FLAG
static final int BINARY_FLAG
ENUM_FLAG
static final int ENUM_FLAG
PART_KEY_FLAG
static final int PART_KEY_FLAG
GROUP_FLAG
static final int GROUP_FLAG
FIELD_TYPE_DECIMAL
static final int FIELD_TYPE_DECIMAL
FIELD_TYPE_TINY
static final int FIELD_TYPE_TINY
FIELD_TYPE_CHAR
static final int FIELD_TYPE_CHAR
FIELD_TYPE_SHORT
static final int FIELD_TYPE_SHORT
FIELD_TYPE_LONG
static final int FIELD_TYPE_LONG
FIELD_TYPE_FLOAT
static final int FIELD_TYPE_FLOAT
FIELD_TYPE_DOUBLE
static final int FIELD_TYPE_DOUBLE
FIELD_TYPE_NULL
static final int FIELD_TYPE_NULL
FIELD_TYPE_TIMESTAMP
static final int FIELD_TYPE_TIMESTAMP
FIELD_TYPE_LONGLONG
static final int FIELD_TYPE_LONGLONG
FIELD_TYPE_INT24
static final int FIELD_TYPE_INT24
FIELD_TYPE_DATE
static final int FIELD_TYPE_DATE
FIELD_TYPE_TIME
static final int FIELD_TYPE_TIME
FIELD_TYPE_DATETIME
static final int FIELD_TYPE_DATETIME
FIELD_TYPE_ENUM
static final int FIELD_TYPE_ENUM
FIELD_TYPE_INTERVAL
static final int FIELD_TYPE_INTERVAL
FIELD_TYPE_SET
static final int FIELD_TYPE_SET
FIELD_TYPE_TINY_BLOB
static final int FIELD_TYPE_TINY_BLOB
FIELD_TYPE_MEDIUM_BLOB
static final int FIELD_TYPE_MEDIUM_BLOB
FIELD_TYPE_LONG_BLOB
static final int FIELD_TYPE_LONG_BLOB
FIELD_TYPE_BLOB
static final int FIELD_TYPE_BLOB
FIELD_TYPE_VAR_STRING
static final int FIELD_TYPE_VAR_STRING
FIELD_TYPE_STRING
static final int FIELD_TYPE_STRING
errs
static final String errs[]
self
private static jdbcMysqlBase self
- Reference self
mysqlDefaults
private static Hashtable mysqlDefaults
- The default values for our driver.
driver
private static jdbcMysqlDriver driver
- Circular reference to the driver.
pdepth
private static int pdepth
- properties depth.
debug
private static jdbcMysqlDebug debug
- The debug object
cmds
static Hashtable cmds
- Commands Hashtable
xoid
static int xoid
- Discrete ojbect numbers .
applet
boolean applet
- Am I an applet?
jdbcMysqlBase
jdbcMysqlBase(jdbcMysqlDriver d)
- Constructor for the defaults
getOID
static int getOID()
- Get an object id
append
private boolean append(String fid)
- Use properties files potentially nested to a depth of 16 by
means of setting "moreProperties" in each.
- Parameters:
- fid - The file name of the properties file.
- Returns:
- true if no error, else false.
base
static jdbcMysqlBase base()
- Return a reference to myself
getDebug
static jdbcMysqlDebug getDebug()
- Return a reference to debug.
getDriver
static jdbcMysqlDriver getDriver()
- Return the reference to our driver.
copyDefaults
static Hashtable copyDefaults()
- Export a copy of the defaults hashtable.
getCommand
static int getCommand(String s)
- get a command value matching a string.
getDefaultNames
public static String[] getDefaultNames()
- Return an array of the names in the Defaults Hashtable.
getDefault
public static String getDefault(String what)
- Return a default value for mMysql.
- Parameters:
- what - The name of the property to return.
- Returns:
- The value of the property as a string.
setReadDump
public static void setReadDump(jdbcMysqlConnex cx,
boolean v) throws SQLException
setWriteDump
public static void setWriteDump(jdbcMysqlConnex cx,
boolean v) throws SQLException
setMultipleQuery
public static void setMultipleQuery(jdbcMysqlConnex cx,
boolean v) throws SQLException
isMultipleQuery
public static boolean isMultipleQuery(jdbcMysqlConnex cx) throws SQLException
getLastInsertID
public static long getLastInsertID(Statement st) throws SQLException
- Get the last_insert_ID MySQL returns from an insert. The result
will be -1 if the last update style statement was not an insert;
This result could be problematic if you actually insert a -1 in
an auto_increment column.
- Parameters:
- st - The Statement on which the executeUpdate(insert ...)
was actually run.
- Throws: SQLException
- if st is invalid.
errHandlerP
private void errHandlerP(int n,
Exception e) throws SQLException
errHandlerS
private void errHandlerS(int n,
String s) throws SQLException
errHandlerM
private void errHandlerM(int n,
Exception e) throws SQLException
errMessage
private String errMessage(int n,
Exception e)
debugMessage
private void debugMessage(String s)
errMessage
static void errMessage(String s) throws SQLException
- Common error message handling with write to debug file if
operative.
eMessage
static String eMessage(Exception e)
- Put an emessage as something quasi intelligible
- Parameters:
- e - Exception to show.
- Returns:
- string of the message.
boolValue
static int boolValue(String s,
int nv,
int fv)
- Common true or false values of a string.
- Parameters:
- s - The string whose value is returned.
- nv - The value returned if the string is null.
- fv - The value returned if the string fails to parse.
- Returns:
- 1 if s evaluates true, 0 if false, nv or fv depending.
intValue
static int intValue(String s,
int nv,
int fv)
- Common parse of a string into an integer value.
- Parameters:
- s - The string of which the value is to be returned.
- nv - The value to be returned if the string is null.
- fv - The value to be returned if the parse fails.
- Returns:
- the integer value of the string or nv, or fv.
All Packages Class Hierarchy This Package Previous Next Index