org.acmsl.queryj
Class QueryUtils

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

public abstract class QueryUtils
extends java.lang.Object

Provides some useful methods when working with queries.

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

Constructor Summary
protected QueryUtils()
          Protected constructor to avoid accidental instantiation.
 
Method Summary
 java.lang.String concatenate(java.util.Collection items, java.lang.String separator)
          Concatenates all elements of given collection using a separator.
static QueryUtils getInstance()
          Retrieves a QueryUtils instance.
protected static java.lang.ref.WeakReference getReference()
          Retrieves the weak reference.
protected static void setReference(QueryUtils utils)
          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

QueryUtils

protected QueryUtils()
Protected constructor to avoid accidental instantiation.

Method Detail

setReference

protected static void setReference(QueryUtils utils)
Specifies a new weak reference.

Parameters:
utils - the utils instance to use.

getReference

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

Returns:
such reference.

getInstance

public static QueryUtils getInstance()
Retrieves a QueryUtils instance.

Returns:
such instance.

concatenate

public java.lang.String concatenate(java.util.Collection items,
                                    java.lang.String separator)
Concatenates all elements of given collection using a separator.

Parameters:
items - the collection.
separator - the separator.
Returns:
such concatenation.


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