org.acmsl.queryj
Class QueryFactory

java.lang.Object
  |
  +--org.acmsl.queryj.QueryFactory

public abstract class QueryFactory
extends java.lang.Object

Has the responsiblity of knowing how to create queries.

Version:
$Revision: 1.1 $
Author:
Jose San Leandro

Constructor Summary
protected QueryFactory()
          Protected constructor to avoid accidental instantiation.
 
Method Summary
 SelectQuery createSelectQuery()
          Creates a select query.
static QueryFactory getInstance()
          Retrieves a QueryFactory instance.
protected static java.lang.ref.WeakReference getReference()
          Retrieves the weak reference.
protected static void setReference(QueryFactory factory)
          Specifies a new weak reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryFactory

protected QueryFactory()
Protected constructor to avoid accidental instantiation.

Method Detail

setReference

protected static void setReference(QueryFactory factory)
Specifies a new weak reference.

Parameters:
factory - the factory instance to use.

getReference

protected static java.lang.ref.WeakReference getReference()
Retrieves the weak reference.

Returns:
such reference.

getInstance

public static QueryFactory getInstance()
Retrieves a QueryFactory instance.

Returns:
such instance.

createSelectQuery

public SelectQuery createSelectQuery()
Creates a select query.

Returns:
such query.


Copyright © 2003 ACM S.L.. All Rights Reserved.