com.objectwave.persist.broker
Class RemoteBeanBroker

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

public class RemoteBeanBroker
extends java.lang.Object
implements Broker

Version:
$Id: RemoteBeanBroker.java,v 2.0 2001/06/11 16:00:04 dave_hoag Exp $
Author:
dhoag

Constructor Summary
RemoteBeanBroker()
          Construct the EJB test client
 
Method Summary
 void beginTransaction()
           
 void close()
          Tell the broker the application is done with it.
 void commit()
           
 int count(SQLQuery q)
           
 JGrinderQuery create()
           
 void delete(Persistence obj)
           
 void deleteAll(SQLQuery q)
          The return type of object allows the support of multiple collection types.
 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 initialize()
           
static void main(java.lang.String[] args)
          Main method
 void rollback()
           
 void save(Persistence obj)
           
 void saveObjects(java.util.ArrayList saveList)
           
 void setBrokerProperty(BrokerPropertyIF b)
          Sets the BrokerProperty attribute of the RemoteBeanBroker object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteBeanBroker

public RemoteBeanBroker()
Construct the EJB test client

Method Detail

main

public static void main(java.lang.String[] args)
Main method

Parameters:
args - The command line arguments

setBrokerProperty

public void setBrokerProperty(BrokerPropertyIF b)
Sets the BrokerProperty attribute of the RemoteBeanBroker object

Specified by:
setBrokerProperty in interface Broker
Parameters:
b - The new BrokerProperty value

initialize

public void initialize()

create

public JGrinderQuery create()
Returns:

find

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

Specified by:
find in interface Broker
Parameters:
q -
Returns:

findAttributes

public java.util.Vector findAttributes(SQLQuery q,
                                       java.lang.String[] at)
Specified by:
findAttributes in interface Broker
Parameters:
q -
at -
Returns:

findUnique

public Persistence findUnique(SQLQuery q)
Specified by:
findUnique in interface Broker
Parameters:
q -
Returns:

count

public int count(SQLQuery q)
          throws QueryException
Specified by:
count in interface Broker
Parameters:
q -
Returns:
Throws:
QueryException

beginTransaction

public void beginTransaction()
                      throws QueryException
Specified by:
beginTransaction in interface Broker
Throws:
QueryException

commit

public void commit()
            throws QueryException
Specified by:
commit in interface Broker
Throws:
QueryException

delete

public void delete(Persistence obj)
            throws QueryException
Specified by:
delete in interface Broker
Parameters:
obj -
Throws:
QueryException

deleteObjects

public void deleteObjects(java.util.ArrayList deleteList)
                   throws QueryException
Specified by:
deleteObjects in interface Broker
Parameters:
deleteList -
Throws:
QueryException

deleteAll

public void deleteAll(SQLQuery q)
               throws QueryException
The return type of object allows the support of multiple collection types.

Specified by:
deleteAll in interface Broker
Parameters:
q -
Throws:
QueryException

rollback

public void rollback()
              throws QueryException
Specified by:
rollback in interface Broker
Throws:
QueryException

save

public void save(Persistence obj)
          throws QueryException
Specified by:
save in interface Broker
Parameters:
obj -
Throws:
QueryException

saveObjects

public void saveObjects(java.util.ArrayList saveList)
                 throws QueryException
Specified by:
saveObjects in interface Broker
Parameters:
saveList -
Throws:
QueryException

close

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

Specified by:
close in interface Broker