/** * INTERNAL: * Prepare the receiver for execution in a session. In particular, * verify that the object is not null and contains a valid primary key. */ public void prepareForExecution() throws QueryException { super.prepareForExecution(); // Set the translation row if ((this.translationRow == null) || this.translationRow.isEmpty()) { if (this.isFullRowRequired) { this.translationRow = this.descriptor.getObjectBuilder().buildRow(this.object, this.session, WriteType.UNDEFINED); } else { this.translationRow = this.descriptor.getObjectBuilder().buildRowForTranslation(this.object, this.session); } } // Add the write lock field if required if (this.usesOptimisticLocking) { this.descriptor.getOptimisticLockingPolicy().addLockValuesToTranslationRow(this); } } }
/** * INTERNAL: * Prepare the receiver for execution in a session. In particular, * verify that the object is not null and contains a valid primary key. */ public void prepareForExecution() throws QueryException { super.prepareForExecution(); // Set the translation row if ((this.translationRow == null) || this.translationRow.isEmpty()) { if (this.isFullRowRequired) { this.translationRow = this.descriptor.getObjectBuilder().buildRow(this.object, this.session, WriteType.UNDEFINED); } else { this.translationRow = this.descriptor.getObjectBuilder().buildRowForTranslation(this.object, this.session); } } // Add the write lock field if required if (this.usesOptimisticLocking) { this.descriptor.getOptimisticLockingPolicy().addLockValuesToTranslationRow(this); } } }
/** * INTERNAL: * Prepare the receiver for execution in a session. In particular, * verify that the object is not null and contains a valid primary key. */ public void prepareForExecution() throws QueryException { super.prepareForExecution(); // Set the translation row if ((this.translationRow == null) || this.translationRow.isEmpty()) { if (this.isFullRowRequired) { this.translationRow = this.descriptor.getObjectBuilder().buildRow(this.object, this.session); } else { this.translationRow = this.descriptor.getObjectBuilder().buildRowForTranslation(this.object, this.session); } } // Add the write lock field if required if (this.descriptor.usesOptimisticLocking()) { this.descriptor.getOptimisticLockingPolicy().addLockValuesToTranslationRow(this); } } }
lockingPolicy.addLockValuesToTranslationRow(writeQuery);
policy.addLockValuesToTranslationRow(writeQuery);
policy.addLockValuesToTranslationRow(writeQuery);
policy.addLockValuesToTranslationRow(writeQuery);
lockingPolicy.addLockValuesToTranslationRow(writeQuery);
lockingPolicy.addLockValuesToTranslationRow(writeQuery);