Examples of endWrites()


Examples of com.psddev.cms.db.Schedule.endWrites()

                        Query.from(Draft.class).where("schedule = ?", schedule).deleteAll();
                        schedule.delete();
                        schedule.commitWrites();

                    } finally {
                        schedule.endWrites();
                    }
                }

                page.writeStart("script", "type", "text/javascript");
                    page.writeRaw("window.location = window.location;");
View Full Code Here

Examples of com.psddev.dari.db.Database.endWrites()

                database.deleteByQuery(Query.from(History.class).where("objectId = ?", objectId));
                database.deleteByQuery(Query.from(Trash.class).where("objectId = ?", objectId));
                objectState.delete();
                database.commitWrites();
            } finally {
                database.endWrites();
            }
        }
    }

    /**
 
View Full Code Here

Examples of com.psddev.dari.db.State.endWrites()

        } catch (Exception error) {
            getErrors().add(error);
            return false;

        } finally {
            state.endWrites();
        }
    }

    /**
     * Tries to restore the given {@code object} if the user has asked for it
View Full Code Here

Examples of com.psddev.dari.db.State.endWrites()

            workflowData.revertState(oldWorkflowState);
            getErrors().add(error);
            return false;

        } finally {
            state.endWrites();
        }
    }

    // --- AuthenticationFilter bridge ---
View Full Code Here

Examples of com.psddev.dari.db.State.endWrites()

        } catch (Exception error) {
            ErrorUtils.rethrow(error);

        } finally {
            state.endWrites();
        }

        // Expensive operations that should only trigger occasionally.
        boolean idle = page.param(boolean.class, "idle");
View Full Code Here

Examples of com.psddev.dari.db.State.endWrites()

                    history.save();
                    state.commitWrites();
                    return history;

                } finally {
                    state.endWrites();
                }
            }
        }

        /**
 
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.