/** * INTERNAL: * This method is used internally to return the active batch writing mechanism to batch the statement */ public BatchWritingMechanism getActiveBatchWritingMechanism(AbstractSession session) { if (this.activeBatchWritingMechanism == null) { // If the platform defines a custom mechanism, then use it. if (((DatabasePlatform)this.platform).getBatchWritingMechanism() != null) { this.activeBatchWritingMechanism = ((DatabasePlatform)this.platform).getBatchWritingMechanism().clone(); this.activeBatchWritingMechanism.setAccessor(this, session); } else { this.activeBatchWritingMechanism = getParameterizedMechanism(); } } return this.activeBatchWritingMechanism; }
/** * INTERNAL: * This method is used internally to return the active batch writing mechanism to batch the statement */ public BatchWritingMechanism getActiveBatchWritingMechanism(AbstractSession session) { if (this.activeBatchWritingMechanism == null) { // If the platform defines a custom mechanism, then use it. if (((DatabasePlatform)this.platform).getBatchWritingMechanism() != null) { this.activeBatchWritingMechanism = ((DatabasePlatform)this.platform).getBatchWritingMechanism().clone(); this.activeBatchWritingMechanism.setAccessor(this, session); } else { this.activeBatchWritingMechanism = getParameterizedMechanism(); } } return this.activeBatchWritingMechanism; }