code: protected int getStartValue(Connection con)
     {
  
        Statement stmt = null;
        ResultSet trs = null;
        try
        {
           String query;
  
           String tableItem = DBInitializerHelper.getItemTableName(containerConfig);
           if (JDBCUtils.tableExists(tableItem, con))
           {
              query = "select max(N_ORDER_NUM) from " + tableItem;
           }
           else
           {
              return -1;
           }
           stmt = con.createStatement();
           trs = stmt.executeQuery(query);
           if (trs.next() && trs.getInt(1) >= 0)
           {
              return trs.getInt(1);
           }
           else
           {
              return -1;
           }
  
        }
        catch (SQLException e)
        {
           if (LOG.isDebugEnabled())
           {
              LOG.debug("SQLException occurred while calculate the sequence start value", e);
           }
           return -1;
        }
        finally
        {
           JDBCUtils.freeResources(trs, stmt, null);
        }
     }
docs: Init Start value for sequence.