001/*
002 * Sonar, open source software quality management tool.
003 * Copyright (C) 2008-2012 SonarSource
004 * mailto:contact AT sonarsource DOT com
005 *
006 * Sonar is free software; you can redistribute it and/or
007 * modify it under the terms of the GNU Lesser General Public
008 * License as published by the Free Software Foundation; either
009 * version 3 of the License, or (at your option) any later version.
010 *
011 * Sonar is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014 * Lesser General Public License for more details.
015 *
016 * You should have received a copy of the GNU Lesser General Public
017 * License along with Sonar; if not, write to the Free Software
018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02
019 */
020package org.sonar.core.persistence;
021
022import com.google.common.collect.ImmutableList;
023import org.sonar.core.dashboard.ActiveDashboardDao;
024import org.sonar.core.dashboard.DashboardDao;
025import org.sonar.core.duplication.DuplicationDao;
026import org.sonar.core.filter.FilterDao;
027import org.sonar.core.properties.PropertiesDao;
028import org.sonar.core.purge.PurgeDao;
029import org.sonar.core.resource.ResourceDao;
030import org.sonar.core.resource.ResourceIndexerDao;
031import org.sonar.core.review.ReviewCommentDao;
032import org.sonar.core.review.ReviewDao;
033import org.sonar.core.rule.RuleDao;
034import org.sonar.core.template.LoadedTemplateDao;
035import org.sonar.core.user.AuthorDao;
036
037import java.util.List;
038
039public final class DaoUtils {
040
041  private DaoUtils() {
042  }
043
044  @SuppressWarnings("unchecked")
045  public static List<Class<?>> getDaoClasses() {
046    return ImmutableList.of(
047        ActiveDashboardDao.class,
048        AuthorDao.class,
049        FilterDao.class,
050        DashboardDao.class,
051        DuplicationDao.class,
052        LoadedTemplateDao.class,
053        PropertiesDao.class,
054        PurgeDao.class,
055        ResourceIndexerDao.class,
056        ResourceDao.class,
057        ReviewCommentDao.class,
058        ReviewDao.class,
059        RuleDao.class);
060  }
061}