Skip to content

Make DML and the public interface Virtual#57

Open
nwcm wants to merge 1 commit into
beyond-the-cloud-dev:mainfrom
nwcm:virtual
Open

Make DML and the public interface Virtual#57
nwcm wants to merge 1 commit into
beyond-the-cloud-dev:mainfrom
nwcm:virtual

Conversation

@nwcm

@nwcm nwcm commented Jul 13, 2026

Copy link
Copy Markdown

Description

Enable inheritance by virtual keyword allowing customisation of behaviour. Existing behaviour remains intact, allowing downstream extension if required.

public inherited sharing class CustomDML extends DML {
  public override DML.Commitable toInsert(SObject record) {
      doSomeStuff(record);
      return super.toInsert(record);
    }
}

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Test improvements
  • CI/CD improvements

Changes Made

  • Make DML class virtual
  • Make public methods virtual

Related Issues

#51

Testing

  • All existing tests pass (npm test)
  • Added new tests for new functionality
  • Tested in scratch org
  • Linting passes (npm run lint)
  • Code formatting is correct (npm run prettier:verify)

Screenshots

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code where necessary
  • [] I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • [] I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

@nwcm is attempting to deploy a commit to the Beyond The Cloud Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant