public class AlfrescoNodePropertyResultHandler extends java.lang.Object implements org.apache.ibatis.session.ResultHandler<AlfrescoNodeProperty>
Constructor and Description |
---|
AlfrescoNodePropertyResultHandler(int queryLimit,
org.alfresco.service.namespace.NamespaceService namespaceService,
org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
AlfrescoEmbDictionaryServiceImpl alfrescoOCDictionaryService)
Constructor for Custom Result Handler
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
addNonNullProperty(java.lang.String propKey,
java.lang.Object propVal,
java.lang.Integer propIndex,
java.util.Map<java.lang.String,java.lang.Object> props)
Helper function to add a property to our list of props
|
java.util.List<OpenContentObject> |
getOcos() |
void |
handleResult(org.apache.ibatis.session.ResultContext<? extends AlfrescoNodeProperty> context)
This will fire once per row returned from the SQL query, so it will fire once per property.
|
public AlfrescoNodePropertyResultHandler(int queryLimit, org.alfresco.service.namespace.NamespaceService namespaceService, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, AlfrescoEmbDictionaryServiceImpl alfrescoOCDictionaryService)
queryLimit
- namespaceService
- dictionaryService
- alfrescoOCDictionaryService
- public void handleResult(org.apache.ibatis.session.ResultContext<? extends AlfrescoNodeProperty> context)
handleResult
in interface org.apache.ibatis.session.ResultHandler<AlfrescoNodeProperty>
context
- an AlfrescoNodeProperty object, which will represent one row in
alf_node_propertiespublic java.util.List<OpenContentObject> getOcos()
public java.util.Map<java.lang.String,java.lang.Object> addNonNullProperty(java.lang.String propKey, java.lang.Object propVal, java.lang.Integer propIndex, java.util.Map<java.lang.String,java.lang.Object> props)
propKey
- the name of the property to addpropVal
- the value of the property to addpropIndex
- the index of the value to add if it's multi (-1 if not multi)props
- The list of props we are adding to