Package org.ldaptive.templates
Class Query
- java.lang.Object
-
- org.ldaptive.templates.Query
-
public class Query extends java.lang.ObjectContains data associated with a query request.- Author:
- Middleware Services
-
-
Constructor Summary
Constructors Constructor Description Query(java.lang.String query)Parses the query from a string into query terms.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetFromResult()Returns the from result.java.lang.String[]getReturnAttributes()Returns the return attributes.java.lang.StringgetSearchRestrictions()Returns the search restrictions.java.lang.String[]getTerms()Returns the terms.java.lang.IntegergetToResult()Returns the to result.voidsetFromResult(java.lang.Integer i)Sets the index of the result to begin searching.voidsetReturnAttributes(java.lang.String[] attrs)Sets the return attributes.voidsetSearchRestrictions(java.lang.String restrictions)Sets the search restrictions.voidsetToResult(java.lang.Integer i)Sets the index of the result to stop searching.java.lang.StringtoString()
-
-
-
Method Detail
-
getTerms
public java.lang.String[] getTerms()
Returns the terms.- Returns:
- query terms
-
setReturnAttributes
public void setReturnAttributes(java.lang.String[] attrs)
Sets the return attributes.- Parameters:
attrs- return attributes
-
getReturnAttributes
public java.lang.String[] getReturnAttributes()
Returns the return attributes.- Returns:
- return attributes
-
setSearchRestrictions
public void setSearchRestrictions(java.lang.String restrictions)
Sets the search restrictions.- Parameters:
restrictions- search restrictions
-
getSearchRestrictions
public java.lang.String getSearchRestrictions()
Returns the search restrictions.- Returns:
- search restrictions
-
setFromResult
public void setFromResult(java.lang.Integer i)
Sets the index of the result to begin searching.- Parameters:
i- from index
-
getFromResult
public java.lang.Integer getFromResult()
Returns the from result.- Returns:
- from result
-
setToResult
public void setToResult(java.lang.Integer i)
Sets the index of the result to stop searching.- Parameters:
i- to result
-
getToResult
public java.lang.Integer getToResult()
Returns the to result.- Returns:
- to result
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-