-
Notifications
You must be signed in to change notification settings - Fork 614
OFBIZ-13313 #923
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
base: trunk
Are you sure you want to change the base?
OFBIZ-13313 #923
Conversation
Creates an interface for queryable objects, or objects that have a delegator. Allows for shorter queries. Thanks to Jacopo and Nicolas for the feedback.
Fixes the param name in javadoc
|
|
||
| enum OperationType { INSERT, UPDATE, DELETE } | ||
|
|
||
| Delegator getDelegator(); |
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.
This declaration is not required since it is an inherited method.
| import org.apache.ofbiz.entity.Delegator; | ||
|
|
||
| /** | ||
| * Interface used for the <code>EntityQuery</code> to set the delegator to yse for the query. |
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.
The Javadoc should just describe the capability of the interface without directly mentioning the classes that may use it (such as EntityQuery). There are also a few typos, such as: "yse", "easyer".
| public interface Queryable { | ||
|
|
||
| /** | ||
| * Gets the GenericEntityDelegator associated with this dispatcher |
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.
The Javadoc is not correct as it mentions GenericEntityDelegator rather than Delegator and it mentions "this dispatcher" which is out of context in this interface.
|
Thanks Gaetan, The introduction of the new interface makes sense and solves the concern I had. |
Fixes points raised by Jacopo. Thanks for the review.
Typo
|
|
Thanks for the review, all issues should have been fixed. |
|
Thanks Gaetan, it looks good to me now. |



EntityQuery use dispatcher
Improved: Creates an interface for queryable objects, or objects that have a delegator.
(OFBIZ-13313)
Explanation: Allows the use of the dispatcher directly in the EntityQuery.
Created the Queryable interface to do so.
Thanks: to Jacopo and Nicolas for the feedback.