@Component(value="cuba_DeletePolicyProcessor")
@Scope(value="prototype")
public class DeletePolicyProcessor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Entity |
entity |
protected EntityManager |
entityManager |
protected com.haulmont.chile.core.model.MetaClass |
metaClass |
protected Metadata |
metadata |
static java.lang.String |
NAME |
protected Persistence |
persistence |
protected java.lang.String |
primaryKeyName |
Constructor and Description |
---|
DeletePolicyProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
cascade(java.lang.String entityName,
com.haulmont.chile.core.model.MetaProperty property) |
protected boolean |
checkIfEntityBelongsToMaster(com.haulmont.chile.core.model.MetaProperty property,
Entity entityToRemove) |
protected void |
fillProperties(java.util.List<com.haulmont.chile.core.model.MetaProperty> properties,
java.lang.String annotationName) |
protected java.util.Collection<Entity> |
getCollection(com.haulmont.chile.core.model.MetaProperty property) |
Entity |
getEntity() |
protected Entity |
getReference(Entity entity,
com.haulmont.chile.core.model.MetaProperty property) |
protected void |
hardDeleteNotLoadedReference(Entity entity,
com.haulmont.chile.core.model.MetaProperty property,
Entity reference) |
protected void |
hardSetReferenceNull(Entity entity,
com.haulmont.chile.core.model.MetaProperty property) |
protected boolean |
isCollectionEmpty(com.haulmont.chile.core.model.MetaProperty property) |
protected boolean |
isPersistent(com.haulmont.chile.core.model.MetaClass metaClass) |
void |
process() |
protected void |
processOnDelete(java.util.List<com.haulmont.chile.core.model.MetaProperty> properties) |
protected void |
processOnDeleteInverse(java.util.List<com.haulmont.chile.core.model.MetaProperty> properties) |
protected boolean |
referenceExists(java.lang.String entityName,
com.haulmont.chile.core.model.MetaProperty property) |
void |
setEntity(Entity entity) |
protected void |
setReferenceNull(Entity entity,
com.haulmont.chile.core.model.MetaProperty property) |
protected void |
unlink(java.lang.String entityName,
com.haulmont.chile.core.model.MetaProperty property) |
public static final java.lang.String NAME
protected Entity entity
protected com.haulmont.chile.core.model.MetaClass metaClass
protected java.lang.String primaryKeyName
protected EntityManager entityManager
@Inject protected Persistence persistence
@Inject protected Metadata metadata
public Entity getEntity()
public void setEntity(Entity entity)
public void process()
protected void fillProperties(java.util.List<com.haulmont.chile.core.model.MetaProperty> properties, java.lang.String annotationName)
protected void processOnDeleteInverse(java.util.List<com.haulmont.chile.core.model.MetaProperty> properties)
protected void processOnDelete(java.util.List<com.haulmont.chile.core.model.MetaProperty> properties)
protected void hardDeleteNotLoadedReference(Entity entity, com.haulmont.chile.core.model.MetaProperty property, Entity reference)
protected void setReferenceNull(Entity entity, com.haulmont.chile.core.model.MetaProperty property)
protected void hardSetReferenceNull(Entity entity, com.haulmont.chile.core.model.MetaProperty property)
protected Entity getReference(Entity entity, com.haulmont.chile.core.model.MetaProperty property)
protected boolean checkIfEntityBelongsToMaster(com.haulmont.chile.core.model.MetaProperty property, Entity entityToRemove)
protected boolean isCollectionEmpty(com.haulmont.chile.core.model.MetaProperty property)
protected java.util.Collection<Entity> getCollection(com.haulmont.chile.core.model.MetaProperty property)
protected boolean referenceExists(java.lang.String entityName, com.haulmont.chile.core.model.MetaProperty property)
protected boolean isPersistent(com.haulmont.chile.core.model.MetaClass metaClass)
protected void cascade(java.lang.String entityName, com.haulmont.chile.core.model.MetaProperty property)
protected void unlink(java.lang.String entityName, com.haulmont.chile.core.model.MetaProperty property)