Examples of DirectoryOutOfSyncException


Examples of fr.soleil.salsa.persistence.exception.DirectoryOutOfSyncException

        // Check if the DirectoryImpl exists in the database
        directoryResult = getDirectoryById(directory.getId(), false);
        if (directoryResult == null
                || !directoryResult.getTimestamp().equals(directory.getTimestamp())) {
            conn.rollback();
            throw new DirectoryOutOfSyncException();
        }

        preStmt = conn.prepareStatement(sql);
        preStmt.setObject(1, directory.getId(), Types.INTEGER);
        preStmt.setObject(2, directory.getTimestamp(), Types.TIMESTAMP);
View Full Code Here

Examples of fr.soleil.salsa.persistence.exception.DirectoryOutOfSyncException

            return true;
        }
        catch (SQLException e) {
            rollback();
            CommonsJDBC.catchException(e);
            throw new DirectoryOutOfSyncException();
        }
        finally {
            doCloseConn();
        }
        // return false;
View Full Code Here

Examples of fr.soleil.salsa.persistence.exception.DirectoryOutOfSyncException

            preStmt.setObject(4, _d.getId(), Types.INTEGER);
            preStmt.setObject(5, _d.getTimestamp(), Types.TIMESTAMP);

            int r = preStmt.executeUpdate();
            if (r == 0) {
                throw new DirectoryOutOfSyncException();
            }
            conn.commit();
            // return _d;
        }
        catch (Exception exc) {
            exc.printStackTrace();
            throw new DirectoryOutOfSyncException();
        }
    }
View Full Code Here

Examples of fr.soleil.salsa.persistence.exception.DirectoryOutOfSyncException

        directoryResult = getDirectoryById(directory.getId());
        if (directoryResult == null
                || !directoryResult.getTimestamp().equals(
                        directory.getTimestamp())) {
            conn.rollback();
            throw new DirectoryOutOfSyncException();
        }

        preStmt = conn.prepareStatement(sql);
        preStmt.setObject(1, directory.getId(), Types.INTEGER);
        preStmt.setObject(2, directory.getTimestamp(), Types.TIMESTAMP);
View Full Code Here

Examples of fr.soleil.salsa.persistence.exception.DirectoryOutOfSyncException

    conn.commit();
    return true;
} catch (SQLException e) {
    rollback();
    CommonsJDBC.catchException(e);
    throw new DirectoryOutOfSyncException();
} finally {
    doCloseConn();
}
//return false;
}
View Full Code Here

Examples of fr.soleil.salsa.persistence.exception.DirectoryOutOfSyncException

            preStmt.setObject(4, _d.getId(), Types.INTEGER);
            preStmt.setObject(5, _d.getTimestamp(), Types.TIMESTAMP);

            int r = preStmt.executeUpdate();
            if(r == 0) {
                throw new DirectoryOutOfSyncException();
            }
            conn.commit();
            // return _d;
        } catch (Exception exc) {
            exc.printStackTrace();
            throw new DirectoryOutOfSyncException();
        }
    }
View Full Code Here

Examples of fr.soleil.salsa.persistence.exception.DirectoryOutOfSyncException

        // Check if the DirectoryImpl exists in the database
        directoryResult = getDirectoryById(directory.getId(), false);
        if (directoryResult == null
                || !directoryResult.getTimestamp().equals(directory.getTimestamp())) {
            conn.rollback();
            throw new DirectoryOutOfSyncException();
        }

        preStmt = conn.prepareStatement(sql);
        preStmt.setObject(1, directory.getId(), Types.INTEGER);
        preStmt.setObject(2, directory.getTimestamp(), Types.TIMESTAMP);
View Full Code Here

Examples of fr.soleil.salsa.persistence.exception.DirectoryOutOfSyncException

            return true;
        }
        catch (SQLException e) {
            rollback();
            CommonsJDBC.catchException(e);
            throw new DirectoryOutOfSyncException();
        }
        finally {
            doCloseConn();
        }
        // return false;
View Full Code Here

Examples of fr.soleil.salsa.persistence.exception.DirectoryOutOfSyncException

            preStmt.setObject(4, _d.getId(), Types.INTEGER);
            preStmt.setObject(5, _d.getTimestamp(), Types.TIMESTAMP);

            int r = preStmt.executeUpdate();
            if (r == 0) {
                throw new DirectoryOutOfSyncException();
            }
            conn.commit();
            // return _d;
        }
        catch (Exception exc) {
            exc.printStackTrace();
            throw new DirectoryOutOfSyncException();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.