org.acmsl.queryj
Class ConditionOperatorRepository

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

public class ConditionOperatorRepository
extends java.lang.Object

Contains references to declared operators.

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

Constructor Summary
protected ConditionOperatorRepository()
          Protected constructor to avoid accidental instantiation.
 
Method Summary
 ConditionOperator getBelongsTo(SelectQuery query)
          Retrieves the belongs-to operator.
 ConditionOperator getEquals()
          Retrieves the equality operator.
 ConditionOperator getGreaterThan()
          Retrieves the greater-than operator.
static ConditionOperatorRepository getInstance()
          Retrieves a ConditionOperatorRepository instance.
 ConditionOperator getIsNull()
          Retrieves the null operator.
 ConditionOperator getLessThan()
          Retrieves the less-than operator.
 ConditionOperator getNotBelongsTo(SelectQuery query)
          Retrieves the not-belongs-to operator.
 ConditionOperator getNotEquals()
          Retrieves the unequality operator.
protected static java.lang.ref.WeakReference getReference()
          Retrieves the weak reference.
protected static void setReference(ConditionOperatorRepository repository)
          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

ConditionOperatorRepository

protected ConditionOperatorRepository()
Protected constructor to avoid accidental instantiation.

Method Detail

setReference

protected static void setReference(ConditionOperatorRepository repository)
Specifies a new weak reference.


getReference

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

Returns:
such reference.

getInstance

public static ConditionOperatorRepository getInstance()
Retrieves a ConditionOperatorRepository instance.

Returns:
such instance.

getEquals

public ConditionOperator getEquals()
Retrieves the equality operator.

Returns:
such operator

getNotEquals

public ConditionOperator getNotEquals()
Retrieves the unequality operator.

Returns:
such operator.

getGreaterThan

public ConditionOperator getGreaterThan()
Retrieves the greater-than operator.

Returns:
such operator.

getLessThan

public ConditionOperator getLessThan()
Retrieves the less-than operator.

Returns:
such operator.

getIsNull

public ConditionOperator getIsNull()
Retrieves the null operator.

Returns:
such operator.

getBelongsTo

public ConditionOperator getBelongsTo(SelectQuery query)
Retrieves the belongs-to operator.

Parameters:
query - the query.
Returns:
such operator.

getNotBelongsTo

public ConditionOperator getNotBelongsTo(SelectQuery query)
Retrieves the not-belongs-to operator.

Parameters:
query - the query.
Returns:
such operator.


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