Class UpdateLocationRequest

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

public class UpdateLocationRequest extends Object implements org.springframework.jdbc.core.PreparedStatementCreator, org.springframework.jdbc.core.SqlProvider
Update an existing location request.
Since:
1.3
  • Constructor Details

    • UpdateLocationRequest

      public UpdateLocationRequest(LocationRequest request)
      Constructor.
      Parameters:
      request - the request to update
      throws - IllegalArgumentException if request or request.id is null
  • 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