com.objectwave.persist
Interface Broker

All Known Implementing Classes:
AbstractBroker, ObjectPoolBroker, RemoteBeanBroker

public interface Broker

The API for persistence. Implementations can be flat files, serialized objects, or perhaps even a relational database. Just adhere to this API and the implementation can be plugged into the BrokerFactory.

Version:
4.0
Author:
Dave Hoag

Method Summary
 void beginTransaction()
           
 void close()
          Tell the broker the application is done with it.
 void commit()
           
 int count(SQLQuery q)
           
 void delete(Persistence obj)
           
 void deleteAll(SQLQuery q)
           
 void deleteObjects(java.util.ArrayList deleteList)
           
 java.lang.Object find(SQLQuery q)
          The return type of object allows the support of multiple collection types.
 java.util.Vector findAttributes(SQLQuery q, java.lang.String[] at)
           
 Persistence findUnique(SQLQuery q)
           
 void rollback()
           
 void save(Persistence obj)
           
 void saveObjects(java.util.ArrayList saveList)
           
 void setBrokerProperty(BrokerPropertyIF b)
           
 

Method Detail

setBrokerProperty

public void setBrokerProperty(BrokerPropertyIF b)

beginTransaction

public void beginTransaction()
                      throws QueryException
QueryException

commit

public void commit()
            throws QueryException
QueryException

count

public int count(SQLQuery q)
          throws QueryException
QueryException

delete

public void delete(Persistence obj)
            throws QueryException
QueryException

deleteObjects

public void deleteObjects(java.util.ArrayList deleteList)
                   throws QueryException
QueryException

find

public java.lang.Object find(SQLQuery q)
                      throws QueryException
The return type of object allows the support of multiple collection types.

QueryException

deleteAll

public void deleteAll(SQLQuery q)
               throws QueryException
QueryException

findAttributes

public java.util.Vector findAttributes(SQLQuery q,
                                       java.lang.String[] at)
                                throws QueryException
QueryException

findUnique

public Persistence findUnique(SQLQuery q)
                       throws QueryException
QueryException

rollback

public void rollback()
              throws QueryException
QueryException

save

public void save(Persistence obj)
          throws QueryException
QueryException

saveObjects

public void saveObjects(java.util.ArrayList saveList)
                 throws QueryException
QueryException

close

public void close()
Tell the broker the application is done with it. May not have any behavior