Examples of PersistenceBrokerException


Examples of org.apache.ojb.broker.PersistenceBrokerException

            f.set(obj, result);
            return result;
        }
        catch(MetadataException e)
        {
            throw new PersistenceBrokerException(
                    "Error while trying to autoincrement field " + f.getDeclaringClass() + "#" + f.getName(),
                    e);
        }
        catch(SequenceManagerException e)
        {
            throw new PersistenceBrokerException("Could not get key value", e);
        }
    }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerException

          m_VerifyExceptions.add(sqle);
        }
        catch (Exception ex)
        {
            logger.error(ex);
            throw new PersistenceBrokerException(ex);
        }
    }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerException

            }
        }
        catch (Exception ex)
        {
            //logger.error(ex);
            throw new PersistenceBrokerException(ex);
        }
    }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerException

    {
        super();

        if (endAt != Query.NO_START_AT_INDEX && startAt > endAt)
        {
            throw new PersistenceBrokerException("startAt must be less than endAt.");
        }

        m_iterator = anIterator;
        m_fullSize = m_iterator.size();
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerException

            throws PersistenceBrokerException
    {
        super(queryObject, broker);
        if(!queryObject.isSQLBased())
        {
            throw new PersistenceBrokerException("Given query is not a QueryBySQL object");
        }
    }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerException

      m_pbf = ((PBFactoryIF) context.lookup(PBFactoryIF.PBFACTORY_JNDI_NAME)).getInstance();
    }
    catch (NamingException e)
    {
      m_log.error("Lookup for PersistenceBrokerFactory failed", e);
      throw new PersistenceBrokerException(e);
    }
  }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerException

        {
            throw new PersistenceBrokerSQLException("Could not build statement ask for", e);
        }
        catch (LookupException e)
        {
            throw new PersistenceBrokerException("Used ConnectionManager instance could not obtain a connection", e);
        }
    }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerException

        {
            return cds.getStatementsForClass(m_conMan).getGenericStmt(m_conMan.getConnection(), scrollable);
        }
        catch (LookupException e)
        {
            throw new PersistenceBrokerException("Used ConnectionManager instance could not obtain a connection", e);
        }
    }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerException

        {
            throw new PersistenceBrokerSQLException("Could not build statement ask for", e);
        }
        catch (LookupException e)
        {
            throw new PersistenceBrokerException("Used ConnectionManager instance could not obtain a connection", e);
        }
    }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerException

        {
            return cds.getStatementsForClass(m_conMan).getPreparedStmt(m_conMan.getConnection(), sql, scrollable, explicitFetchSizeHint, callableStmt);
        }
        catch (LookupException e)
        {
            throw new PersistenceBrokerException("Used ConnectionManager instance could not obtain a connection", e);
        }
    }
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.