-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QueryFactory support: For Update #192
Comments
Oooh yes, nice one! |
Would you be able to do a PR? I am sure @agarciaodeian and team would be happy to review. 👍 |
I'll consider myself challenged to do the PR -- have to unbury myself from existing real-world work first :-( |
@agarciaffdc this looks like a good enhancement idea, maybe in the meantime use the tag feature to highlight it as an enhancement? |
Here's some updates I made directly to fflib_QueryFactory to give us this functionality. Sorry I don't have time to do a PR, but hope it helps others in the meantime. Added Method
New forUpdate property
Updated toSOQL() method
|
Would be great to have this PR updated. |
@sureshkp87 and others reading this. The team is actively exploring the best approach with managing "criteria class based query factories". This PR is not the only proposed approach and we have been reviewing the merits of alternative approaches verses this approach. While we appreciate the delay is annoying, we are working to make the best choice on this question. You will appreciate that once the decision is made, there will be no looking back. ;-) |
Hello, |
A handy enhancement would be a new fluent method on fflib_QueryFactory that supports the
For Update
clausethe
addForUdpate
would do agetOrderings().clear()
as you can'tOrder By
withFor Update
. This would avoid code within a Selector class like this:The text was updated successfully, but these errors were encountered: