Source Code Cross Referenced for SQLQuery.java in  » Database-ORM » hibernate » org » hibernate » 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 ORM » hibernate » org.hibernate 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        //$Id: SQLQuery.java 10846 2006-11-18 04:21:05Z steve.ebersole@jboss.com $
002:        package org.hibernate;
003:
004:        import org.hibernate.type.Type;
005:
006:        /**
007:         * Allows the user to declare the types and select list injection
008:         * points of all entities returned by the query. Also allows
009:         * declaration of the type and column alias of any scalar results
010:         * of the query.
011:         * 
012:         * @author Gavin King
013:         */
014:        public interface SQLQuery extends Query {
015:            /**
016:             * Declare a "root" entity, without specifying an alias
017:             */
018:            public SQLQuery addEntity(String entityName);
019:
020:            /**
021:             * Declare a "root" entity
022:             */
023:            public SQLQuery addEntity(String alias, String entityName);
024:
025:            /**
026:             * Declare a "root" entity, specifying a lock mode
027:             */
028:            public SQLQuery addEntity(String alias, String entityName,
029:                    LockMode lockMode);
030:
031:            /**
032:             * Declare a "root" entity, without specifying an alias
033:             */
034:            public SQLQuery addEntity(Class entityClass);
035:
036:            /**
037:             * Declare a "root" entity
038:             */
039:            public SQLQuery addEntity(String alias, Class entityClass);
040:
041:            /**
042:             * Declare a "root" entity, specifying a lock mode
043:             */
044:            public SQLQuery addEntity(String alias, Class entityClass,
045:                    LockMode lockMode);
046:
047:            /**
048:             * Declare a "joined" entity
049:             */
050:            public SQLQuery addJoin(String alias, String path);
051:
052:            /**
053:             * Declare a "joined" entity, specifying a lock mode
054:             */
055:            public SQLQuery addJoin(String alias, String path, LockMode lockMode);
056:
057:            /**
058:             * Declare a scalar query result
059:             */
060:            public SQLQuery addScalar(String columnAlias, Type type);
061:
062:            /**
063:             * Declare a scalar query. Hibernate will attempt to automatically detect the underlying type.
064:             */
065:            public SQLQuery addScalar(String columnAlias);
066:
067:            /**
068:             * Use a predefined named ResultSetMapping
069:             */
070:            public SQLQuery setResultSetMapping(String name);
071:
072:            /**
073:             * Adds a query space for auto-flush synchronization.
074:             *
075:             * @param querySpace The query space to be auto-flushed for this query.
076:             * @return this, for method chaning
077:             */
078:            public SQLQuery addSynchronizedQuerySpace(String querySpace);
079:
080:            /**
081:             * Adds an entity name or auto-flush synchronization.
082:             *
083:             * @param entityName The name of the entity upon whose defined
084:             * query spaces we should additionally synchronize.
085:             * @return this, for method chaning
086:             * @throws MappingException Indicates the given entity name could not be
087:             * resolved.
088:             */
089:            public SQLQuery addSynchronizedEntityName(String entityName)
090:                    throws MappingException;
091:
092:            /**
093:             * Adds an entity name or auto-flush synchronization.
094:             *
095:             * @param entityClass The class of the entity upon whose defined
096:             * query spaces we should additionally synchronize.
097:             * @return this, for method chaning
098:             * @throws MappingException Indicates the given entity class could not be
099:             * resolved.
100:             */
101:            public SQLQuery addSynchronizedEntityClass(Class entityClass)
102:                    throws MappingException;
103:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.