Package de.innovationgate.webgate.api

Examples of de.innovationgate.webgate.api.WGBackendException


        }
        catch (SQLGrammarException e) {
            throw new WGQueryException(fullQuery, e.getMessage(), e);
        }
        catch (HibernateException e) {
            throw new WGBackendException("Error executing SQL query", e);
        }
    }
View Full Code Here


        }
        catch (QueryException e) {
            throw new WGQueryException(builtQuery, e.getMessage(), e);
        }
        catch (HibernateException e) {
            throw new WGBackendException("Error executing HQL query", e);
        }
       
       
           
    }
View Full Code Here

        _dbUpdatesByUser.put(user, update);
       
      getSession().beginTransaction();
        }
        catch (HibernateException e) {
      throw new WGBackendException("unable to start transaction", e);
        }
        catch (SQLException e) {
      throw new WGBackendException("unable to start transaction", e);
    }     
       
    }
View Full Code Here

        try {
            DatabaseMetaData metaData = getSession().connection().getMetaData();
            return metaData.getDatabaseProductName() + " " + metaData.getDatabaseProductVersion();
        }
        catch (HibernateException e) {
            throw new WGBackendException("Error retrieving server name", e);           
        }
        catch (SQLException e) {
            throw new WGBackendException("Error retrieving server name", e);
        }
    }
View Full Code Here

           
           
            return wgLogs;
        }
        catch (HibernateException e) {
            throw new WGBackendException("Unable to retrieve updated documents", e);
        }

    }
View Full Code Here

            query.setParameter("key", String.valueOf(structEntry.getStructKey()));
            return query.list().size();
           
            }
        catch (HibernateException e) {
            throw new WGBackendException("Error determining content presence for  " + structEntry.getDocumentKey(), e);
        }

    }
View Full Code Here

        }
        catch (QueryException e) {
           throw new WGQueryException(query, e.getMessage(), e);
        }
        catch (HibernateException e) {
           throw new WGBackendException("Error executing profile query", e);
        }
       
    }
View Full Code Here

            Query countQuery = getParent().getSession().createQuery(countQueryString);
            injectQueryParams(countQuery, _parameters);
            return ((Number) countQuery.iterate().next()).intValue();
        }
        catch (Exception e) {
            throw new WGBackendException("Exception retrieving query result size", e);
        }
       
    }
View Full Code Here

      try {
        con.close();
        this._connection.set(null);
      }
      catch (SQLException e) {
        throw new WGBackendException("Unable to close session.", e);
      }
    }
  }
View Full Code Here

    try {
      DatabaseMetaData metaData = getConnection().getMetaData();
      return metaData.getDatabaseProductName() + " " + metaData.getDatabaseProductVersion();
    }
    catch (SQLException e) {
            throw new WGBackendException("Error retrieving server name", e);
    }
  }
View Full Code Here

TOP

Related Classes of de.innovationgate.webgate.api.WGBackendException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.