Links to HEAD: | (view) (annotate) |
Sticky Revision: | |
Sort logs by: |
Copied the aglappe-jung branch into trunk.
Re-branching for JUNG2 development
Machine: added main and some other methods; MySQLConnection: added explicit handling of some exceptions
MySQLConnection now throwing SQLException on connect Many files changed following this: all calling classes now re-throwing or catching the SQLException
Made public getUserName
New static method getUserName and new constructor with only server and db
Updated TableSorter to compile in Java 1.5 and some trivial changes in comments
Made loadMySQLDriver method public (needed to call it from other class) and static (makes more sense)
Added getters/setters to host,db,user and password in MySQLConnection Added another constructor to QueryThread to take just the MySQLConnection as argument
Simplified the code for dealing with text/numerical keys. Now there's no more double methods Integer/String, rather the methos use a generic Object[] that stores either String[] or Integer[] depending on the case. Thus modified a few methods in DataDistributer, DataDistribution and MySQLConnection.
Now split of data also working with text-based keys as well as numerical MySQLConnection: - method getAllIds4KeyAndTable now splitted into two methods one for numerical ids and another for text ids - new methods getColumnType and isKeyNumerical DataDistribution: - method getIdSetsFromNodes splitted into two one for numerical ids one for text ids DataDistributer: - new methods: splitIdsIntoSets now splitted into two methods one numerical, one text - change methods: splitTableToCluster, splitTable, insertIdsToKeyMaster, removePK, addPK, createNewKeyMasterTbl, removeZeros, loadSplitData, dumpSplitData to make them work for both text and numeric keys. Introduced generic type T in some of them - some bugs corrected: -- an important one in createNewKeyMasterTbl, was introducing record in dbs_keys with srcDb instead of destDb as it should have been -- some bugs in loadSplitData and dumpSplitData to account for cases in which there are less ids than number of nodes and thus some nodes don't get any data. Wasn't counting with this before.
Fixed bug in getTables4Db. Was closing the connection. Shouldn't do this! Add method getAllIds4KeyAndTables, moved from DataDistribution. It makes more sense to have it here.
Got rid of getTables4Db in DataDistribution Add method getTables4Db to MySQLConnection. Makes a lot more sense. Changed accordingly the only call to the method in DataDistribution's method chkCounts
Introduced better javadoc comments in constructors.
Added method getCreateIndex4Table
Fixed bug in getAllIndexes4Table, the SELECT needed a DISTINCT
Got rid of method dbExists. Was useless and not working.
Added method setSqlMode, to set sql_mode server variable
Added method dbExists to check whether database exists in server, used in constructor that passes a dbName Moved all the private methods to the beginning of methods section
Changed comments in constructors Changed in method readConnectionFile: - variable to count mandatory parameters to paramCount - number of mandatory parameters now 4, dbname is also mandatory
Now executeSQL method throws exception instead of catching it. Thought it was better than the calling class deals with these exceptions.
Added getConnectionObject Added printDbSizeInfo and 2 getRange methods from utils4DB Made private the loadMySQLDriver and readConnectionFile methods
Initial commit. Class to create a connection to mysql db with basic functionality. Cann take parameters for connection as argument in constructor or from connection file (passing the filename to the constructor) Using code from both DBConnection (henning) and mySQLConnect (ioannis)
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.