1 /* |
1 /* |
2 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
477 * Starting with Java SE 8, JDBC has added support for returning an update |
477 * Starting with Java SE 8, JDBC has added support for returning an update |
478 * count > Integer.MAX_VALUE. Because of this the following changes were made |
478 * count > Integer.MAX_VALUE. Because of this the following changes were made |
479 * to BatchUpdateException: |
479 * to BatchUpdateException: |
480 * <ul> |
480 * <ul> |
481 * <li>Add field longUpdateCounts</li> |
481 * <li>Add field longUpdateCounts</li> |
482 * <li>Add Constructorr which takes long[] for update counts</li> |
482 * <li>Add Constructor which takes long[] for update counts</li> |
483 * <li>Add getLargeUpdateCounts method</li> |
483 * <li>Add getLargeUpdateCounts method</li> |
484 * </ul> |
484 * </ul> |
485 * When any of the constructors are called, the int[] and long[] updateCount |
485 * When any of the constructors are called, the int[] and long[] updateCount |
486 * fields are populated by copying the one array to each other. |
486 * fields are populated by copying the one array to each other. |
487 * |
487 * |
488 * As the JDBC driver passes in the updateCounts, there has always been the |
488 * As the JDBC driver passes in the updateCounts, there has always been the |
489 * possiblity for overflow and BatchUpdateException does not need to account |
489 * possibility for overflow and BatchUpdateException does not need to account |
490 * for that, it simply copies the arrays. |
490 * for that, it simply copies the arrays. |
491 * |
491 * |
492 * JDBC drivers should always use the constructor that specifies long[] and |
492 * JDBC drivers should always use the constructor that specifies long[] and |
493 * JDBC application developers should call getLargeUpdateCounts. |
493 * JDBC application developers should call getLargeUpdateCounts. |
494 */ |
494 */ |