mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added DAOs. Attribute query objects seem to be able to generate hibernate predicates.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5467 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -25,8 +25,6 @@
|
||||
|
||||
package org.alfresco.service.cmr.attributes;
|
||||
|
||||
import org.alfresco.repo.attributes.Attribute;
|
||||
|
||||
/**
|
||||
* Query a less than condition.
|
||||
* @author britt
|
||||
@@ -36,19 +34,21 @@ public class AttrQueryLT extends AttrQuery
|
||||
private static final long serialVersionUID = -2385160490778425115L;
|
||||
|
||||
/**
|
||||
* @param value
|
||||
* @param name
|
||||
*/
|
||||
public AttrQueryLT(Attribute value)
|
||||
public AttrQueryLT(String name)
|
||||
{
|
||||
super(value);
|
||||
super(name);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.service.cmr.attributes.AttrQuery#getPredicate()
|
||||
*/
|
||||
@Override
|
||||
public String getPredicate()
|
||||
public String getPredicate(AttrQueryHelper helper)
|
||||
{
|
||||
return "ent." + fAttrName + " < " + getValue();
|
||||
String name = ":name" + helper.getNextSuffix();
|
||||
helper.setParameter(name, fValue);
|
||||
return "me.key < " + name;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user