Class DeleteAppSetting

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

public class DeleteAppSetting extends Object implements org.springframework.jdbc.core.PreparedStatementCreator, org.springframework.jdbc.core.SqlProvider
Delete AppSetting instances.
Since:
2.0
  • Constructor Details

    • DeleteAppSetting

      public DeleteAppSetting(String[] keys, String[] types)
      Constructor.
      Parameters:
      keys - the optional keys to filter on
      types - the optional types to filter on
  • Method Details

    • deleteForKey

      public static DeleteAppSetting deleteForKey(String key)
      Select for a single key.
      Parameters:
      key - the key
      Returns:
      the select statement
      Throws:
      IllegalArgumentException - if any argument is null
    • deleteForKeyType

      public static DeleteAppSetting deleteForKeyType(String key, String type)
      Select for a single key and type.
      Parameters:
      key - the key
      type - the type
      Returns:
      the select statement
      Throws:
      IllegalArgumentException - if any argument is null
    • 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