Package org.apache.slide.common

Examples of org.apache.slide.common.ServiceAccessException


                    (AbstractStore.class.getName() + ".delistFail", service);
                getLogger().log(logMessage, LOG_CHANNEL, Logger.DEBUG);
            }
        } catch (Exception e) {
            // Something went wrong.
            throw new ServiceAccessException(this, e.getMessage());
        }
    }
View Full Code Here


      } finally {
        close(statement);
      }
    } catch (SQLException e) {
      getLogger().log(e, LOG_CHANNEL, Logger.ERROR);
      throw new ServiceAccessException(service, e);
    }
  }
View Full Code Here

      } finally {
        close(statement);
      }
    } catch (Exception e) {
      getLogger().log(e, LOG_CHANNEL, Logger.ERROR);
      throw new ServiceAccessException(service, e);
    }
  }
View Full Code Here

      } finally {
        close(statement);
      }
    } catch (SQLException e) {
      getLogger().log(e, LOG_CHANNEL, Logger.ERROR);
      throw new ServiceAccessException(service, e);
    }
  }
View Full Code Here

      } finally {
        close(statement);
      }
    } catch (SQLException e) {
      getLogger().log(e, LOG_CHANNEL, Logger.ERROR);
      throw new ServiceAccessException(service, e);
    }
  }
View Full Code Here

      statement.setString(2, permission.getSubjectUri());
      statement.setString(3, permission.getActionUri());
      statement.executeUpdate();
    } catch (SQLException e) {
      getLogger().log(e, LOG_CHANNEL, Logger.ERROR);
      throw new ServiceAccessException(service, e);
    } finally {
      close(statement);
    }
  }
View Full Code Here

          "delete from PERMISSIONS where PERMISSIONS.OBJECT_ID = URI.URI_ID and URI.URI_STRING = ?");
      statement.setString(1, uri.toString());
      statement.executeUpdate();
    } catch (SQLException e) {
      getLogger().log(e, LOG_CHANNEL, Logger.ERROR);
      throw new ServiceAccessException(service, e);
    } finally {
      close(statement);
    }
  }
View Full Code Here

    String sqlstate = e.getSQLState();

    if (sqlstate.startsWith("23")) {
      getLogger().log(e.getErrorCode() + ": Deadlock resolved on " + uri,
        LOG_CHANNEL, Logger.WARNING);
      return new ServiceAccessException(service, new ConflictException(uri));
    } else if (sqlstate.startsWith("40")) {
      getLogger().log(
        e.getErrorCode() + ": Deadlock resolved on " + uri,
        LOG_CHANNEL,
        Logger.WARNING);
      return new ServiceAccessException(service, new ConflictException(uri));
    } else {
      getLogger().log(
        "SQL error "
          + e.getErrorCode()
          + " on "
          + uri
          + ": "
          + e.getMessage(),
        LOG_CHANNEL,
        Logger.ERROR);

      return new ServiceAccessException(service, e);
    }
  }
View Full Code Here

            Connection connection = null;
            try {
                connection = getNewConnection();
                return adapter.retrieveObject(connection, uri);
            } catch (SQLException e) {
                throw new ServiceAccessException(this, e);
            } finally {
                if (connection != null) {
                    try {
                        connection.close();
                    } catch (SQLException e) {
View Full Code Here

            Connection connection = null;
            try {
                connection = getNewConnection();
                return adapter.enumeratePermissions(connection, uri);
            } catch (SQLException e) {
                throw new ServiceAccessException(this, e);
            } finally {
                if (connection != null) {
                    try {
                        connection.close();
                    } catch (SQLException e) {
View Full Code Here

TOP

Related Classes of org.apache.slide.common.ServiceAccessException

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.