Class LocationRequestSqlUtils

java.lang.Object
net.solarnetwork.central.common.dao.jdbc.sql.LocationRequestSqlUtils

public final class LocationRequestSqlUtils extends Object
LocationRequest SQL support.
  • Constructor Details

    • LocationRequestSqlUtils

      public LocationRequestSqlUtils()
  • Method Details

    • appendLocationRequestCriteria

      public static int appendLocationRequestCriteria(Long id, LocationRequestCriteria filter, StringBuilder where)
      Append location request criteria WHERE clauses to a buffer.
      Parameters:
      id - the optional ID
      filter - the optional filter
      where - the buffer to append to
      Returns:
      the number of SQL parameters generated
      See Also:
    • prepareLocationRequestCriteria

      public static int prepareLocationRequestCriteria(Long id, LocationRequestCriteria filter, Connection con, PreparedStatement stmt, int p) throws SQLException
      Prepare a location request filter SQL query.
      Parameters:
      id - the optional ID
      filter - the optional search criteria
      con - the JDBC connection
      stmt - the JDBC statement
      parameterOffset - the zero-based starting JDBC statement parameter offset
      Returns:
      the new JDBC statement parameter offset
      Throws:
      SQLException - if any SQL error occurs