From: Hendrik <nh...@us...> - 2007-03-11 20:59:24
|
Update of /cvsroot/arianne/marauroa/src/marauroa/server/game/db In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv23921/src/marauroa/server/game/db Modified Files: Transaction.java JDBCTransaction.java Log Message: fixed mismatching parameters and document but not thrown exceptions in javadoc Index: JDBCTransaction.java =================================================================== RCS file: /cvsroot/arianne/marauroa/src/marauroa/server/game/db/JDBCTransaction.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** JDBCTransaction.java 10 Mar 2007 22:21:28 -0000 1.9 --- JDBCTransaction.java 11 Mar 2007 20:59:20 -0000 1.10 *************** *** 63,68 **** */ public void begin() throws SQLException { ! Statement stmt = connection.createStatement(); ! stmt.execute("start transaction;"); } --- 63,68 ---- */ public void begin() throws SQLException { ! Statement stmt = connection.createStatement(); ! stmt.execute("start transaction;"); } *************** *** 70,79 **** * commits the changes made to backstore. * ! * @exception TransactionException if the underlaying backstore throws an Exception ! * @throws SQLException */ public void commit() throws SQLException { ! logger.debug("Commiting"); ! connection.commit(); } --- 70,78 ---- * commits the changes made to backstore. * ! * @throws SQLException if the underlaying backstore throws an Exception */ public void commit() throws SQLException { ! logger.debug("Commiting"); ! connection.commit(); } *************** *** 82,87 **** */ public void rollback() throws SQLException { ! logger.debug("Rollback"); ! connection.rollback(); } --- 81,86 ---- */ public void rollback() throws SQLException { ! logger.debug("Rollback"); ! connection.rollback(); } Index: Transaction.java =================================================================== RCS file: /cvsroot/arianne/marauroa/src/marauroa/server/game/db/Transaction.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Transaction.java 28 Feb 2007 20:37:50 -0000 1.5 --- Transaction.java 11 Mar 2007 20:59:20 -0000 1.6 *************** *** 38,43 **** * commits the changes made to backstore. * ! * @exception TransactionException if the underlaying backstore throws an Exception ! * @throws SQLException */ public void commit() throws SQLException; --- 38,42 ---- * commits the changes made to backstore. * ! * @throws SQLException if the underlaying backstore throws an Exception */ public void commit() throws SQLException; *************** *** 45,48 **** --- 44,49 ---- /** * Makes previous changes to backstore invalid + * + * @throws SQLException if the underlaying backstore throws an Exception */ public void rollback() throws SQLException; |