Class RemoveItemStatementsBuilder

All Implemented Interfaces:
StatementsBuilder

public class RemoveItemStatementsBuilder extends AbstractEntityStatementsBuilder implements StatementsBuilder
Creates all required statements for item removal.
  • Field Details

    • pkAsLong

      protected final Long pkAsLong
    • jdbcTemplate

      protected final org.springframework.jdbc.core.JdbcTemplate jdbcTemplate
  • Method Details

    • getInstance

      public static RemoveItemStatementsBuilder getInstance(DeleteRecord record, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, Config.DatabaseName databaseName, boolean optimisticLockingEnabled)
    • createStatements

      public Set<StatementHolder> createStatements()
      Description copied from interface: StatementsBuilder
      Creates bunch of StatementHolder objects which keeps all required statements for item creation/modification/deletion.
      Specified by:
      createStatements in interface StatementsBuilder
    • addCascadingManyToManyOrphanedLinksDeletesToResult

      protected void addCascadingManyToManyOrphanedLinksDeletesToResult(Set<StatementHolder> result)
    • shouldAddRelation

      protected boolean shouldAddRelation(String relName)
    • addCascadingManyToManyOrphanedLinksDeletesToResult

      protected void addCascadingManyToManyOrphanedLinksDeletesToResult(Set<StatementHolder> result, String linksTableName, List<Long> linkPks, String relationName)
    • addCascadingManyToManyOrphanedLinksDeletesToResultWithLimit

      protected void addCascadingManyToManyOrphanedLinksDeletesToResultWithLimit(Set<StatementHolder> result, String linksTableName, List<Long> linkPks, String relationName, int parametersLimit)
    • createPersistResults

      protected void createPersistResults(List<Long> linkPks, String relationName)