org.opensubsystems.core.persist.db
Class DatabaseDataUtils

java.lang.Object
  extended by org.opensubsystems.core.persist.db.DatabaseDataUtils

public final class DatabaseDataUtils
extends java.lang.Object

This class collects code fragments which are reusable for managing of the data in database.

Version:
$Id: DatabaseDataUtils.java,v 1.4 2007/01/07 06:14:18 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
1.1 2005/08/20 21:17:14 bastafidli

Method Summary
static void checkUpdateError(java.sql.Connection dbConnection, java.lang.String strDataName, java.lang.String strTableName, int iId, java.sql.Timestamp tmstpModificationDate)
          Method to check if there was a concurrent modification error when update doesn't update anything in the database (updated count == 0).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkUpdateError

public static void checkUpdateError(java.sql.Connection dbConnection,
                                    java.lang.String strDataName,
                                    java.lang.String strTableName,
                                    int iId,
                                    java.sql.Timestamp tmstpModificationDate)
                             throws OSSException
Method to check if there was a concurrent modification error when update doesn't update anything in the database (updated count == 0).

Parameters:
dbConnection - - database connection
strDataName - - name of the data object
strTableName - - name of the table
iId - - id of the data object
tmstpModificationDate - - modification date of the data object
Throws:
OSSException - - more descriptive exception


Copyright © 2003 - 2006 OpenSubsystems s.r.o.