Beispiel #1
0
        public static IssueCollection PerformQuery(int projectId, QueryClauseCollection queryClauses)
        {
            if (queryClauses.Count == 0)
            {
                throw new ArgumentOutOfRangeException("queryClauses");
            }

            DataAccessLayerBaseClass DBLayer = DataAccessLayerBaseClassHelper.GetDataAccessLayer();

            return(DBLayer.PerformQuery(projectId, queryClauses));
        }
Beispiel #2
0
        /*** STATIC METHODS ***/

        public static bool SaveQuery(string username, int projectId, string queryName, QueryClauseCollection queryClauses)
        {
            if (username == null || username.Length == 0)
            {
                throw new ArgumentOutOfRangeException("username");
            }

            if (projectId <= DefaultValues.GetProjectIdMinValue())
            {
                throw new ArgumentOutOfRangeException("projectId");
            }

            if (queryName == null || queryName.Length == 0)
            {
                throw new ArgumentOutOfRangeException("queryName");
            }

            if (queryClauses.Count == 0)
            {
                throw new ArgumentOutOfRangeException("queryClauses");
            }

            DataAccessLayerBaseClass DBLayer = DataAccessLayerBaseClassHelper.GetDataAccessLayer();

            return(DBLayer.SaveQuery(username, projectId, queryName, queryClauses));
        }