Class SelectLocationRequest

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

public class SelectLocationRequest extends Object implements org.springframework.jdbc.core.PreparedStatementCreator, org.springframework.jdbc.core.SqlProvider
Select location request entities.
Since:
1.3
  • Constructor Details

    • SelectLocationRequest

      public SelectLocationRequest(Long id)
      Select for a specific entity.
      Parameters:
      id - the ID of the entity to fetch
    • SelectLocationRequest

      public SelectLocationRequest(LocationRequestCriteria filter)
      Select for matching entities.
      Parameters:
      filter - the search criteria
    • SelectLocationRequest

      public SelectLocationRequest(Long id, LocationRequestCriteria filter)
      Select for matching entities.
      Parameters:
      id - the ID of the entity to fetch
      filter - the search criteria
  • 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