Inheritance diagram for sosc::DbTool:

Public Methods | |
| DbTool (String className, String url, String userName, String password) throws Exception | |
| DbTool (Connection connection) throws Exception | |
| Connection | getConnection () throws Exception |
| String | getUserName () |
| void | close () throws Exception |
| void | rollback () throws Exception |
| void | commit () throws Exception |
| void | setAutoCommit (boolean autocommit) throws Exception |
| String | q (Object o) |
| String | quote (String s) throws SQLException |
| String | getString (String sql) throws Exception |
| int | getInt (String sql) throws Exception |
| double | getDouble (String sql) throws Exception |
| long | getLong (String sql) throws Exception |
| Object | getObject (String sql) throws Exception |
| ResultSet | query (String sql) throws Exception |
| void | update (String sql) throws Exception |
| Statement | createStatement () throws Exception |
| String | inClause (Collection c, boolean quoted) throws Exception |
| int | rowCount (ResultSet r) throws Exception |
| List | toList (ResultSet r) throws Exception |
| StringBuffer | resultSetToXML (ResultSet r) throws Exception |
| StringBuffer | resultSetToXML (ResultSet r, StringBuffer sb, int count) throws Exception |
| void | finalize () |
Static Public Methods | |
| Map | toMap (ResultSet r) throws Exception |
| Map | toMap (ResultSet r, boolean advance) throws Exception |
Protected Attributes | |
| Connection | connection |
Private Methods | |
| void | setConnection (Connection connection) throws SQLException |
| void | setConnection (String className, String url, String userName, String password) throws Exception |
Private Attributes | |
| String | className |
| String | url |
| String | userName |
| String | password |
| boolean | connectionIsPrivate = true |
|
||||||||||||||||||||
|
Definition at line 41 of file DbTool.java. References sosc::DbTool::className, sosc::DbTool::password, sosc::DbTool::setConnection(), sosc::DbTool::url, and sosc::DbTool::userName. |
|
|
Definition at line 48 of file DbTool.java. References sosc::DbTool::connection, and sosc::DbTool::setConnection(). |
|
|
Definition at line 91 of file DbTool.java. References sosc::DbTool::connection. |
|
|
Definition at line 99 of file DbTool.java. References sosc::DbTool::connection. Referenced by sosc::JobTool::addJob(), and sosc::JobTool::runJob(). |
|
|
Definition at line 245 of file DbTool.java. References sosc::DbTool::connection. |
|
|
Definition at line 489 of file DbTool.java. References sosc::DbTool::connection, and sosc::DbTool::connectionIsPrivate. |
|
|
Definition at line 77 of file DbTool.java. References sosc::DbTool::connection, and sosc::DbTool::connectionIsPrivate. |
|
|
Definition at line 164 of file DbTool.java. References sosc::DbTool::getString(). |
|
|
Definition at line 159 of file DbTool.java. References sosc::DbTool::getString(). Referenced by sosc::JobTool::addJob(), and sosc::BatchTool::createBatch(). |
|
|
Definition at line 169 of file DbTool.java. References sosc::DbTool::getString(). |
|
|
Definition at line 174 of file DbTool.java. References sosc::DbTool::query(). Referenced by sosc::DbTool::getString(). |
|
|
Definition at line 154 of file DbTool.java. References sosc::DbTool::getObject(). Referenced by sosc::DbTool::getDouble(), sosc::DbTool::getInt(), sosc::DbTool::getLong(), and sosc::JobTool::runJob(). |
|
|
Definition at line 86 of file DbTool.java. References sosc::DbTool::userName. |
|
||||||||||||
|
Converts the specified collection to an 'in clause' by calling toString() on each item in the collection. If quoted is true, then the resuting string is also passed through Definition at line 257 of file DbTool.java. References sosc::DbTool::quote(). |
|
|
This is a generic method that returns the parameter surrounded by single quotes ("apostrophes"). if a null or a empty string was entered, then a single space is returned. It returns null if the database returns an empty string as the column value. @return the parameter surrounded by single quotes (apostrophes). Definition at line 114 of file DbTool.java. |
|
|
Creates a statement and runs the specified SQL. Note that the caller will need to call Definition at line 190 of file DbTool.java. References sosc::DbTool::connection. Referenced by sosc::BatchTool::addIntContents(), sosc::BatchTool::addVarcharContents(), sosc::AuthTool::authenticate(), sosc::BatchTool::batchSummary(), sosc::BatchTool::getBatchContents(), sosc::BatchTool::getContentArguments(), sosc::AuthTool::getIdNames(), sosc::DbTool::getObject(), sosc::BatchTool::getProfileId(), sosc::AuthTool::getUserEmail(), sosc::AuthTool::isGroupMember(), sosc::JobTool::runJob(), and sosc::Commworx::simpleAuth(). |
|
|
Definition at line 143 of file DbTool.java. Referenced by sosc::BatchTool::addIntContents(), sosc::JobTool::addJob(), sosc::AuthTool::authenticate(), sosc::AuthTool::changePassword(), sosc::BatchTool::createProfile(), sosc::AuthTool::getGroupMembers(), sosc::BatchTool::getProfileId(), sosc::AuthTool::getUserEmail(), sosc::DbTool::inClause(), sosc::JobTool::runJob(), sosc::AuthTool::setUserEmail(), and sosc::AuthTool::setUserPassword(). |
|
||||||||||||||||
|
Definition at line 458 of file DbTool.java. |
|
|
Definition at line 451 of file DbTool.java. |
|
|
Definition at line 95 of file DbTool.java. References sosc::DbTool::connection. |
|
|
Definition at line 282 of file DbTool.java. References sosc::DbTool::rowCount(). Referenced by sosc::BatchTool::getContentArguments(), sosc::BatchTool::getProfileId(), and sosc::DbTool::rowCount(). |
|
|
Definition at line 103 of file DbTool.java. References sosc::DbTool::connection. |
|
||||||||||||||||||||
|
Definition at line 65 of file DbTool.java. References sosc::DbTool::className, sosc::DbTool::password, sosc::DbTool::setConnection(), sosc::DbTool::url, and sosc::DbTool::userName. |
|
|
Definition at line 55 of file DbTool.java. References sosc::DbTool::connection. Referenced by sosc::DbTool::DbTool(), and sosc::DbTool::setConnection(). |
|
|
All roads lead back to core. Of course, this works only for a single row. Definition at line 328 of file DbTool.java. |
|
||||||||||||
|
Returns the NEXT row on the specified result set as a Map. If advance is true then the result set is moved to the next row. If false then the resultSet is left on whatever row it started on. If there is no current row then an empty Map is returned. Definition at line 304 of file DbTool.java. |
|
|
All roads lead back to core. Of course, this works only for a single row. Definition at line 293 of file DbTool.java. Referenced by sosc::BatchTool::addIntContents(), and sosc::JobTool::runJob(). |
|
|
|
Definition at line 32 of file DbTool.java. Referenced by sosc::DbTool::DbTool(), and sosc::DbTool::setConnection(). |
|
|
Definition at line 31 of file DbTool.java. Referenced by sosc::BatchTool::BatchTool(), sosc::DbTool::close(), sosc::DbTool::commit(), sosc::DbTool::createStatement(), sosc::DbTool::DbTool(), sosc::DbTool::finalize(), sosc::DbTool::getConnection(), sosc::DbTool::query(), sosc::DbTool::rollback(), sosc::DbTool::setAutoCommit(), sosc::DbTool::setConnection(), and sosc::DbTool::update(). |
|
|
Definition at line 36 of file DbTool.java. Referenced by sosc::DbTool::finalize(), and sosc::DbTool::getConnection(). |
|
|
Definition at line 35 of file DbTool.java. Referenced by sosc::DbTool::DbTool(), and sosc::DbTool::setConnection(). |
|
|
Definition at line 33 of file DbTool.java. Referenced by sosc::DbTool::DbTool(), and sosc::DbTool::setConnection(). |
|
|
Definition at line 34 of file DbTool.java. Referenced by sosc::DbTool::DbTool(), sosc::DbTool::getUserName(), and sosc::DbTool::setConnection(). |
1.2.15