Coverage Report - org.apache.maven.archiva.database.jdo.JdoArchivaDAO
 
Classes in this File Line Coverage Branch Coverage Complexity
JdoArchivaDAO
0%
0/8
N/A
0
 
 1  
 package org.apache.maven.archiva.database.jdo;
 2  
 
 3  
 /*
 4  
  * Licensed to the Apache Software Foundation (ASF) under one
 5  
  * or more contributor license agreements.  See the NOTICE file
 6  
  * distributed with this work for additional information
 7  
  * regarding copyright ownership.  The ASF licenses this file
 8  
  * to you under the Apache License, Version 2.0 (the
 9  
  * "License"); you may not use this file except in compliance
 10  
  * with the License.  You may obtain a copy of the License at
 11  
  *
 12  
  *  http://www.apache.org/licenses/LICENSE-2.0
 13  
  *
 14  
  * Unless required by applicable law or agreed to in writing,
 15  
  * software distributed under the License is distributed on an
 16  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  * KIND, either express or implied.  See the License for the
 18  
  * specific language governing permissions and limitations
 19  
  * under the License.
 20  
  */
 21  
 
 22  
 import org.apache.maven.archiva.database.ArchivaDAO;
 23  
 import org.apache.maven.archiva.database.ArtifactDAO;
 24  
 import org.apache.maven.archiva.database.ProjectModelDAO;
 25  
 import org.apache.maven.archiva.database.RepositoryContentStatisticsDAO;
 26  
 import org.apache.maven.archiva.database.RepositoryProblemDAO;
 27  
 import org.apache.maven.archiva.database.SimpleConstraint;
 28  
 
 29  
 import java.io.Serializable;
 30  
 import java.util.List;
 31  
 
 32  
 /**
 33  
  * JdoArchivaDAO 
 34  
  *
 35  
  * @version $Id: JdoArchivaDAO.java 1043850 2010-12-09 07:58:00Z brett $
 36  
  * 
 37  
  * @plexus.component role-hint="jdo"
 38  
  */
 39  0
 public class JdoArchivaDAO
 40  
     implements ArchivaDAO
 41  
 {
 42  
     /**
 43  
      * @plexus.requirement role-hint="archiva"
 44  
      */
 45  
     private JdoAccess jdo;
 46  
 
 47  
     /**
 48  
      * @plexus.requirement role-hint="jdo"
 49  
      */
 50  
     private ArtifactDAO artifactDAO;
 51  
 
 52  
     /**
 53  
      * @plexus.requirement role-hint="jdo"
 54  
      */
 55  
     private ProjectModelDAO projectModelDAO;
 56  
 
 57  
     /**
 58  
      * @plexus.requirement role-hint="jdo"
 59  
      */
 60  
     private RepositoryProblemDAO repositoryProblemDAO;
 61  
     
 62  
     /**
 63  
      * @plexus.requirement role-hint="jdo"
 64  
      */
 65  
     private RepositoryContentStatisticsDAO repositoryContentStatisticsDAO;
 66  
 
 67  
 
 68  
     public List<?> query( SimpleConstraint constraint )
 69  
     {
 70  0
         return jdo.queryObjects( constraint );
 71  
     }
 72  
 
 73  
     public Object save( Serializable obj )
 74  
     {
 75  0
         return jdo.saveObject( obj );
 76  
     }
 77  
     
 78  
     public ArtifactDAO getArtifactDAO()
 79  
     {
 80  0
         return artifactDAO;
 81  
     }
 82  
 
 83  
     public ProjectModelDAO getProjectModelDAO()
 84  
     {
 85  0
         return projectModelDAO;
 86  
     }
 87  
 
 88  
     public RepositoryProblemDAO getRepositoryProblemDAO()
 89  
     {
 90  0
         return repositoryProblemDAO;
 91  
     }
 92  
     
 93  
     public RepositoryContentStatisticsDAO getRepositoryContentStatisticsDAO()
 94  
     {
 95  0
         return repositoryContentStatisticsDAO;
 96  
     }
 97  
 
 98  
     public long count( SimpleConstraint constraint )
 99  
     {
 100  0
         return jdo.countObjects( constraint );
 101  
     }
 102  
 }