com.seag.qm
Class FutureQueryResultFactory

java.lang.Object
  |
  +--com.seag.qm.FutureQueryResultFactory

public final class FutureQueryResultFactory
extends java.lang.Object

A FutureQueryResult Object should be created whith this factory. It reuses allready created FutureQueryResult Objects for a better performance.


Constructor Summary
FutureQueryResultFactory(SqlDaemon sqlDaemon)
          Creates new FutureQueryResultFactory
 
Method Summary
 void addToQueryEventListener(ExecuteQuery execute)
          If a new ExecuteQuery - Thread is created, the factory should know about it.
 FutureQueryResult pop()
          Gets a FutureQueryResult Object from the Stack.
 void push(FutureQueryResult fqr)
          Pushes an old FutureQueryResult on the Stack, for reuse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FutureQueryResultFactory

public FutureQueryResultFactory(SqlDaemon sqlDaemon)
Creates new FutureQueryResultFactory
Parameters:
sqlDaemon -  
Method Detail

pop

public FutureQueryResult pop()
Gets a FutureQueryResult Object from the Stack. Creates a new one if the Stack is empty.
Returns:
FutureQueryResult

push

public void push(FutureQueryResult fqr)
Pushes an old FutureQueryResult on the Stack, for reuse.
Parameters:
fqr - old FutureQueryResult

addToQueryEventListener

public void addToQueryEventListener(ExecuteQuery execute)
If a new ExecuteQuery - Thread is created, the factory should know about it.
Parameters:
execute - new ExecuteQuery - Thread