public class JPADriftFilePurge extends Object
| Modifier and Type | Method and Description |
|---|---|
int |
execute() |
protected String |
getDeleteRowByKeyQuery(DatabaseType databaseType) |
protected String |
getEntityName() |
protected String |
getFindRowKeysQuery(DatabaseType databaseType) |
protected String |
getKeyFromResultSet(ResultSet resultSet) |
protected void |
setDeleteRowByKeyQueryParams(PreparedStatement preparedStatement,
String key)
Set the deletion query parameters.
|
protected void |
setFindRowKeysQueryParams(PreparedStatement preparedStatement)
Set the row keys selection query parameters.
|
protected String getEntityName()
protected String getFindRowKeysQuery(DatabaseType databaseType)
protected void setFindRowKeysQueryParams(PreparedStatement preparedStatement) throws SQLException
preparedStatement - the prepared statement created for the row keys selection querySQLExceptionprotected String getKeyFromResultSet(ResultSet resultSet) throws SQLException
resultSet columns valuesSQLExceptionprotected String getDeleteRowByKeyQuery(DatabaseType databaseType)
protected void setDeleteRowByKeyQueryParams(PreparedStatement preparedStatement, String key) throws SQLException
key provided.preparedStatement - the prepared statement created for the row deletion querykey - the row key object representationSQLExceptionpublic int execute()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.