Example usage for javax.ejb FinderException printStackTrace

List of usage examples for javax.ejb FinderException printStackTrace

Introduction

In this page you can find the example usage for javax.ejb FinderException printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

From source file:com.idega.builder.business.BuilderLogic.java

public boolean changePageUriByTitle(String parentId, ICPage page, String pageTitle, int domainId) {
    if (page == null || pageTitle == null) {
        return false;
    }//  www.  ja v a 2s.  c  om
    ICPage parentPage = null;
    String pageUri = null;
    if (parentId != null) {
        try {
            parentPage = getIBPageHelper().getICPageHome().findByPrimaryKey(parentId);
        } catch (FinderException e) {
            e.printStackTrace();
            return false;
        }
        PageUrl pUrl = new PageUrl(parentPage, pageTitle, domainId);
        pageUri = pUrl.getGeneratedUrlFromName();
    } else {
        PageUrl pUrl = new PageUrl(pageTitle);
        pageUri = pUrl.getGeneratedUrlFromName();
    }
    if (pageUri != null) {
        page.setDefaultPageURI(pageUri);
        page.store();
    }
    return true;
}