Package org.jboss.dashboard.database.hibernate

Examples of org.jboss.dashboard.database.hibernate.HibernateTxFragment.execute()


            protected void txFragment(Session session) throws Exception {
                session.saveOrUpdate(instance);
            }
        };
        synchronized (instance) {
            txFragment.execute();
        }
    }

    public Panel getPaneltByDbId(final Long panelId) throws Exception {
        if (panelId != null) {
View Full Code Here


                                UIServices.lookup().getSectionsManager().store(sectionCopy);
                            }
                        }
                    };

                    txFragment.execute();
                    messagesHandler.addMessage("ui.alert.sectionCopy.OK");
                }
            }
            this.setDuplicateSection(Boolean.FALSE);
            this.setCreateSection(Boolean.FALSE);
View Full Code Here

                            }
                        }
                    }
                }
            };
            txFragment.execute();
            this.setDuplicateSection(Boolean.FALSE);
            this.setCreateSection(Boolean.FALSE);
            this.setSelectedSectionId(null);

View Full Code Here

                        }
                    }
                }
            };

            txFragment.execute();
            this.setDuplicateSection(Boolean.FALSE);
            this.setCreateSection(Boolean.FALSE);
            this.setSelectedSectionId(null);

        } catch (Exception e) {
View Full Code Here

                        }
                    }
                }
            };

            txFragment.execute();
            this.setDuplicateSection(Boolean.FALSE);
            this.setCreateSection(Boolean.FALSE);
            this.setSelectedSectionId(null);

        } catch (Exception e) {
View Full Code Here

                        }
                    }
                }
            };

            txFragment.execute();
            this.setDuplicateSection(Boolean.FALSE);
            this.setCreateSection(Boolean.FALSE);
            this.setSelectedSectionId(null);

        } catch (Exception e) {
View Full Code Here

                        }
                    }
                }
            };

            txFragment.execute();
            this.setDuplicateSection(Boolean.FALSE);
            this.setCreateSection(Boolean.FALSE);
            this.setSelectedSectionId(null);

        } catch (Exception e) {
View Full Code Here

                log.debug("PanelInstance with id " + panelInstance.getId() + " has been copied to id " + panelInstanceCopy.getId());
                results[0] = panelInstanceCopy;
            }
        };

        txFragment.execute();
        return results[0];
    }

    public Panel copy(final Panel panel, final Section section, final LayoutRegion region) throws Exception {
        return copy(panel, section, region, panel.getInstance());
View Full Code Here

                //Copy resources
                copyResources(panel, panelCopy);
            }
        };

        txFragment.execute();
        return results[0];
    }

    public Section copy(final Section section, final WorkspaceImpl workspace, final SectionCopyOption sco) throws Exception {
View Full Code Here

                session.refresh(sectionCopy); // To fix bug 2011
                results[0] = sectionCopy;
            }
        };
        synchronized (("workspace_" + workspace.getDbid()).intern()) {
            txFragment.execute();
        }
        return results[0];
    }

    public WorkspaceImpl copy(final WorkspaceImpl workspace, final String id) throws Exception {
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.