Skip to content

Commit 4dc1be0

Browse files
The getters and setters for useBulkCopyForBatchInsert is not available for SQLServerConnectionPoolProxy #2245 (#2277)
1 parent 5db7465 commit 4dc1be0

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

src/main/java/com/microsoft/sqlserver/jdbc/ISQLServerConnection.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,4 +497,19 @@ CallableStatement prepareCall(String sql, int nType, int nConcur, int nHold,
497497
* A boolean that indicates if the driver should calculate precision from inputted big decimal values.
498498
*/
499499
void setCalcBigDecimalPrecision(boolean calcBigDecimalPrecision);
500+
501+
/**
502+
* Specifies the flag for using Bulk Copy API for batch insert operations.
503+
*
504+
* @param useBulkCopyForBatchInsert
505+
* boolean value for useBulkCopyForBatchInsert.
506+
*/
507+
void setUseBulkCopyForBatchInsert(boolean useBulkCopyForBatchInsert) ;
508+
509+
/**
510+
* Returns the useBulkCopyForBatchInsert value.
511+
*
512+
* @return flag for using Bulk Copy API for batch insert operations.
513+
*/
514+
boolean getUseBulkCopyForBatchInsert();
500515
}

src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@ final int getSocketTimeoutMilliseconds() {
788788
*
789789
* @return flag for using Bulk Copy API for batch insert operations.
790790
*/
791+
@Override
791792
public boolean getUseBulkCopyForBatchInsert() {
792793
return useBulkCopyForBatchInsert;
793794
}
@@ -798,6 +799,7 @@ public boolean getUseBulkCopyForBatchInsert() {
798799
* @param useBulkCopyForBatchInsert
799800
* boolean value for useBulkCopyForBatchInsert.
800801
*/
802+
@Override
801803
public void setUseBulkCopyForBatchInsert(boolean useBulkCopyForBatchInsert) {
802804
this.useBulkCopyForBatchInsert = useBulkCopyForBatchInsert;
803805
}

src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnectionPoolProxy.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,4 +712,24 @@ public boolean getCalcBigDecimalPrecision() {
712712
public void setCalcBigDecimalPrecision(boolean calcBigDecimalPrecision) {
713713
wrappedConnection.setCalcBigDecimalPrecision(calcBigDecimalPrecision);
714714
}
715+
/**
716+
* Returns the useBulkCopyForBatchInsert value.
717+
*
718+
* @return flag for using Bulk Copy API for batch insert operations.
719+
*/
720+
@Override
721+
public boolean getUseBulkCopyForBatchInsert() {
722+
return wrappedConnection.getUseBulkCopyForBatchInsert();
723+
}
724+
725+
/**
726+
* Specifies the flag for using Bulk Copy API for batch insert operations.
727+
*
728+
* @param useBulkCopyForBatchInsert
729+
* boolean value for useBulkCopyForBatchInsert.
730+
*/
731+
@Override
732+
public void setUseBulkCopyForBatchInsert(boolean useBulkCopyForBatchInsert) {
733+
wrappedConnection.setUseBulkCopyForBatchInsert(useBulkCopyForBatchInsert);
734+
}
715735
}

0 commit comments

Comments
 (0)