diff --git a/source/java/org/alfresco/repo/node/getchildren/FilterSortNodeEntity.java b/source/java/org/alfresco/repo/node/getchildren/FilterSortNodeEntity.java index dad56b5798..655134bdab 100644 --- a/source/java/org/alfresco/repo/node/getchildren/FilterSortNodeEntity.java +++ b/source/java/org/alfresco/repo/node/getchildren/FilterSortNodeEntity.java @@ -72,63 +72,63 @@ public class FilterSortNodeEntity } public String getPattern() - { - return pattern; - } + { + return pattern; + } - protected String escape(String s, char escapeChar) - { - StringBuilder sb = new StringBuilder(); - int idx = -1; - int offset = 0; - do - { - idx = s.indexOf(escapeChar, offset); - if(idx != -1) - { - sb.append(s.substring(offset, idx)); - sb.append("\\"); - sb.append(escapeChar); - offset = idx + 1; - } - } - while(idx != -1); - sb.append(s.substring(offset)); - return sb.toString(); - } - - public void setPattern(String pattern) - { - if(pattern != null) - { - // escape the '%' character with '\' (standard SQL escape character) - pattern = escape(pattern, '%'); - // replace the wildcard character '*' with the one used in database queries i.e. '%' - this.pattern = pattern.replace('*', '%'); - } - } + protected String escape(String s, char escapeChar) + { + StringBuilder sb = new StringBuilder(); + int idx = -1; + int offset = 0; + do + { + idx = s.indexOf(escapeChar, offset); + if(idx != -1) + { + sb.append(s.substring(offset, idx)); + sb.append("\\"); + sb.append(escapeChar); + offset = idx + 1; + } + } + while(idx != -1); + sb.append(s.substring(offset)); + return sb.toString(); + } + + public void setPattern(String pattern) + { + if(pattern != null) + { + // escape the '%' character with '\' (standard SQL escape character) + pattern = escape(pattern, '%'); + // replace the wildcard character '*' with the one used in database queries i.e. '%' + this.pattern = pattern.replace('*', '%'); + } + } - public void setAssocTypeQNameIds(Set assocTypeQNameIds) - { - this.assocTypeQNameIds = assocTypeQNameIds; - } - - public Set getAssocTypeQNameIds() - { - return assocTypeQNameIds; - } + public void setAssocTypeQNameIds(Set assocTypeQNameIds) + { + this.assocTypeQNameIds = assocTypeQNameIds; + } + + public Set getAssocTypeQNameIds() + { + return assocTypeQNameIds; + } - public Long getNamePropertyQNameId() - { - return namePropertyQNameId; - } + public Long getNamePropertyQNameId() + { + return namePropertyQNameId; + } - public void setNamePropertyQNameId(Long namePropertyQNameId) - { - this.namePropertyQNameId = namePropertyQNameId; - } + public void setNamePropertyQNameId(Long namePropertyQNameId) + { + this.namePropertyQNameId = namePropertyQNameId; + } - public NodePropertyEntity getProp1() + public NodePropertyEntity getProp1() { return prop1; }