Source Code Cross Referenced for MatchNSLargerQuery.java in  » Search-Engine » Jofti » com » jofti » query » namespace » 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 » Search Engine » Jofti » com.jofti.query.namespace 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Created on Jun 5, 2005
003:         *
004:         */
005:        package com.jofti.query.namespace;
006:
007:        /**
008:         *
009:         *
010:         * A utility class to enable simple queries to be done easily. The Query matches everything larger than the 
011:         * value passed in for that particular field. The optional inclusive flag allows the behaviour to be either >= or just >.
012:         * <p>
013:         * All nameSpace queries must provide a correct namespace type for the implementation. Some nameSPaces 
014:         * are hierachical and so the search will use the nameSpace as starting point. Others are flat and so there is no 
015:         * traversal step.
016:         * <p>
017:         *  This query acannot be combined with any other. iF you want to construct more complex queries use the @link com.jofti.query.Query class.
018:         * <p>
019:         * @author Steve Woodcock
020:         */
021:        public class MatchNSLargerQuery extends MatchNSRangeQuery {
022:
023:            /**
024:             * Construct a query supplying the classname of the object type to be returned, the namespace 
025:             * under which to start the search. The field to be queried and the value to be used. 
026:             * <p>
027:             * The field type in the object and the value must be of the same type.
028:             * <p>
029:             * It is assumed that the search is inclusive.
030:             * <p>
031:             * An example usage (for JBossCache) would be:
032:             * <p>
033:             * new MatchNSLargerQuery("org.package.Myclass", "/test", "myProperty" ,"some value");
034:             * <p>
035:             * @param className - the class of object to be returned.
036:             * @param nameSpace - the name space to be searched.
037:             * @param propertyName - the field name to use
038:             * @param value - the value that is used as the search value.
039:             */
040:            public MatchNSLargerQuery(Class className, Object nameSpace,
041:                    String propertyName, Comparable value) {
042:                this (className, nameSpace, propertyName, value, null);
043:            }
044:
045:            public MatchNSLargerQuery(Class className, Object nameSpace,
046:                    String propertyName, Comparable value, Object alias) {
047:                super (className, nameSpace, propertyName, value, null, alias);
048:            }
049:
050:            public MatchNSLargerQuery(String className, Object nameSpace,
051:                    String propertyName, Comparable value) {
052:                this (className, nameSpace, propertyName, value, null);
053:            }
054:
055:            public MatchNSLargerQuery(String className, Object nameSpace,
056:                    String propertyName, Comparable value, Object alias) {
057:                super (className, nameSpace, propertyName, value, null, alias);
058:            }
059:
060:            /**
061:             * Construct a query supplying the classname of the object type to be returned, the namespace 
062:             * under which to start the search. The field to be queried and the value to be used. The method
063:             * also allows control of whether the query is inclusive of the value or not.
064:             * <p>
065:             * The field type in the object and the value must be of the same type.
066:             * <p>
067:             * An example usage (for JBossCache) would be:
068:             * <p>
069:             * new MatchNSLargerQuery("org.package.Myclass", "/test", "myProperty" ,"some value");
070:             * <p>
071:             * @param className - the class of object to be returned.
072:             * @param nameSpace - the name space to be searched.
073:             * @param propertyName - the field name to use
074:             * @param value - the value that is used as the search value.
075:             * @param inclusive - indicates if the value is to be inclusive in range.
076:             */
077:            public MatchNSLargerQuery(Class className, Object nameSpace,
078:                    String propertyName, Comparable value, boolean inclusive) {
079:                this (className, nameSpace, propertyName, value, inclusive, null);
080:            }
081:
082:            public MatchNSLargerQuery(Class className, Object nameSpace,
083:                    String propertyName, Comparable value, boolean inclusive,
084:                    Object alias) {
085:                super (className, nameSpace, propertyName, value, null,
086:                        inclusive, alias);
087:            }
088:
089:            public MatchNSLargerQuery(String className, Object nameSpace,
090:                    String propertyName, Comparable value, boolean inclusive) {
091:                this (className, nameSpace, propertyName, value, inclusive, null);
092:            }
093:
094:            public MatchNSLargerQuery(String className, Object nameSpace,
095:                    String propertyName, Comparable value, boolean inclusive,
096:                    Object alias) {
097:                super (className, nameSpace, propertyName, value, null,
098:                        inclusive, alias);
099:            }
100:
101:            /**
102:             * Construct a query supplying the value to be searched against and the namespace 
103:             * under which to start the search. This is a convenience method for classes (such as String,Integer etc)
104:             * that have no property value as such. Instead the value is the class type.
105:             * <p>
106:             * 
107:             * An example usage (for JBossCache) would be:
108:             * <p>
109:             * new MatchNSLargerQuery( "/test","some value",true);
110:             * <p>
111:             * This is so you do not have to use the methods above in the manner of
112:             * <p>
113:             * new MatchNSLargerQuery("java.lang.String", "/test", null ,"some value"); 
114:             * <p>
115:
116:             * @param nameSpace - the name space to be searched.
117:             * @param value - the value that is used as the search value.
118:             * @param inclusive - indicates if the value is to be inclusive in range.
119:             */
120:            public MatchNSLargerQuery(Object nameSpace, Comparable value,
121:                    boolean inclusive) {
122:                super (nameSpace, value, null, inclusive, null);
123:            }
124:
125:            public MatchNSLargerQuery(Object nameSpace, Comparable value,
126:                    boolean inclusive, Object alias) {
127:                super(nameSpace, value, null, inclusive, alias);
128:            }
129:
130:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.