Package org.apache.ojb.broker

Examples of org.apache.ojb.broker.PersistenceBrokerException


    public void localRollback()
    {
        log.info("Rollback was called, do rollback on current connection " + con);
        if (!this.isInLocalTransaction)
        {
            throw new PersistenceBrokerException("Not in transaction, cannot abort");
        }
        try
        {
            //truncate the local transaction
            this.isInLocalTransaction = false;
View Full Code Here


     */
    public PBPrevaylerImpl(PBKey key, PersistenceBrokerFactoryIF pbf)
    {
      super(key, pbf);
        refresh();
        if(key == null) throw new PersistenceBrokerException("Could not instantiate broker with PBKey 'null'");
        this.pbf = pbf;
        this.setPBKey(key);

        brokerHelper = new BrokerHelper(this);
        //connectionManager = ConnectionManagerFactory.getInstance().createConnectionManager(this);
View Full Code Here

   */
  public void store(Object obj) throws PersistenceBrokerException
  {
    if (! (obj instanceof Serializable))
    {
      throw new PersistenceBrokerException(obj.getClass().getName() + "does not implement java.io.Serializable.");
    }
   
    CommandStore cmd = new CommandStore(obj);
    commandLog.add(cmd);   
  }
View Full Code Here

  /**
   * @see org.apache.ojb.broker.PersistenceBroker#deleteByQuery(Query)
   */
  public void deleteByQuery(Query query) throws PersistenceBrokerException
  {
    throw new PersistenceBrokerException("not yet implemented");
  }
View Full Code Here

  /**
   * @see org.apache.ojb.broker.PersistenceBroker#getCount(Query)
   */
  public int getCount(Query query) throws PersistenceBrokerException
  {
    throw new PersistenceBrokerException("not yet implemented");
  }
View Full Code Here

  public ManageableCollection getCollectionByQuery(
    Class collectionClass,
    Query query)
    throws PersistenceBrokerException
  {
    throw new PersistenceBrokerException("not yet implemented");
  }
View Full Code Here

   * @see org.apache.ojb.broker.PersistenceBroker#getIteratorByQuery(Query)
   */
  public Iterator getIteratorByQuery(Query query)
    throws PersistenceBrokerException
  {
    throw new PersistenceBrokerException("not yet implemented");
  }
View Full Code Here

   * @see org.apache.ojb.broker.PersistenceBroker#getReportQueryIteratorByQuery(Query)
   */
  public Iterator getReportQueryIteratorByQuery(Query query)
    throws PersistenceBrokerException
  {
    throw new PersistenceBrokerException("not yet implemented");
  }
View Full Code Here

      Identity oid = (Identity) id;
      return db.lookupObjectByIdentity(oid);
    }
    else
    {
      throw new PersistenceBrokerException("not yet implemented")
    }
  }
View Full Code Here

  public Enumeration getPKEnumerationByQuery(
    Class PrimaryKeyClass,
    Query query)
    throws PersistenceBrokerException
  {
    throw new PersistenceBrokerException("not yet implemented");
  }
View Full Code Here

TOP

Related Classes of org.apache.ojb.broker.PersistenceBrokerException

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.