/** * Check if there are useful data in the DB we don't check the data whose type is in * excludeClasses * * @return true if there are data no matter inactive or not */ private boolean hasDataInDb() { Collection<DataObjectType> doTypes = TypeMap.getAllDoTypes(); for (DataObjectType doType : doTypes) { Class clazz = doType.getDataObjectClass(); if (hasDataInCF(clazz)) { return true; } } return false; }