Project

General

Profile

« Previous | Next » 

Revision 757

Added by bojilova almost 23 years ago

- new db adapter for MS SQL Server
- changed the getUniqueID(conn, tableName) to return the last generated by the db unique ID
instead of generating unique ID first by the appl and then supplied to the insert,
because SQL Server doesn't have capabilities
unique ID to be generated on the client and then supplied to the insert.

View differences:

DBAdapter.java
50 50
  /**
51 51
   * Unique ID generator
52 52
   *
53
   * @param conn db connection in which to generate the unique id
54
   * @param tableName the table which unique id to generate
53
   * @param conn db connection in which the unique id was generated
54
   * @param tableName the table which unique id was generate
55 55
   * @exception SQLException <br/> any SQLException that can be thrown 
56 56
   *            during the db operation
57 57
   * @return return the generated unique id as a long type
58 58
   */
59 59
  public abstract long getUniqueID(Connection conn, String tableName) 
60 60
                                                  throws SQLException;
61

  
61 62
  /**
62 63
   * The function name that gets the current date and time
63 64
   * from the database server

Also available in: Unified diff