Skip to content

Commit

Permalink
The getters and setters for useBulkCopyForBatchInsert is not availabl…
Browse files Browse the repository at this point in the history
…e for SQLServerConnectionPoolProxy #2245 (#2277)
  • Loading branch information
PriyadharshiniP authored Dec 27, 2023
1 parent 5db7465 commit 4dc1be0
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,4 +497,19 @@ CallableStatement prepareCall(String sql, int nType, int nConcur, int nHold,
* A boolean that indicates if the driver should calculate precision from inputted big decimal values.
*/
void setCalcBigDecimalPrecision(boolean calcBigDecimalPrecision);

/**
* Specifies the flag for using Bulk Copy API for batch insert operations.
*
* @param useBulkCopyForBatchInsert
* boolean value for useBulkCopyForBatchInsert.
*/
void setUseBulkCopyForBatchInsert(boolean useBulkCopyForBatchInsert) ;

/**
* Returns the useBulkCopyForBatchInsert value.
*
* @return flag for using Bulk Copy API for batch insert operations.
*/
boolean getUseBulkCopyForBatchInsert();
}
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ final int getSocketTimeoutMilliseconds() {
*
* @return flag for using Bulk Copy API for batch insert operations.
*/
@Override
public boolean getUseBulkCopyForBatchInsert() {
return useBulkCopyForBatchInsert;
}
Expand All @@ -798,6 +799,7 @@ public boolean getUseBulkCopyForBatchInsert() {
* @param useBulkCopyForBatchInsert
* boolean value for useBulkCopyForBatchInsert.
*/
@Override
public void setUseBulkCopyForBatchInsert(boolean useBulkCopyForBatchInsert) {
this.useBulkCopyForBatchInsert = useBulkCopyForBatchInsert;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -712,4 +712,24 @@ public boolean getCalcBigDecimalPrecision() {
public void setCalcBigDecimalPrecision(boolean calcBigDecimalPrecision) {
wrappedConnection.setCalcBigDecimalPrecision(calcBigDecimalPrecision);
}
/**
* Returns the useBulkCopyForBatchInsert value.
*
* @return flag for using Bulk Copy API for batch insert operations.
*/
@Override
public boolean getUseBulkCopyForBatchInsert() {
return wrappedConnection.getUseBulkCopyForBatchInsert();
}

/**
* Specifies the flag for using Bulk Copy API for batch insert operations.
*
* @param useBulkCopyForBatchInsert
* boolean value for useBulkCopyForBatchInsert.
*/
@Override
public void setUseBulkCopyForBatchInsert(boolean useBulkCopyForBatchInsert) {
wrappedConnection.setUseBulkCopyForBatchInsert(useBulkCopyForBatchInsert);
}
}

0 comments on commit 4dc1be0

Please sign in to comment.