cluster5.server.datastorage
Class DbTools

java.lang.Object
  extended by cluster5.server.datastorage.DbTools

public class DbTools
extends java.lang.Object


Constructor Summary
DbTools()
           
 
Method Summary
static java.lang.Long getLastGeneratedId(java.sql.Statement statement)
          For this to work the prepared statement has to be created with the Statement.RETURN_GENERATED_KEYS parameter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbTools

public DbTools()
Method Detail

getLastGeneratedId

public static java.lang.Long getLastGeneratedId(java.sql.Statement statement)
For this to work the prepared statement has to be created with the Statement.RETURN_GENERATED_KEYS parameter.

Parameters:
statement -
Returns:
last generated key