@Service(value="blDeleteStatementGenerator") public class DeleteStatementGeneratorImpl extends Object implements DeleteStatementGenerator
| Modifier and Type | Class and Description |
|---|---|
static class |
DeleteStatementGeneratorImpl.OperationStackHolder |
static class |
DeleteStatementGeneratorImpl.PathElement |
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
protected DynamicDaoHelperImpl |
helper |
protected static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
DeleteStatementGeneratorImpl() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
generateDeleteStatementsForType(Class<?> rootType,
String rootTypeIdValue,
Map<String,List<DeleteStatementGeneratorImpl.PathElement>> dependencies,
Set<String> exclustions) |
protected String |
getSqls(String rootTypeIdValue,
DeleteStatementGeneratorImpl.OperationStackHolder operationStackHolder) |
protected static final org.apache.commons.logging.Log LOG
protected DynamicDaoHelperImpl helper
protected javax.persistence.EntityManager em
public Map<String,String> generateDeleteStatementsForType(Class<?> rootType, String rootTypeIdValue, Map<String,List<DeleteStatementGeneratorImpl.PathElement>> dependencies, Set<String> exclustions)
generateDeleteStatementsForType in interface DeleteStatementGeneratorrootType - type to start build sql dependency listrootTypeIdValue - value of id column of the rootType to be passed in where clausedependencies - - map of additional dependencies that can't be discovered during iteration from root type,
key is table name to depend on like blc_order->some other table, value is structure representing dependant table, its PK, and FK to join with/exclustions - - Set with table name to exclude from list, like price_list, etcprotected String getSqls(String rootTypeIdValue, DeleteStatementGeneratorImpl.OperationStackHolder operationStackHolder)
Copyright © 2026. All rights reserved.