Java Doc for SearchControls.java in  » Apache-Harmony-Java-SE » javax-package » javax » naming » directory » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » javax package » javax.naming.directory 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.naming.directory.SearchControls

SearchControls
public class SearchControls implements Serializable(Code)
This class represents the scope of a search, and the list of attributes that the search encompasses.

The various scopes are defined by class constants representing Object, Single-depth, and Full-depth searches of the directory.

This class is not thread-safe.



Field Summary
final public static  intOBJECT_SCOPE
     Bounds the search to the object scope only.

The search takes place over the given object.

final public static  intONELEVEL_SCOPE
     Bounds the search to a single level of the naming context rooted at the given object.
final public static  intSUBTREE_SCOPE
     Bounds the search to the subtree rooted at the given object or naming context.

Constructor Summary
public  SearchControls()
     Default constructor.
public  SearchControls(int searchScope, long countLimit, int timeLimit, String attributesToReturn, boolean returnObj, boolean derefLink)
     Constructs a search control instance with all parameters.
Parameters:
  searchScope - the search scope, chosen from OBJECT_SCOPE, ONELEVEL_SCOPE orSUBTREE_SCOPE.
Parameters:
  countLimit - the maximum number of search results.

Method Summary
public  longgetCountLimit()
     Gets the maximum number of search results.
public  booleangetDerefLinkFlag()
     Gets the flag indicates whether search will follow LinkRef references. flag indicates whether searches will follow LinkRefreferences.
public  String[]getReturningAttributes()
     Gets identifiers of attributes to return for each result.
public  booleangetReturningObjFlag()
     Gets the flag whether search results will include the object (true) or not (false).
public  intgetSearchScope()
     Gets the search scope.
public  intgetTimeLimit()
     Gets the the maximum number of search time. the maximum number of search time in milliseconds, for thesearch.
public  voidsetCountLimit(long l)
     Sets the maximum number of search results.
Parameters:
  l - the maximum number of search results.
public  voidsetDerefLinkFlag(boolean flag)
     Sets the flag indicates whether search will follow LinkRef references.
Parameters:
  flag - flag indicates whether searches will followLinkRef references.
public  voidsetReturningAttributes(String as)
     Sets identifiers of attributes to return for each result.
Parameters:
  as - an array of identifiers of attributes to return for eachresult.
public  voidsetReturningObjFlag(boolean flag)
     Sets the flag whether search results will include the object (true) or not (false).
public  voidsetSearchScope(int i)
     Sets the search scope.
public  voidsetTimeLimit(int i)
     Sets the the maximum number of search time.
Parameters:
  i - the maximum number of search time in milliseconds, for thesearch.

Field Detail
OBJECT_SCOPE
final public static int OBJECT_SCOPE(Code)
Bounds the search to the object scope only.

The search takes place over the given object. The resulting enumeration will therefore only contain either zero or one (the given) object depending upon whether the object matches the search criteria.

If the object does match, its name in the enumeration will be empty since names are specified relative to the root of the search.




ONELEVEL_SCOPE
final public static int ONELEVEL_SCOPE(Code)
Bounds the search to a single level of the naming context rooted at the given object.

The search will take place over the object, or if the object is a context then the object and all objects that are one level removed from the given context.

Matches are named by a relative name to the given root, so will have atomic (single level valid) names.




SUBTREE_SCOPE
final public static int SUBTREE_SCOPE(Code)
Bounds the search to the subtree rooted at the given object or naming context.

The search will take place over the object, or if the object is a context then the object and all objects that are reachable from he given context.

The names that are returned in the enumeration are defined to be either relative names to the given root, or full URIs of the matching objects.

The search is defined to no cross naming system boundaries.





Constructor Detail
SearchControls
public SearchControls()(Code)
Default constructor.

Equivalent to: SearchControls (ONELEVEL_SCOPE, 0, 0, null, false, false).




SearchControls
public SearchControls(int searchScope, long countLimit, int timeLimit, String attributesToReturn, boolean returnObj, boolean derefLink)(Code)
Constructs a search control instance with all parameters.
Parameters:
  searchScope - the search scope, chosen from OBJECT_SCOPE, ONELEVEL_SCOPE orSUBTREE_SCOPE.
Parameters:
  countLimit - the maximum number of search results. If is zero, then thenumber of search results returned is unlimited.
Parameters:
  timeLimit - the maximum number of search time in milliseconds, for thesearch. If is zero, then there is no time limit for thesearch.
Parameters:
  attributesToReturn - an array of identifiers of attributes to return for eachresult. If is null, then all attributes are returned for eachresult.
Parameters:
  returnObj - an flag. If true then search results contain an object,otherwise they contain only a name and class pair.
Parameters:
  derefLink - an flag. If true then LinkRef references arefollowed in the search, otherwise they are not.




Method Detail
getCountLimit
public long getCountLimit()(Code)
Gets the maximum number of search results. the maximum number of search results to return.



getDerefLinkFlag
public boolean getDerefLinkFlag()(Code)
Gets the flag indicates whether search will follow LinkRef references. flag indicates whether searches will follow LinkRefreferences. If true then LinkRef references arefollowed in the search, otherwise they are not.



getReturningAttributes
public String[] getReturningAttributes()(Code)
Gets identifiers of attributes to return for each result. an array of identifiers of attributes to return for each result.If is null, then all attributes are returned for each result.



getReturningObjFlag
public boolean getReturningObjFlag()(Code)
Gets the flag whether search results will include the object (true) or not (false). if true then search results contain an object, otherwise theycontain only a name and class pair.



getSearchScope
public int getSearchScope()(Code)
Gets the search scope. the search scope, chosen from OBJECT_SCOPE, ONELEVEL_SCOPE orSUBTREE_SCOPE.



getTimeLimit
public int getTimeLimit()(Code)
Gets the the maximum number of search time. the maximum number of search time in milliseconds, for thesearch. If is zero, then there is no time limit for the search.



setCountLimit
public void setCountLimit(long l)(Code)
Sets the maximum number of search results.
Parameters:
  l - the maximum number of search results. If is zero, then thenumber of search results returned is unlimited.



setDerefLinkFlag
public void setDerefLinkFlag(boolean flag)(Code)
Sets the flag indicates whether search will follow LinkRef references.
Parameters:
  flag - flag indicates whether searches will followLinkRef references. If true thenLinkRef references are followed in the search,otherwise they are not.



setReturningAttributes
public void setReturningAttributes(String as)(Code)
Sets identifiers of attributes to return for each result.
Parameters:
  as - an array of identifiers of attributes to return for eachresult. If is null, then all attributes are returned for eachresult.



setReturningObjFlag
public void setReturningObjFlag(boolean flag)(Code)
Sets the flag whether search results will include the object (true) or not (false).
Parameters:
  flag - if true then search results contain an object, otherwise theycontain only a name and class pair.



setSearchScope
public void setSearchScope(int i)(Code)
Sets the search scope.
Parameters:
  i - the search scope, chosen from OBJECT_SCOPE, ONELEVEL_SCOPE orSUBTREE_SCOPE.



setTimeLimit
public void setTimeLimit(int i)(Code)
Sets the the maximum number of search time.
Parameters:
  i - the maximum number of search time in milliseconds, for thesearch. If is zero, then there is no time limit for thesearch.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.