How does FireStorm/DAO support DB2 sequences?
Once you have imported a schema into FireStorm/DAO it is possible to enter a "sequence name" for columns where you want FireStorm to automatically set the value of that column based on the specified sequence.
The generated DAO "insert" method will obtain the next value from the sequence before inserting the new row. To use this feature you should use the following programming model.
Sample code to use DB2 sequence:
CustomerDao dao = CustomerDaoFactory.create();
Customer customer = new Customer();
customer.setId( null );
customer.setName( "Andy" );
CustomerPk pk = dao.insert( customer);
System.out.println(??New customer ID is " + pk.getId() );
<

