-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Lock handling support #4009
Lock handling support #4009
Conversation
Thanks for your pull request! This pull request does not follow the contribution rules. Could you have a look? ❌ All commit messages should start with a JIRA issue key matching pattern › This message was automatically generated. |
08b921a
to
c4c129f
Compare
24252d7
to
d3dca21
Compare
… the source alias to resolve lock mode during initializer creation. Introduce notion of aggregate function with an optional filter clause. Implement support for rendering locks into SQL. Move locking tests to orm package
result = 31 * result + ( followOnLocking != null ? followOnLocking.hashCode() : 0 ); | ||
result = 31 * result + ( scope ? 1 : 0 ); | ||
return result; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great to use Objects static util methods to simplify, if only from code readability perspective.
@Override | ||
public boolean supportsNoWait() { | ||
return getVersion() >= 2010; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can reuse this method in other methods to centralize the logic.
@@ -3515,6 +3534,15 @@ public boolean supportsNoWait() { | |||
return false; | |||
} | |||
|
|||
/** | |||
* Does this dialect/database support WAIT timeout. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super minor, but a '?' seems better alternative at the end of sentence.
LockMode
in SqlAst andFetch
/DomainResult
with source alias to resolve lock modes right before executionDialect
methodsgetWriteLockRowIdentifier()
,getReadLockRowIdentifier()
as replacement forforUpdateOfColumns
** Needed to determine whether follow on locking is required
SelfRenderingSqmAggregateFunction
for rendering SQL FILTER clause