Class QueryUtils
- java.lang.Object
-
- org.n52.sensorweb.server.db.old.dao.QueryUtils
-
public class QueryUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description QueryUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcreateAssociation(String alias, String property)static org.hibernate.criterion.SimpleExpressionmatchesPkid(String id)static LongparseToId(String id)parsed the given string to the raw database id. strips prefixes ending with a "_", e.g.static Set<Long>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.PropertyProjectionprojectionOnPkid()static 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)
-
-
-
Method Detail
-
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
public static org.hibernate.criterion.DetachedCriteria projectionOnPkid(String alias, String member, org.hibernate.criterion.DetachedCriteria criteria)
-
projectionOnPkid
public static org.hibernate.criterion.PropertyProjection projectionOnPkid()
-
projectionOnPkid
public static org.hibernate.criterion.PropertyProjection projectionOnPkid(String member)
-
projectionOnPkid
public static org.hibernate.criterion.PropertyProjection projectionOnPkid(String alias, String member)
-
projectionOn
public static org.hibernate.criterion.DetachedCriteria projectionOn(String property, org.hibernate.criterion.DetachedCriteria criteria)
-
projectionOn
public static org.hibernate.criterion.DetachedCriteria projectionOn(String member, String property, org.hibernate.criterion.DetachedCriteria criteria)
-
projectionOn
public static org.hibernate.criterion.DetachedCriteria projectionOn(String alias, String member, String property, org.hibernate.criterion.DetachedCriteria criteria)
-
projectionOn
public static org.hibernate.criterion.PropertyProjection projectionOn(String property)
-
projectionOn
public static org.hibernate.criterion.PropertyProjection projectionOn(String member, String property)
-
projectionOn
public static org.hibernate.criterion.PropertyProjection projectionOn(String alias, String member, String property)
-
setFilterProjectionOn
public static void setFilterProjectionOn(String parameter, org.hibernate.criterion.DetachedCriteria c)
-
parseToIds
public static Set<Long> parseToIds(Collection<String> ids)
-
matchesPkid
public static org.hibernate.criterion.SimpleExpression matchesPkid(String id)
-
parseToId
public static Long parseToId(String id)
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.
-
-