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


java.lang.Object
   org.hibernate.impl.AbstractQueryImpl

All known Subclasses:   org.hibernate.impl.QueryImpl,  org.hibernate.impl.SQLQueryImpl,
AbstractQueryImpl
abstract public class AbstractQueryImpl implements Query(Code)
Abstract implementation of the Query interface.
author:
   Gavin King, Max Andersen


Field Summary
final protected  ParameterMetadataparameterMetadata
    
final protected  SessionImplementorsession
    

Constructor Summary
public  AbstractQueryImpl(String queryString, FlushMode flushMode, SessionImplementor session, ParameterMetadata parameterMetadata)
    

Method Summary
protected  voidafter()
    
protected  voidbefore()
    
protected  TypedetermineType(int paramPosition, Object paramValue, Type defaultType)
    
protected  TypedetermineType(int paramPosition, Object paramValue)
    
protected  TypedetermineType(String paramName, Object paramValue, Type defaultType)
    
protected  TypedetermineType(String paramName, Object paramValue)
    
protected  TypedetermineType(String paramName, Class clazz)
    
protected  StringexpandParameterLists(Map namedParamsCopy)
    
abstract protected  MapgetLockModes()
    
protected  MapgetNamedParameterLists()
     Retreive the value map for any named parameter lists (i.e., for auto-expansion) bound to this query.
public  String[]getNamedParameters()
     Returns an array representing all named parameter names encountered during (intial) parsing of the query.

Note initial here means different things depending on whether this is a native-sql query or an HQL/filter query.

protected  MapgetNamedParams()
     Returns a shallow copy of the named parameter value map.
public  QueryParametersgetQueryParameters(Map namedParams)
    
final public  StringgetQueryString()
    
public  String[]getReturnAliases()
    
public  Type[]getReturnTypes()
    
protected  RowSelectiongetRowSelection()
    
public  RowSelectiongetSelection()
    
 SessionImplementorgetSession()
    
protected  ListgetTypes()
     Retreives the list of parameter Type type s bound to this query for ordinal parameters.
protected  ListgetValues()
     Retreives the list of parameter values bound to this query for ordinal parameters.
public  booleanhasNamedParameters()
    
public  booleanisReadOnly()
    
public  QuerysetBigDecimal(int position, BigDecimal number)
    
public  QuerysetBigDecimal(String name, BigDecimal number)
    
public  QuerysetBigInteger(int position, BigInteger number)
    
public  QuerysetBigInteger(String name, BigInteger number)
    
public  QuerysetBinary(int position, byte[] val)
    
public  QuerysetBinary(String name, byte[] val)
    
public  QuerysetBoolean(int position, boolean val)
    
public  QuerysetBoolean(String name, boolean val)
    
public  QuerysetByte(int position, byte val)
    
public  QuerysetByte(String name, byte val)
    
public  QuerysetCacheMode(CacheMode cacheMode)
    
public  QuerysetCacheRegion(String cacheRegion)
    
public  QuerysetCacheable(boolean cacheable)
    
public  QuerysetCalendar(int position, Calendar calendar)
    
public  QuerysetCalendar(String name, Calendar calendar)
    
public  QuerysetCalendarDate(int position, Calendar calendar)
    
public  QuerysetCalendarDate(String name, Calendar calendar)
    
public  QuerysetCharacter(int position, char val)
    
public  QuerysetCharacter(String name, char val)
    
public  QuerysetCollectionKey(Serializable collectionKey)
    
public  QuerysetComment(String comment)
    
public  QuerysetDate(int position, Date date)
    
public  QuerysetDate(String name, Date date)
    
public  QuerysetDouble(int position, double val)
    
public  QuerysetDouble(String name, double val)
    
public  QuerysetEntity(int position, Object val)
    
public  QuerysetEntity(String name, Object val)
    
public  QuerysetFetchSize(int fetchSize)
    
public  QuerysetFirstResult(int firstResult)
    
public  QuerysetFloat(int position, float val)
    
public  QuerysetFloat(String name, float val)
    
public  QuerysetFlushMode(FlushMode flushMode)
    
public  QuerysetInteger(int position, int val)
    
public  QuerysetInteger(String name, int val)
    
public  QuerysetLocale(int position, Locale locale)
    
public  QuerysetLocale(String name, Locale locale)
    
public  QuerysetLong(int position, long val)
    
public  QuerysetLong(String name, long val)
    
public  QuerysetMaxResults(int maxResults)
    
public  voidsetOptionalEntityName(String optionalEntityName)
    
public  voidsetOptionalId(Serializable optionalId)
    
public  voidsetOptionalObject(Object optionalObject)
    
public  QuerysetParameter(int position, Object val, Type type)
    
public  QuerysetParameter(String name, Object val, Type type)
    
public  QuerysetParameter(int position, Object val)
    
public  QuerysetParameter(String name, Object val)
    
public  QuerysetParameterList(String name, Collection vals, Type type)
    
public  QuerysetParameterList(String name, Collection vals)
    
public  QuerysetParameterList(String name, Object[] vals, Type type)
    
public  QuerysetParameterList(String name, Object[] vals)
    
public  QuerysetParameters(Object[] values, Type[] types)
    
public  QuerysetProperties(Map map)
    
public  QuerysetProperties(Object bean)
    
public  QuerysetReadOnly(boolean readOnly)
    
public  QuerysetResultTransformer(ResultTransformer transformer)
    
public  QuerysetSerializable(int position, Serializable val)
    
public  QuerysetSerializable(String name, Serializable val)
    
public  QuerysetShort(int position, short val)
    
public  QuerysetShort(String name, short val)
    
public  QuerysetString(int position, String val)
    
public  QuerysetString(String name, String val)
    
public  QuerysetText(int position, String val)
    
public  QuerysetText(String name, String val)
    
public  QuerysetTime(int position, Date date)
    
public  QuerysetTime(String name, Date date)
    
public  QuerysetTimeout(int timeout)
    
public  QuerysetTimestamp(int position, Date date)
    
public  QuerysetTimestamp(String name, Date date)
    
public  StringtoString()
    
public  Type[]typeArray()
    
static  ObjectuniqueElement(List list)
    
public  ObjectuniqueResult()
    
public  Object[]valueArray()
    
protected  voidverifyParameters()
     Perform parameter validation.
protected  voidverifyParameters(boolean reserveFirstParameter)
     Perform parameter validation.

Field Detail
parameterMetadata
final protected ParameterMetadata parameterMetadata(Code)



session
final protected SessionImplementor session(Code)




Constructor Detail
AbstractQueryImpl
public AbstractQueryImpl(String queryString, FlushMode flushMode, SessionImplementor session, ParameterMetadata parameterMetadata)(Code)




Method Detail
after
protected void after()(Code)



before
protected void before()(Code)



determineType
protected Type determineType(int paramPosition, Object paramValue, Type defaultType)(Code)



determineType
protected Type determineType(int paramPosition, Object paramValue) throws HibernateException(Code)



determineType
protected Type determineType(String paramName, Object paramValue, Type defaultType)(Code)



determineType
protected Type determineType(String paramName, Object paramValue) throws HibernateException(Code)



determineType
protected Type determineType(String paramName, Class clazz) throws HibernateException(Code)



expandParameterLists
protected String expandParameterLists(Map namedParamsCopy)(Code)
Warning: adds new parameters to the argument by side-effect, as well as mutating the query string!



getLockModes
abstract protected Map getLockModes()(Code)



getNamedParameterLists
protected Map getNamedParameterLists()(Code)
Retreive the value map for any named parameter lists (i.e., for auto-expansion) bound to this query. The parameter list value map.



getNamedParameters
public String[] getNamedParameters() throws HibernateException(Code)
Returns an array representing all named parameter names encountered during (intial) parsing of the query.

Note initial here means different things depending on whether this is a native-sql query or an HQL/filter query. For native-sql, a precursory inspection of the query string is performed specifically to locate defined parameters. For HQL/filter queries, this is the information returned from the query-translator. This distinction holds true for all parameter metadata exposed here. Array of named parameter names.
throws:
  HibernateException -




getNamedParams
protected Map getNamedParams()(Code)
Returns a shallow copy of the named parameter value map. Shallow copy of the named parameter value map



getQueryParameters
public QueryParameters getQueryParameters(Map namedParams)(Code)



getQueryString
final public String getQueryString()(Code)



getReturnAliases
public String[] getReturnAliases() throws HibernateException(Code)



getReturnTypes
public Type[] getReturnTypes() throws HibernateException(Code)



getRowSelection
protected RowSelection getRowSelection()(Code)



getSelection
public RowSelection getSelection()(Code)



getSession
SessionImplementor getSession()(Code)



getTypes
protected List getTypes()(Code)
Retreives the list of parameter Type type s bound to this query for ordinal parameters. The ordinal parameter types.



getValues
protected List getValues()(Code)
Retreives the list of parameter values bound to this query for ordinal parameters. The ordinal parameter values.



hasNamedParameters
public boolean hasNamedParameters()(Code)
Does this query contain named parameters? True if the query was found to contain named parameters; falseotherwise;



isReadOnly
public boolean isReadOnly()(Code)



setBigDecimal
public Query setBigDecimal(int position, BigDecimal number)(Code)



setBigDecimal
public Query setBigDecimal(String name, BigDecimal number)(Code)



setBigInteger
public Query setBigInteger(int position, BigInteger number)(Code)



setBigInteger
public Query setBigInteger(String name, BigInteger number)(Code)



setBinary
public Query setBinary(int position, byte[] val)(Code)



setBinary
public Query setBinary(String name, byte[] val)(Code)



setBoolean
public Query setBoolean(int position, boolean val)(Code)



setBoolean
public Query setBoolean(String name, boolean val)(Code)



setByte
public Query setByte(int position, byte val)(Code)



setByte
public Query setByte(String name, byte val)(Code)



setCacheMode
public Query setCacheMode(CacheMode cacheMode)(Code)



setCacheRegion
public Query setCacheRegion(String cacheRegion)(Code)



setCacheable
public Query setCacheable(boolean cacheable)(Code)



setCalendar
public Query setCalendar(int position, Calendar calendar)(Code)



setCalendar
public Query setCalendar(String name, Calendar calendar)(Code)



setCalendarDate
public Query setCalendarDate(int position, Calendar calendar)(Code)



setCalendarDate
public Query setCalendarDate(String name, Calendar calendar)(Code)



setCharacter
public Query setCharacter(int position, char val)(Code)



setCharacter
public Query setCharacter(String name, char val)(Code)



setCollectionKey
public Query setCollectionKey(Serializable collectionKey)(Code)



setComment
public Query setComment(String comment)(Code)



setDate
public Query setDate(int position, Date date)(Code)



setDate
public Query setDate(String name, Date date)(Code)



setDouble
public Query setDouble(int position, double val)(Code)



setDouble
public Query setDouble(String name, double val)(Code)



setEntity
public Query setEntity(int position, Object val)(Code)



setEntity
public Query setEntity(String name, Object val)(Code)



setFetchSize
public Query setFetchSize(int fetchSize)(Code)



setFirstResult
public Query setFirstResult(int firstResult)(Code)



setFloat
public Query setFloat(int position, float val)(Code)



setFloat
public Query setFloat(String name, float val)(Code)



setFlushMode
public Query setFlushMode(FlushMode flushMode)(Code)



setInteger
public Query setInteger(int position, int val)(Code)



setInteger
public Query setInteger(String name, int val)(Code)



setLocale
public Query setLocale(int position, Locale locale)(Code)



setLocale
public Query setLocale(String name, Locale locale)(Code)



setLong
public Query setLong(int position, long val)(Code)



setLong
public Query setLong(String name, long val)(Code)



setMaxResults
public Query setMaxResults(int maxResults)(Code)



setOptionalEntityName
public void setOptionalEntityName(String optionalEntityName)(Code)



setOptionalId
public void setOptionalId(Serializable optionalId)(Code)



setOptionalObject
public void setOptionalObject(Object optionalObject)(Code)



setParameter
public Query setParameter(int position, Object val, Type type)(Code)



setParameter
public Query setParameter(String name, Object val, Type type)(Code)



setParameter
public Query setParameter(int position, Object val) throws HibernateException(Code)



setParameter
public Query setParameter(String name, Object val) throws HibernateException(Code)



setParameterList
public Query setParameterList(String name, Collection vals, Type type) throws HibernateException(Code)



setParameterList
public Query setParameterList(String name, Collection vals) throws HibernateException(Code)



setParameterList
public Query setParameterList(String name, Object[] vals, Type type) throws HibernateException(Code)



setParameterList
public Query setParameterList(String name, Object[] vals) throws HibernateException(Code)



setParameters
public Query setParameters(Object[] values, Type[] types)(Code)



setProperties
public Query setProperties(Map map) throws HibernateException(Code)



setProperties
public Query setProperties(Object bean) throws HibernateException(Code)



setReadOnly
public Query setReadOnly(boolean readOnly)(Code)



setResultTransformer
public Query setResultTransformer(ResultTransformer transformer)(Code)



setSerializable
public Query setSerializable(int position, Serializable val)(Code)



setSerializable
public Query setSerializable(String name, Serializable val)(Code)



setShort
public Query setShort(int position, short val)(Code)



setShort
public Query setShort(String name, short val)(Code)



setString
public Query setString(int position, String val)(Code)



setString
public Query setString(String name, String val)(Code)



setText
public Query setText(int position, String val)(Code)



setText
public Query setText(String name, String val)(Code)



setTime
public Query setTime(int position, Date date)(Code)



setTime
public Query setTime(String name, Date date)(Code)



setTimeout
public Query setTimeout(int timeout)(Code)



setTimestamp
public Query setTimestamp(int position, Date date)(Code)



setTimestamp
public Query setTimestamp(String name, Date date)(Code)



toString
public String toString()(Code)



typeArray
public Type[] typeArray()(Code)



uniqueElement
static Object uniqueElement(List list) throws NonUniqueResultException(Code)



uniqueResult
public Object uniqueResult() throws HibernateException(Code)



valueArray
public Object[] valueArray()(Code)



verifyParameters
protected void verifyParameters() throws QueryException(Code)
Perform parameter validation. Used prior to executing the encapsulated query.
throws:
  QueryException -



verifyParameters
protected void verifyParameters(boolean reserveFirstParameter) throws HibernateException(Code)
Perform parameter validation. Used prior to executing the encapsulated query.
Parameters:
  reserveFirstParameter - if true, the first ? will not be verified sinceits needed for e.g. callable statements returning a out parameter
throws:
  HibernateException -



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.