Class DeletePolicyProcessor

java.lang.Object
io.jmix.data.impl.DeletePolicyProcessor

@Component("data_DeletePolicyProcessor") @Scope("prototype") public class DeletePolicyProcessor extends Object
  • Field Details

    • entity

      protected Object entity
    • metaClass

      protected MetaClass metaClass
    • primaryKeyName

      protected String primaryKeyName
    • storeAwareLocator

      @Autowired protected StoreAwareLocator storeAwareLocator
    • dataSource

      @Autowired protected DataSource dataSource
    • dbmsSpecifics

      @Autowired protected DbmsSpecifics dbmsSpecifics
    • metadata

      @Autowired protected Metadata metadata
    • metadataTools

      @Autowired protected MetadataTools metadataTools
    • entityStates

      @Autowired protected EntityStates entityStates
    • entityManager

      protected javax.persistence.EntityManager entityManager
  • Constructor Details

    • DeletePolicyProcessor

      public DeletePolicyProcessor()
  • Method Details

    • getEntity

      public Object getEntity()
    • setEntity

      public void setEntity(Object entity)
    • process

      public void process()
    • fillProperties

      protected void fillProperties(List<MetaProperty> properties, String annotationName)
    • processOnDeleteInverse

      protected void processOnDeleteInverse(List<MetaProperty> properties)
    • processOnDelete

      protected void processOnDelete(List<MetaProperty> properties)
    • hardDeleteNotLoadedReference

      protected void hardDeleteNotLoadedReference(Object entity, MetaProperty property, Object reference)
    • getJdbcTemplate

      protected org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
    • setReferenceNull

      protected void setReferenceNull(Object entity, MetaProperty property)
    • hardSetReferenceNull

      protected void hardSetReferenceNull(Object entity, MetaProperty property)
    • getReference

      @Nullable protected Object getReference(Object entity, MetaProperty property)
    • checkIfEntityBelongsToMaster

      protected boolean checkIfEntityBelongsToMaster(MetaProperty property, Object entityToRemove)
    • isCollectionEmpty

      protected boolean isCollectionEmpty(MetaProperty property)
    • getCollection

      protected Collection<Object> getCollection(MetaProperty property)
    • referenceExists

      protected boolean referenceExists(String entityName, MetaProperty property)
    • isPersistent

      protected boolean isPersistent(MetaClass metaClass)
    • cascade

      protected void cascade(String entityName, MetaProperty property)
    • unlink

      protected void unlink(String entityName, MetaProperty property)