Package io.jmix.data.impl
Class DeletePolicyProcessor
java.lang.Object
io.jmix.data.impl.DeletePolicyProcessor
@Component("data_DeletePolicyProcessor")
@Scope("prototype")
public class DeletePolicyProcessor
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected DataSource
protected DbmsSpecifics
protected Object
protected jakarta.persistence.EntityManager
protected EntityStates
protected MetaClass
protected Metadata
protected MetadataTools
protected String
protected StoreAwareLocator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
cascade
(String entityName, MetaProperty property) protected boolean
checkIfEntityBelongsToMaster
(MetaProperty property, Object entityToRemove) protected void
fillProperties
(List<MetaProperty> properties, String annotationName) protected Collection<Object>
getCollection
(MetaProperty property) protected org.springframework.jdbc.core.JdbcTemplate
protected Object
getReference
(Object entity, MetaProperty property) protected void
hardDeleteNotLoadedReference
(Object entity, MetaProperty property, Object reference) protected void
hardSetReferenceNull
(Object entity, MetaProperty property) protected boolean
isCollectionEmpty
(MetaProperty property) protected boolean
isPersistent
(MetaClass metaClass) void
process()
protected void
processOnDelete
(List<MetaProperty> properties) protected void
processOnDeleteInverse
(List<MetaProperty> properties) protected boolean
referenceExists
(String entityName, MetaProperty property) void
protected void
setReferenceNull
(Object entity, MetaProperty property) protected void
unlink
(String entityName, MetaProperty property)
-
Field Details
-
entity
-
metaClass
-
-
storeAwareLocator
-
dataSource
-
dbmsSpecifics
-
metadata
-
metadataTools
-
entityStates
-
entityManager
protected jakarta.persistence.EntityManager entityManager
-
-
Constructor Details
-
DeletePolicyProcessor
public DeletePolicyProcessor()
-
-
Method Details
-
getEntity
-
setEntity
-
process
public void process() -
fillProperties
-
processOnDeleteInverse
-
processOnDelete
-
hardDeleteNotLoadedReference
-
getJdbcTemplate
protected org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate() -
setReferenceNull
-
hardSetReferenceNull
-
getReference
-
checkIfEntityBelongsToMaster
-
isCollectionEmpty
-
getCollection
-
referenceExists
-
isPersistent
-
cascade
-
unlink
-