3536373839404142434445
Sequence seq = dao.read( key ); if( seq == null ){ seq = new Sequence( key ); inserted =true; } seq.incLastNumber( step ); if( inserted ) dao.create( seq ); else dao.update( seq );