com.objectwave.persist.broker
Class NullBroker

java.lang.Object
  |
  +--com.objectwave.persist.AbstractBroker
        |
        +--com.objectwave.persist.broker.NullBroker
All Implemented Interfaces:
Broker

public class NullBroker
extends AbstractBroker

This class will not do anything. This allows an application to be built including hooks for persistence, but with virtually no overhead. When necessary, switch to an appropriate broker.

Version:
1.0

Field Summary
 
Fields inherited from class com.objectwave.persist.AbstractBroker
exceptionConverter, metrics, props, verbose
 
Constructor Summary
NullBroker()
           
 
Method Summary
 void beginTransaction()
           
 void commit()
           
 void delete(Persistence pers)
           
 void deleteAll(SQLQuery query)
           
 java.lang.Object find(SQLQuery query)
          The return type of object allows the support of multiple collection types.
 java.util.Vector findAttributes(SQLQuery query, java.lang.String[] args)
           
 Persistence findUnique(SQLQuery query)
           
 void rollback()
           
 void save(Persistence pers)
           
 void saveObjects(java.util.ArrayList list)
           
 
Methods inherited from class com.objectwave.persist.AbstractBroker
close, convertException, convertException, count, deleteObjects, getExceptionConverter, println, setBrokerProperty, setExceptionConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullBroker

public NullBroker()
Method Detail

findUnique

public Persistence findUnique(SQLQuery query)

find

public java.lang.Object find(SQLQuery query)
Description copied from interface: Broker
The return type of object allows the support of multiple collection types.


findAttributes

public java.util.Vector findAttributes(SQLQuery query,
                                       java.lang.String[] args)

deleteAll

public void deleteAll(SQLQuery query)

save

public void save(Persistence pers)

delete

public void delete(Persistence pers)

rollback

public void rollback()

commit

public void commit()

saveObjects

public void saveObjects(java.util.ArrayList list)

beginTransaction

public void beginTransaction()