Class SelectUserAuthTokenNodes

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

public class SelectUserAuthTokenNodes extends Object implements org.springframework.jdbc.core.PreparedStatementCreator, org.springframework.jdbc.core.SqlProvider
Select for [token,nodeId] tuples.

The result columns in the SQL are:

  1. token_id (VARCHAR)
  2. node_id (BIGINT)
  • Constructor Details

    • SelectUserAuthTokenNodes

      public SelectUserAuthTokenNodes(String tokenId)
      Constructor.
      Parameters:
      tokenId - the token ID
      Throws:
      IllegalArgumentException - if tokenId 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