Class QueryUtils
java.lang.Object
org.n52.sensorweb.server.db.old.dao.QueryUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateAssociation(String alias, String property) static org.hibernate.criterion.SimpleExpressionmatchesPkid(String id) static Longparsed the given string to the raw database id.parseToIds(Collection<String> ids) static org.hibernate.criterion.PropertyProjectionprojectionOn(String property) static org.hibernate.criterion.PropertyProjectionprojectionOn(String member, String property) static org.hibernate.criterion.PropertyProjectionprojectionOn(String alias, String member, String property) static org.hibernate.criterion.DetachedCriteriaprojectionOn(String alias, String member, String property, org.hibernate.criterion.DetachedCriteria criteria) static org.hibernate.criterion.DetachedCriteriaprojectionOn(String member, String property, org.hibernate.criterion.DetachedCriteria criteria) static org.hibernate.criterion.DetachedCriteriaprojectionOn(String property, org.hibernate.criterion.DetachedCriteria criteria) static org.hibernate.criterion.PropertyProjectionstatic org.hibernate.criterion.PropertyProjectionprojectionOnPkid(String member) static org.hibernate.criterion.PropertyProjectionprojectionOnPkid(String alias, String member) static org.hibernate.criterion.DetachedCriteriaprojectionOnPkid(String alias, String member, org.hibernate.criterion.DetachedCriteria criteria) static org.hibernate.criterion.DetachedCriteriaprojectionOnPkid(String member, org.hibernate.criterion.DetachedCriteria criteria) static org.hibernate.criterion.DetachedCriteriaprojectionOnPkid(org.hibernate.criterion.DetachedCriteria criteria) static voidsetFilterProjectionOn(String parameter, org.hibernate.criterion.DetachedCriteria c)
-
Constructor Details
-
QueryUtils
public QueryUtils()
-
-
Method Details
-
createAssociation
-
projectionOnPkid
public static org.hibernate.criterion.DetachedCriteria projectionOnPkid(org.hibernate.criterion.DetachedCriteria criteria) -
projectionOnPkid
public static org.hibernate.criterion.DetachedCriteria projectionOnPkid(String member, org.hibernate.criterion.DetachedCriteria criteria) -
projectionOnPkid
-
projectionOnPkid
public static org.hibernate.criterion.PropertyProjection projectionOnPkid() -
projectionOnPkid
-
projectionOnPkid
-
projectionOn
public static org.hibernate.criterion.DetachedCriteria projectionOn(String property, org.hibernate.criterion.DetachedCriteria criteria) -
projectionOn
-
projectionOn
-
projectionOn
-
projectionOn
-
projectionOn
-
setFilterProjectionOn
public static void setFilterProjectionOn(String parameter, org.hibernate.criterion.DetachedCriteria c) -
parseToIds
-
matchesPkid
-
parseToId
parsed the given string to the raw database id. strips prefixes ending with a "_", e.g.platform_track_8will return8.- Parameters:
id- the id string to parse.- Returns:
- the long value of given string or
Long.MIN_VALUEif string could not be parsed to type long.
-