Java Doc for QueryLoader.java in  » Database-ORM » hibernate » org » hibernate » loader » hql » 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.loader.hql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.hibernate.loader.BasicLoader
   org.hibernate.loader.hql.QueryLoader

QueryLoader
public class QueryLoader extends BasicLoader (Code)
A delegate that implements the Loader part of QueryTranslator.
author:
   josh



Constructor Summary
public  QueryLoader(QueryTranslatorImpl queryTranslator, SessionFactoryImplementor factory, SelectClause selectClause)
     Creates a new Loader implementation.

Method Summary
protected  StringapplyLocks(String sql, Map lockModes, Dialect dialect)
    
protected  intbindParameterValues(PreparedStatement statement, QueryParameters queryParameters, int startIndex, SessionImplementor session)
     We specifically override this method here, because in general we know much more about the parameters and their appropriate bind positions here then we do in our super because we track them explciitly here through the ParameterSpecification interface.
Parameters:
  queryParameters - The encapsulation of the parameter values to be bound.
Parameters:
  startIndex - The position from which to start binding parameter values.
Parameters:
  session - The originating session.
public  String[]getAliases()
    
protected  int[]getCollectionOwners()
    
protected  CollectionPersister[]getCollectionPersisters()
    
public  String[]getCollectionSuffixes()
    
protected  boolean[]getEntityEagerPropertyFetches()
    
public  Loadable[]getEntityPersisters()
    
protected  LockMode[]getLockModes(Map lockModes)
    
public  int[]getNamedParameterLocs(String name)
     Returns the locations of all occurrences of the named parameter.
protected  EntityType[]getOwnerAssociationTypes()
    
protected  int[]getOwners()
    
protected  StringgetQueryIdentifier()
    
protected  ObjectgetResultColumnOrRow(Object[] row, ResultTransformer transformer, ResultSet rs, SessionImplementor session)
    
protected  ListgetResultList(List results, ResultTransformer resultTransformer)
    
protected  StringgetSQLString()
     The SQL query string to be called.
public  String[]getSqlAliasSuffixes()
    
public  String[]getSuffixes()
    
protected  booleanisSubselectLoadingEnabled()
    
public  Iteratoriterate(QueryParameters queryParameters, EventSource session)
    
public  Listlist(SessionImplementor session, QueryParameters queryParameters)
    
protected  booleanneedsFetchingScroll()
    
public  ScrollableResultsscroll(QueryParameters queryParameters, SessionImplementor session)
    
protected  booleanupgradeLocks()
    
final public  voidvalidateScrollability()
    


Constructor Detail
QueryLoader
public QueryLoader(QueryTranslatorImpl queryTranslator, SessionFactoryImplementor factory, SelectClause selectClause)(Code)
Creates a new Loader implementation.
Parameters:
  queryTranslator - The query translator that is the delegator.
Parameters:
  factory - The factory from which this loader is being created.
Parameters:
  selectClause - The AST representing the select clause for loading.




Method Detail
applyLocks
protected String applyLocks(String sql, Map lockModes, Dialect dialect) throws QueryException(Code)



bindParameterValues
protected int bindParameterValues(PreparedStatement statement, QueryParameters queryParameters, int startIndex, SessionImplementor session) throws SQLException(Code)
We specifically override this method here, because in general we know much more about the parameters and their appropriate bind positions here then we do in our super because we track them explciitly here through the ParameterSpecification interface.
Parameters:
  queryParameters - The encapsulation of the parameter values to be bound.
Parameters:
  startIndex - The position from which to start binding parameter values.
Parameters:
  session - The originating session. The number of JDBC bind positions actually bound during this method execution.
throws:
  SQLException - Indicates problems performing the binding.



getAliases
public String[] getAliases()(Code)



getCollectionOwners
protected int[] getCollectionOwners()(Code)



getCollectionPersisters
protected CollectionPersister[] getCollectionPersisters()(Code)
An (optional) persister for a collection to be initialized; only collection loaders return a non-null value



getCollectionSuffixes
public String[] getCollectionSuffixes()(Code)



getEntityEagerPropertyFetches
protected boolean[] getEntityEagerPropertyFetches()(Code)



getEntityPersisters
public Loadable[] getEntityPersisters()(Code)



getLockModes
protected LockMode[] getLockModes(Map lockModes)(Code)

Parameters:
  lockModes - a collection of lock modes specified dynamically via the Query interface



getNamedParameterLocs
public int[] getNamedParameterLocs(String name) throws QueryException(Code)
Returns the locations of all occurrences of the named parameter.



getOwnerAssociationTypes
protected EntityType[] getOwnerAssociationTypes()(Code)



getOwners
protected int[] getOwners()(Code)
An array of indexes of the entity that owns a one-to-one association to the entity at the given index (-1 if there is no "owner")



getQueryIdentifier
protected String getQueryIdentifier()(Code)



getResultColumnOrRow
protected Object getResultColumnOrRow(Object[] row, ResultTransformer transformer, ResultSet rs, SessionImplementor session) throws SQLException, HibernateException(Code)



getResultList
protected List getResultList(List results, ResultTransformer resultTransformer) throws QueryException(Code)



getSQLString
protected String getSQLString()(Code)
The SQL query string to be called.



getSqlAliasSuffixes
public String[] getSqlAliasSuffixes()(Code)



getSuffixes
public String[] getSuffixes()(Code)



isSubselectLoadingEnabled
protected boolean isSubselectLoadingEnabled()(Code)



iterate
public Iterator iterate(QueryParameters queryParameters, EventSource session) throws HibernateException(Code)



list
public List list(SessionImplementor session, QueryParameters queryParameters) throws HibernateException(Code)



needsFetchingScroll
protected boolean needsFetchingScroll()(Code)



scroll
public ScrollableResults scroll(QueryParameters queryParameters, SessionImplementor session) throws HibernateException(Code)



upgradeLocks
protected boolean upgradeLocks()(Code)



validateScrollability
final public void validateScrollability() throws HibernateException(Code)



Fields inherited from org.hibernate.loader.BasicLoader
final protected static String[] NO_SUFFIX(Code)(Java Doc)

Methods inherited from org.hibernate.loader.BasicLoader
public static String[] generateSuffixes(int length)(Code)(Java Doc)
public static String[] generateSuffixes(int seed, int length)(Code)(Java Doc)
final protected CollectionAliases[] getCollectionAliases()(Code)(Java Doc)
abstract protected String[] getCollectionSuffixes()(Code)(Java Doc)
final protected EntityAliases[] getEntityAliases()(Code)(Java Doc)
abstract protected String[] getSuffixes()(Code)(Java Doc)
protected void postInstantiate()(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.