Class DeleteForId
java.lang.Object
net.solarnetwork.central.common.dao.jdbc.sql.DeleteForId
- All Implemented Interfaces:
org.springframework.jdbc.core.PreparedStatementCreator,org.springframework.jdbc.core.SqlProvider
public class DeleteForId
extends Object
implements org.springframework.jdbc.core.PreparedStatementCreator, org.springframework.jdbc.core.SqlProvider
Delete based on a simple primary key.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DeleteForId
Constructor.- Parameters:
pk- the primary keytableName- the table namecolumnNames- the column names that correspond to key indexes- Throws:
IllegalArgumentException- if any argument is null
-
-
Method Details
-
getSql
- Specified by:
getSqlin interfaceorg.springframework.jdbc.core.SqlProvider
-
createPreparedStatement
- Specified by:
createPreparedStatementin interfaceorg.springframework.jdbc.core.PreparedStatementCreator- Throws:
SQLException
-