Class InsertLocationRequest

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

public class InsertLocationRequest extends Object implements org.springframework.jdbc.core.PreparedStatementCreator, org.springframework.jdbc.core.SqlProvider, org.springframework.jdbc.core.BatchPreparedStatementSetter
Insert a LocationRequest.
  • Constructor Details

    • InsertLocationRequest

      public InsertLocationRequest(LocationRequest request)
      Constructor.
      Parameters:
      request - the request
    • InsertLocationRequest

      public InsertLocationRequest(List<LocationRequest> requests)
      Constructor.
      Parameters:
      requests - the requests
  • Method Details

    • getBatchSize

      public int getBatchSize()
      Specified by:
      getBatchSize in interface org.springframework.jdbc.core.BatchPreparedStatementSetter
    • 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
    • setValues

      public void setValues(PreparedStatement ps, int i) throws SQLException
      Specified by:
      setValues in interface org.springframework.jdbc.core.BatchPreparedStatementSetter
      Throws:
      SQLException