Improved : Update missing entries in GDSL descriptors and cleanup findOne to use EntityQuery instead.

(OFBIZ-10566)

Deprecation of findOne DSL method in favor of entityQuery from DSL method

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1840898 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gil Portenseigne
2018-09-14 08:19:39 +00:00
parent b09ef50ebd
commit 00f47d07dc
4 changed files with 10 additions and 7 deletions
@@ -25,9 +25,9 @@ contribute(currentType(subType('groovy.lang.Script'))) {
property name: 'security', type: 'org.apache.ofbiz.security.Security'
method name: 'runService', type: 'java.util.Map', params: [serviceName: 'String', inputMap: 'java.util.Map']
method name: 'run', type: 'java.util.Map', params: [args: 'java.util.Map']
method name: 'makeValue', type: 'java.util.Map', params: [entityName: 'String']
method name: 'findOne', type: 'java.util.Map', params: [entityName: 'String', fields: 'java.util.Map', useCache: 'boolean']
method name: 'findList', type: 'java.util.List', params: [entityName: 'String', inputMap: 'java.util.Map']
method name: 'select', type: 'org.apache.ofbiz.entity.util.EntityQuery', params: [entity: 'java.util.Set']
method name: 'select', type: 'org.apache.ofbiz.entity.util.EntityQuery', params: [entity: 'String...']
method name: 'from', type: 'org.apache.ofbiz.entity.util.EntityQuery', params: [entity: 'java.lang.Object']
@@ -31,6 +31,8 @@ contributor(groovyContext) {
method name: 'runService', type: 'java.util.Map', params: [serviceName: 'String', inputMap: 'java.util.Map']
method name: 'run', type: 'java.util.Map', params: [args: 'java.util.Map']
method name: 'makeValue', type: 'java.util.Map', params: [entityName: 'String']
method name: 'findOne', type: 'java.util.Map', params: [entityName: 'String', fields: 'java.util.Map', useCache: 'boolean']
method name: 'select', type: 'org.apache.ofbiz.entity.util.EntityQuery', params: [entity: 'java.util.Set']
method name: 'select', type: 'org.apache.ofbiz.entity.util.EntityQuery', params: [entity: 'String...']
method name: 'from', type: 'org.apache.ofbiz.entity.util.EntityQuery', params: [entity: 'java.lang.Object']
@@ -42,4 +44,5 @@ contributor(groovyContext) {
method name: 'logInfo', type: 'void', params: [message: 'String']
method name: 'logWarning', type: 'void', params: [message: 'String']
method name: 'logError', type: 'void', params: [message: 'String']
method name: 'logVerbose', type: 'void', params: [message: 'String']
}