Package org.axonframework.saga

Examples of org.axonframework.saga.SagaStorageException


            if (logger.isDebugEnabled()) {
                logger.debug("Loaded saga id [{}] of type [{}]", sagaId, loadedSaga.getClass().getName());
            }
            return loadedSaga;
        } catch (SQLException e) {
            throw new SagaStorageException("Exception while loading a Saga", e);
        } finally {
            closeQuietly(statement);
            closeQuietly(resultSet);
            closeQuietly(conn);
        }
View Full Code Here


                            sagaIdentifier,
                            associationValue.getKey(),
                            associationValue.getValue());
            }
        } catch (SQLException e) {
            throw new SagaStorageException("Exception occurred while attempting to remove an AssociationValue", e);
        } finally {
            closeQuietly(conn);
        }
    }
View Full Code Here

                                                   associationValue.getValue(),
                                                   sagaType,
                                                   sagaIdentifier);
            statement.executeUpdate();
        } catch (SQLException e) {
            throw new SagaStorageException("Exception while storing an association value", e);
        } finally {
            closeQuietly(statement);
            closeQuietly(conn);
        }
    }
View Full Code Here

            while (resultSet.next()) {
                result.add(resultSet.getString(1));
            }
            return result;
        } catch (SQLException e) {
            throw new SagaStorageException("Exception while reading saga associations", e);
        } finally {
            closeQuietly(statement);
            closeQuietly(resultSet);
            closeQuietly(conn);
        }
View Full Code Here

            statement1 = sqldef.sql_deleteAssociationEntries(conn, saga.getSagaIdentifier());
            statement2 = sqldef.sql_deleteSagaEntry(conn, saga.getSagaIdentifier());
            statement1.executeUpdate();
            statement2.executeUpdate();
        } catch (SQLException e) {
            throw new SagaStorageException("Exception occurred while attempting to delete a saga entry", e);
        } finally {
            closeQuietly(statement1);
            closeQuietly(statement2);
            closeQuietly(conn);
        }
View Full Code Here

                                              entry.getSagaType(),
                                              entry.getRevision()
            );
            updateCount = statement.executeUpdate();
        } catch (SQLException e) {
            throw new SagaStorageException("Exception occurred while attempting to update a saga", e);
        } finally {
            closeQuietly(statement);
            closeQuietly(conn);
        }
View Full Code Here

            conn = connectionProvider.getConnection();
            statement = sqldef.sql_storeSaga(conn, entry.getSagaId(), entry.getRevision(), entry.getSagaType(),
                                             entry.getSerializedSaga());
            statement.executeUpdate();
        } catch (SQLException e) {
            throw new SagaStorageException("Exception occurred while attempting to store a Saga Entry", e);
        } finally {
            closeQuietly(statement);
            closeQuietly(conn);
        }
    }
View Full Code Here

TOP

Related Classes of org.axonframework.saga.SagaStorageException

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.