Class DeleteForCompositeKey
java.lang.Object
net.solarnetwork.central.common.dao.jdbc.sql.DeleteForCompositeKey
- All Implemented Interfaces:
org.springframework.jdbc.core.PreparedStatementCreator,org.springframework.jdbc.core.SqlProvider
public class DeleteForCompositeKey
extends Object
implements org.springframework.jdbc.core.PreparedStatementCreator, org.springframework.jdbc.core.SqlProvider
Delete based on a composite primary key.
-
Constructor Summary
ConstructorsConstructorDescriptionDeleteForCompositeKey(CompositeKey pk, String tableName, String[] columnNames) Constructor. -
Method Summary
-
Constructor Details
-
DeleteForCompositeKey
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
-