Class DeleteLocationRequest

java.lang.Object
net.solarnetwork.central.common.dao.jdbc.sql.DeleteLocationRequest
All Implemented Interfaces:
org.springframework.jdbc.core.PreparedStatementCreator, org.springframework.jdbc.core.SqlProvider

public class DeleteLocationRequest extends Object implements org.springframework.jdbc.core.PreparedStatementCreator, org.springframework.jdbc.core.SqlProvider
Delete a location request entity.
Since:
1.3
  • Constructor Details

    • DeleteLocationRequest

      public DeleteLocationRequest(Long id)
      Constructor.
      Parameters:
      id - the ID to delete
      Throws:
      IllegalArgumentException - if any argument is null
    • DeleteLocationRequest

      public DeleteLocationRequest(LocationRequestCriteria filter)
      Constructor.
      Parameters:
      filter - filter to limit the query to
      Throws:
      IllegalArgumentException - if any argument is null
    • DeleteLocationRequest

      public DeleteLocationRequest(Long id, LocationRequestCriteria filter)
      Constructor.
      Parameters:
      id - an optional ID to delete
      filter - an optional filter to limit the query to
  • Method Details

    • getSql

      public String getSql()
      Specified by:
      getSql in interface org.springframework.jdbc.core.SqlProvider
    • createPreparedStatement

      public PreparedStatement createPreparedStatement(Connection con) throws SQLException
      Specified by:
      createPreparedStatement in interface org.springframework.jdbc.core.PreparedStatementCreator
      Throws:
      SQLException