@Service(value="blSpecPurgeDao") public class DefaultSpecPurgeDaoImpl extends Object implements SpecBasedPurgeDao
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
static int |
RESTRICT_IN_CLAUSE_MAX_SIZE |
| Constructor and Description |
|---|
DefaultSpecPurgeDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bulkDelete(String tableName,
String columnName,
List<Long> ids)
Performs the physical delete of the provides id's in the table
|
void |
cascadeDeleteList(PurgeSpecification purgeSpec,
String fkColumnName,
List<Long> parentDeleteList)
Entry point into the deletion process.
|
protected List<Long> |
findAssociatedIds(String parentFkColumn,
String specFkTableName,
String specFkColumn,
List<Long> specDeleteList)
Finds the id's to be purged from a related table
|
protected Connection |
getConnection() |
void |
setEm(javax.persistence.EntityManager em)
TODO: required for tests
|
protected List<List<Long>> |
splitList(List<Long> ids,
int size) |
public static final int RESTRICT_IN_CLAUSE_MAX_SIZE
protected javax.persistence.EntityManager em
public void cascadeDeleteList(PurgeSpecification purgeSpec, String fkColumnName, List<Long> parentDeleteList)
PurgeSpec is used to traverse and bulk delete
the data.cascadeDeleteList in interface SpecBasedPurgeDaoprotected List<Long> findAssociatedIds(String parentFkColumn, String specFkTableName, String specFkColumn, List<Long> specDeleteList)
parentFkColumn - specFkTableName - specFkColumn - specDeleteList - protected void bulkDelete(String tableName, String columnName, List<Long> ids)
tableName - columnName - ids - protected Connection getConnection()
public void setEm(javax.persistence.EntityManager em)
setEm in interface SpecBasedPurgeDaoCopyright © 2020. All rights reserved.