Class QueryUtils

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

public final class QueryUtils extends Object
Small helpers shared by the JPA criteria / Specification query code.
  • Method Details

    • parseToIds

      public static Set<Long> parseToIds(Collection<String> ids)
    • 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.