JBoss.orgCommunity Documentation

Chapter 50. DBCleanService

50.1. Description
50.2. Need to clean only single workspace
50.3. Need to clean the whole repository

It is special service for data removal from database. The article shortly describes the principles of work DBCleaner under all databases

There are several methods of DBCleanerService:


The cleaning is a part of restoring from backup and it is used in the following restore phases:


Different approaches are used for database cleaning depending on database and JCR configuration.

Simple cleaning records from JCR table is used in case of single-db configuration.



Either removing or renaming JCR tables are used in case of mult-db configuration.



In case of single-db all workspaces will be processed simultaneously as in case of single workspace multi-db configuration. For multi-db every workspace will be processed separately as in case of single workspace multi-db configuration.