Package org.apache.tapestry.contrib.ejb

Examples of org.apache.tapestry.contrib.ejb.XEJBException


            {
                statement = buildPersonQuery(connection, "owner.PERSON_ID", ownerId, sortOrdering);
            }
            catch (SQLException ex)
            {
                throw new XEJBException("Unable to create query statement.", ex);
            }

            processQuery(statement);

        }
View Full Code Here


            {
                statement = buildPersonQuery(connection, "holder.PERSON_ID", holderId, sortOrdering);
            }
            catch (SQLException ex)
            {
                throw new XEJBException("Unable to create query statement.", ex);
            }

            processQuery(statement);

        }
View Full Code Here

            {
                statement = buildBorrowerQuery(connection, borrowerId, sortOrdering);
            }
            catch (SQLException ex)
            {
                throw new XEJBException("Unable to create query statement.", ex);
            }

            processQuery(statement);

        }
View Full Code Here

        {
            set = statement.executeQuery();
        }
        catch (SQLException ex)
        {
            throw new XEJBException("Unable to execute query.", ex);
        }

        try
        {
            processQueryResults(set);
        }
        catch (SQLException ex)
        {
            throw new XEJBException("Unable to process query results.", ex);
        }
        finally
        {
            close(null, null, set);
        }
View Full Code Here

            initial = new InitialContext();
            _environment = (Context) initial.lookup("java:comp/env");
        }
        catch (NamingException e)
        {
            throw new XEJBException("Could not lookup environment.", e);
        }

        try
        {
            _dataSource = (DataSource) _environment.lookup("jdbc/dataSource");
        }
        catch (NamingException e)
        {
            e.printStackTrace();
            throw new XEJBException("Could not lookup data source.", e);
        }
    }
View Full Code Here

            }
        }
        catch (SQLException ex)
        {
            ex.printStackTrace();
            throw new XEJBException("Could not fetch all Publishers.", ex);
        }
        finally
        {
            close(connection, statement, set);
        }
View Full Code Here

                list.add(convertRowToPerson(set, columns));
            }
        }
        catch (SQLException ex)
        {
            throw new XEJBException("Could not fetch all Persons.", ex);
        }
        finally
        {
            close(connection, statement, set);
        }
View Full Code Here

            result = convertRowToPerson(set, columns);

        }
        catch (SQLException ex)
        {
            throw new XEJBException("Unable to perform database query.", ex);
        }
        finally
        {
            close(connection, statement, set);
        }
View Full Code Here

            result = convertRowToBook(set, columns);

        }
        catch (SQLException ex)
        {
            throw new XEJBException("Unable to perform database query.", ex);
        }
        finally
        {
            close(connection, statement, set);
        }
View Full Code Here

                _personHome = (IPersonHome) PortableRemoteObject.narrow(raw, IPersonHome.class);
            }
            catch (NamingException ex)
            {
                throw new XEJBException("Could not lookup Person home interface.", ex);
            }

        }

        return _personHome;
View Full Code Here

TOP

Related Classes of org.apache.tapestry.contrib.ejb.XEJBException

Copyright © 2018 www.massapicom. 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.