Class DeleteForGroupMinimumIndex
java.lang.Object
net.solarnetwork.central.common.dao.jdbc.sql.DeleteForGroupMinimumIndex
- All Implemented Interfaces:
org.springframework.jdbc.core.PreparedStatementCreator,org.springframework.jdbc.core.SqlProvider
public class DeleteForGroupMinimumIndex
extends Object
implements org.springframework.jdbc.core.PreparedStatementCreator, org.springframework.jdbc.core.SqlProvider
Delete items within a composite key group, having the highest key component
index equal to or higher than a given value.
-
Constructor Summary
ConstructorsConstructorDescriptionDeleteForGroupMinimumIndex(CompositeKey pk, String tableName, String[] columnNames) Constructor. -
Method Summary
-
Constructor Details
-
DeleteForGroupMinimumIndex
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
-