Class QueryUtils

java.lang.Object
org.n52.sensorweb.server.db.old.dao.QueryUtils

public class QueryUtils extends Object
  • Constructor Details

    • QueryUtils

      public QueryUtils()
  • Method Details

    • createAssociation

      public static String createAssociation(String alias, String property)
    • 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_8 will return 8.
      Parameters:
      id - the id string to parse.
      Returns:
      the long value of given string or Long.MIN_VALUE if string could not be parsed to type long.