@Override public Object instantiateForUnitOfWorkValueHolder(UnitOfWorkValueHolder unitOfWorkValueHolder) { return ((DatabaseValueHolder)this.unitOfWorkValueHolder).instantiateForUnitOfWorkValueHolder(unitOfWorkValueHolder); }
@Override public Object instantiateForUnitOfWorkValueHolder(UnitOfWorkValueHolder unitOfWorkValueHolder) { return ((DatabaseValueHolder)this.unitOfWorkValueHolder).instantiateForUnitOfWorkValueHolder(unitOfWorkValueHolder); }
/** * Triggers UnitOfWork valueholders directly without triggering the wrapped * valueholder (this). * <p> * When in transaction and/or for pessimistic locking the UnitOfWorkValueHolder * needs to be triggered directly without triggering the wrapped valueholder. * However only the wrapped valueholder knows how to trigger the indirection, * i.e. it may be a batchValueHolder, and it stores all the info like the row * and the query. * Note: This method is not thread-safe. It must be used in a synchronizaed manner */ public Object instantiateForUnitOfWorkValueHolder(UnitOfWorkValueHolder unitOfWorkValueHolder) { if ((getWrappedServerValueHolder() != null) && (getWrappedServerValueHolder() instanceof DatabaseValueHolder)) { DatabaseValueHolder wrapped = (DatabaseValueHolder)getWrappedServerValueHolder(); return wrapped.instantiateForUnitOfWorkValueHolder(unitOfWorkValueHolder); } // The scenario of triggering a valueholder in transaction when // the RemoteUnitOfWork is on the client side may be impossible. return unitOfWorkValueHolder.buildCloneFor(getValue()); }
/** * Triggers UnitOfWork valueholders directly without triggering the wrapped * valueholder (this). * <p> * When in transaction and/or for pessimistic locking the UnitOfWorkValueHolder * needs to be triggered directly without triggering the wrapped valueholder. * However only the wrapped valueholder knows how to trigger the indirection, * i.e. it may be a batchValueHolder, and it stores all the info like the row * and the query. * Note: This method is not thread-safe. It must be used in a synchronizaed manner */ public Object instantiateForUnitOfWorkValueHolder(UnitOfWorkValueHolder unitOfWorkValueHolder) { if ((getWrappedServerValueHolder() != null) && (getWrappedServerValueHolder() instanceof DatabaseValueHolder)) { DatabaseValueHolder wrapped = (DatabaseValueHolder)getWrappedServerValueHolder(); return wrapped.instantiateForUnitOfWorkValueHolder(unitOfWorkValueHolder); } // The scenario of triggering a valueholder in transaction when // the RemoteUnitOfWork is on the client side may be impossible. return unitOfWorkValueHolder.buildCloneFor(getValue()); }
/** * Triggers UnitOfWork valueholders directly without triggering the wrapped * valueholder (this). * <p> * When in transaction and/or for pessimistic locking the UnitOfWorkValueHolder * needs to be triggered directly without triggering the wrapped valueholder. * However only the wrapped valueholder knows how to trigger the indirection, * i.e. it may be a batchValueHolder, and it stores all the info like the row * and the query. * Note: This method is not thread-safe. It must be used in a synchronizaed manner */ public Object instantiateForUnitOfWorkValueHolder(UnitOfWorkValueHolder unitOfWorkValueHolder) { if ((getWrappedServerValueHolder() != null) && (getWrappedServerValueHolder() instanceof DatabaseValueHolder)) { DatabaseValueHolder wrapped = (DatabaseValueHolder)getWrappedServerValueHolder(); return wrapped.instantiateForUnitOfWorkValueHolder(unitOfWorkValueHolder); } // The scenario of triggering a valueholder in transaction when // the RemoteUnitOfWork is on the client side may be impossible. return unitOfWorkValueHolder.buildCloneFor(getValue()); }
return wrapped.instantiateForUnitOfWorkValueHolder(this);
return wrapped.instantiateForUnitOfWorkValueHolder(this);
return wrapped.instantiateForUnitOfWorkValueHolder(this);