Source Code Cross Referenced for Constraint.java in  » Database-DBMS » JODB » com » mobixess » jodb » soda » api » 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 » Database DBMS » JODB » com.mobixess.jodb.soda.api 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:        Copyright (C) 2007  Mobixess Inc. http://www.java-objects-database.com
003:
004:        This file is part of the JODB (Java Objects Database) open source project.
005:
006:        JODB is free software; you can redistribute it and/or modify it under
007:        the terms of version 2 of the GNU General Public License as published
008:        by the Free Software Foundation.
009:
010:        JODB is distributed in the hope that it will be useful, but WITHOUT ANY
011:        WARRANTY; without even the implied warranty of MERCHANTABILITY or
012:        FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
013:        for more details.
014:
015:        You should have received a copy of the GNU General Public License along
016:        with this program; if not, write to the Free Software Foundation, Inc.,
017:        59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
018:         */
019:        package com.mobixess.jodb.soda.api;
020:
021:        /**
022:         * constraint to limit the objects returned upon
023:         * {@linkplain Query#execute() query execution}.
024:         * <br><br>
025:         * Constraints are constructed by calling 
026:         * {@link Query#constrain Query.constrain()}.
027:         * <br><br>
028:         * Constraints can be joined with the methods {@link #and and()}
029:         * and {@link #or or()}.
030:         * <br><br>
031:         * The methods to modify the constraint evaluation algorithm may
032:         * be merged, to construct combined evaluation rules.
033:         * Examples:
034:         * <ul>
035:         *   <li> <code>Constraint#smaller().equal()</code> for "smaller or equal" </li>
036:         *   <li> <code>Constraint#not().like()</code> for "not like" </li>
037:         *   <li> <code>Constraint#not().greater().equal()</code> for "not greater or equal" </li>
038:         * </ul>
039:         */
040:        public interface Constraint {
041:
042:            /**
043:             * links two Constraints for AND evaluation.
044:             * @param with the other {@link Constraint}
045:             * @return a new {@link Constraint}, that can be used for further calls
046:             * to {@link #and and()} and {@link #or or()}
047:             */
048:            public Constraint and(Constraint with);
049:
050:            /**
051:             * links two Constraints for OR evaluation.
052:             * @param with the other {@link Constraint}
053:             * @return a new {@link Constraint}, that can be used for further calls
054:             * to {@link #and and()} and {@link #or or()}
055:             */
056:            public Constraint or(Constraint with);
057:
058:            /**
059:             * sets the evaluation mode to <code>==</code>.
060:             * @return this {@link Constraint} to allow the chaining of method calls.
061:             */
062:            public Constraint equal();
063:
064:            /**
065:             * sets the evaluation mode to <code>&gt;</code>.
066:             * @return this {@link Constraint} to allow the chaining of method calls.
067:             */
068:            public Constraint greater();
069:
070:            /**
071:             * sets the evaluation mode to <code>&lt;</code>.
072:             * @return this {@link Constraint} to allow the chaining of method calls.
073:             */
074:            public Constraint smaller();
075:
076:            /**
077:             * sets the evaluation mode to identity comparison.
078:             * @return this {@link Constraint} to allow the chaining of method calls.
079:             */
080:            public Constraint identity();
081:
082:            /**
083:             * sets the evaluation mode to "like" comparison.
084:             * @return this {@link Constraint} to allow the chaining of method calls.
085:             */
086:            public Constraint like();
087:
088:            /**
089:             * sets the evaluation mode to containment comparison.
090:             * <br><br>
091:             * Evaluation is dependant on the constrained query node:
092:             * <dl>
093:             *  <dt><code>String</code></dt>
094:             *   <dd>the persistent object is tested to contain a substring.</dd>
095:             *  <dt>arrays, {@linkplain java.util.Collection collections}</dt>
096:             *   <dd>the persistent object is tested to contain all elements of
097:             *      the constraining object.</dt>
098:             * </dl>
099:             * @return this {@link Constraint} to allow the chaining of method calls.
100:             */
101:            public Constraint contains();
102:
103:            /**
104:             * turns on not() comparison.
105:             * @return this {@link Constraint} to allow the chaining of method calls.
106:             */
107:            public Constraint not();
108:
109:            /**
110:             * returns the Object the query graph was constrained with to
111:             * create this {@link Constraint}.
112:             * @return Object the constraining object.
113:             */
114:            public Object getObject();
115:
116:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.