org.ldaptive.templates
Class Query

java.lang.Object
  extended by org.ldaptive.templates.Query

public class Query
extends Object

Contains data associated with a query request.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Constructor Summary
Query(String query)
          Parses the query from a string into query terms.
 
Method Summary
 Integer getFromResult()
          Returns the from result.
 String[] getReturnAttributes()
          Returns the return attributes.
 String getSearchRestrictions()
          Returns the search restrictions.
 String[] getTerms()
          Returns the terms.
 Integer getToResult()
          Returns the to result.
 void setFromResult(Integer i)
          Sets the index of the result to begin searching.
 void setReturnAttributes(String[] attrs)
          Sets the return attributes.
 void setSearchRestrictions(String restrictions)
          Sets the search restrictions.
 void setToResult(Integer i)
          Sets the index of the result to stop searching.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Query

public Query(String query)
Parses the query from a string into query terms.

Parameters:
query - to parse
Method Detail

getTerms

public String[] getTerms()
Returns the terms.

Returns:
query terms

setReturnAttributes

public void setReturnAttributes(String[] attrs)
Sets the return attributes.

Parameters:
attrs - return attributes

getReturnAttributes

public String[] getReturnAttributes()
Returns the return attributes.

Returns:
return attributes

setSearchRestrictions

public void setSearchRestrictions(String restrictions)
Sets the search restrictions.

Parameters:
restrictions - search restrictions

getSearchRestrictions

public String getSearchRestrictions()
Returns the search restrictions.

Returns:
search restrictions

setFromResult

public void setFromResult(Integer i)
Sets the index of the result to begin searching.

Parameters:
i - from index

getFromResult

public Integer getFromResult()
Returns the from result.

Returns:
from result

setToResult

public void setToResult(Integer i)
Sets the index of the result to stop searching.

Parameters:
i - to result

getToResult

public Integer getToResult()
Returns the to result.

Returns:
to result

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2014 Virginia Tech. All Rights Reserved.