Package org.jboss.dashboard.database.hibernate

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


                    }
                }
            }
        };

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

    public WorkspaceImpl copy(final WorkspaceImpl workspace) throws Exception {
View Full Code Here


                String generatedId = UIServices.lookup().getWorkspacesManager().generateWorkspaceId();
                results[0] = copy(workspace, generatedId);
            }
        };

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

    // Internal copy methods
View Full Code Here

                    UIServices.lookup().getPanelsManager().delete(panel);
                    UIServices.lookup().getSectionsManager().store(section);
                }
            };

            txFragment.execute();
        } catch (Exception e) {
            log.error("Error: " + e.getMessage());
        }
    }
View Full Code Here

                            UIServices.lookup().getSectionsManager().store(section);
                            newPanel.getProvider().getDriver().fireAfterPanelPlacedInRegion(newPanel, null);
                        }
                    };

                    txFragment.execute();
                    setProvider("");
                    setRegion("");
                } catch (Exception e) {
                    log.error("Error: " + e.getMessage());
                }
View Full Code Here

                            UIServices.lookup().getSectionsManager().store(section);
                            newPanel.getProvider().getDriver().fireAfterPanelPlacedInRegion(newPanel, null);
                        }
                    };

                    txFragment.execute();
                    setIsNewInstance(Boolean.FALSE);
                    setProvider("");
                    setTitle("");
                    setRegion("");
                } catch (Exception e) {
View Full Code Here

                    protected void txFragment(Session session) throws Exception {
                        UIServices.lookup().getSectionsManager().store(section);
                    }
                };

                txFragment.execute();
                messagesHandler.addMessage("ui.alert.sectionEdition.OK");
                setSection(section);
            } catch (Exception e) {
                log.error("Error: ", e);
                messagesHandler.clearAll();
View Full Code Here

                param.setPanelInstance(theInstance);
                session.saveOrUpdate(theInstance);
            }
        };
        try {
            txFragment.execute();
        } catch (Exception e) {
            log.error("Error:", e);
        }
    }
View Full Code Here

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

        txFragment.execute();
    }

    /**
     * Restores content from secondary storage
     *
 
View Full Code Here

                fireAfterPanelClosed(panel);
            }
        };

        try {
            txFragment.execute();
        } catch (Exception e) {
            log.error("Can't remove panel from region.", e);
        }
        return new ShowPanelPage();
    }
View Full Code Here

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

        try {
            txFragment.execute();
        } catch (Exception e) {
            log.error("Can't move back panel in region.", e);
        }
        return new ShowPanelPage();
    }
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.