Java Doc for JdbcCompiledQuery.java in  » Testing » PolePosition-0.20 » com » versant » core » jdbc » query » 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 » Testing » PolePosition 0.20 » com.versant.core.jdbc.query 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.versant.core.jdbc.query.JdbcCompiledQuery

All known Subclasses:   com.versant.core.jdbc.ejbql.JdbcCompiledQueryEJBQL,
JdbcCompiledQuery
public class JdbcCompiledQuery implements CompiledQuery(Code)
This is a QueryImp compiled by a JdbcDataStore and ready to run. It contains the SQL and enough information to convert the ResultSet into State's. There is not much logic to avoid referencing server side classes as a client application may serialize a query containing one of these and re-associate it with a PM later.

Inner Class :public static class RefFieldMapping
Inner Class :public static class MappingInfo

Field Summary
final public static  intPARAM_IN
    
final public static  intPARAM_OUT
    
final public static  intPARAM_OUT_CURSOR
    
public  FgDsfgDs
    
protected  intunique
    

Constructor Summary
public  JdbcCompiledQuery(ClassMetaData cmd, QueryDetails queryParams)
    

Method Summary
public synchronized  voidadd(JdbcQueryResult.ColFHKey key, SqlStruct val)
    
public static  MappingInfocreateMappingInfo(ResultSetMetaData rsmd, ClassMetaData cmd)
    
public  booleanequals(Object obj)
    
public synchronized  SqlStructget(JdbcQueryResult.ColFHKey key)
    
public  intgetClassIndex()
    
public  int[]getClassIndexes()
    
public  ClassMetaDatagetCmd()
    
public  int[]getEvictionClassBits()
    
public  FetchGroupgetFetchGroup()
    
public  intgetFetchGroupIndex()
    
public  StringgetFirstTableOrAlias()
    
public  intgetFirstThisIndex()
    
public  intgetId()
    
public  MappingInfogetMappingInfo(ResultSet rs)
    
public  intgetMaxRows()
    
public  intgetOutParamCount()
    
public  int[]getParamDirection()
    
public  SqlStruct.ParamgetParamList()
    
public  ProjectionQueryDecodergetProjectionDecoder()
    
public  ClassMetaData[]getQueryClasses()
    
public  QueryDetailsgetQueryDetails()
    
public  intgetQueryResultBatchSize()
    
public  int[]getRefIndexArray()
     Array containing the index pos of ref fields of the projection.
public  int[]getResultTypeCodes()
    
public  intgetSelectColumnCount()
    
public  StringgetSql()
     Get the SQL query text.
public  SqlStructgetSqlStruct()
    
public  int[]getSqlTypes()
    
public  CharBufgetSqlbuf()
    
public  inthashCode()
    
public  booleanisCacheble()
    
public  booleanisContainsThis()
     If this is a result/projection that only contains 'this' and no other fields in the projection.
public  booleanisContainsThisOnly()
     If this is a result/projection that only contains 'this' and no other fields in the projection.
public  booleanisCopyResultsForCache()
     If the results of the query should be copied for caching.
public  booleanisCrossJoinAllowed()
    
public  booleanisDefaultResult()
     If this query returns default results.
public  booleanisDirectSql()
    
public  booleanisDistinct()
    
public  booleanisEJBQLHack()
    
public  booleanisIncludeSubclasses()
    
public  booleanisParColFetchEnabled()
    
public  booleanisProjectionQuery()
    
public  booleanisRandomAccess()
    
public  booleanisSqlQuery()
    
public  booleanisStoredProc()
    
public  booleanisUnique()
     If this is a query with a single/unique result.
public  voidprocess()
     This may only be called once the resultnode and the groupBy node has been processed and set.
public  voidsetCacheable(boolean cacheble)
    
public  voidsetCmd(ClassMetaData cmd)
    
public  voidsetEvictionClassBits(int[] evictionClassBits)
    
public  voidsetEvictionClassIndexes(int[] evictionClassIndexes)
    
public  voidsetFilterClsIndexs(ClassMetaData[] filterClsIndexs)
    
public  voidsetFirstTableOrAlias(String firstTableOrAlias)
    
public  voidsetGroupingNode(GroupingNode groupingNode)
    
public  voidsetId(int id)
    
public  voidsetParamsOnPS(ModelMetaData jmd, SqlDriver driver, PreparedStatement ps, Object[] params, String sql)
     Set all the parameters for this query on ps.
public  voidsetProjectionDecoder(ProjectionQueryDecoder decoder)
    
public  voidsetSelectColumnCount(int selectColumnCount)
    
public  StringtoString()
    
public  voidupdateSql(SqlDriver driver, Object[] params, boolean forUpdate, boolean forCount)
     Update all our Param's for the null/not null state of their parameters and for 'select for update' or not.

Field Detail
PARAM_IN
final public static int PARAM_IN(Code)



PARAM_OUT
final public static int PARAM_OUT(Code)



PARAM_OUT_CURSOR
final public static int PARAM_OUT_CURSOR(Code)



fgDs
public FgDs fgDs(Code)



unique
protected int unique(Code)




Constructor Detail
JdbcCompiledQuery
public JdbcCompiledQuery(ClassMetaData cmd, QueryDetails queryParams)(Code)




Method Detail
add
public synchronized void add(JdbcQueryResult.ColFHKey key, SqlStruct val)(Code)



createMappingInfo
public static MappingInfo createMappingInfo(ResultSetMetaData rsmd, ClassMetaData cmd) throws SQLException(Code)



equals
public boolean equals(Object obj)(Code)



get
public synchronized SqlStruct get(JdbcQueryResult.ColFHKey key)(Code)



getClassIndex
public int getClassIndex()(Code)



getClassIndexes
public int[] getClassIndexes()(Code)



getCmd
public ClassMetaData getCmd()(Code)



getEvictionClassBits
public int[] getEvictionClassBits()(Code)



getFetchGroup
public FetchGroup getFetchGroup()(Code)



getFetchGroupIndex
public int getFetchGroupIndex()(Code)



getFirstTableOrAlias
public String getFirstTableOrAlias()(Code)



getFirstThisIndex
public int getFirstThisIndex()(Code)



getId
public int getId()(Code)



getMappingInfo
public MappingInfo getMappingInfo(ResultSet rs) throws SQLException(Code)



getMaxRows
public int getMaxRows()(Code)



getOutParamCount
public int getOutParamCount()(Code)



getParamDirection
public int[] getParamDirection()(Code)



getParamList
public SqlStruct.Param getParamList()(Code)



getProjectionDecoder
public ProjectionQueryDecoder getProjectionDecoder()(Code)



getQueryClasses
public ClassMetaData[] getQueryClasses()(Code)



getQueryDetails
public QueryDetails getQueryDetails()(Code)



getQueryResultBatchSize
public int getQueryResultBatchSize()(Code)



getRefIndexArray
public int[] getRefIndexArray()(Code)
Array containing the index pos of ref fields of the projection. Return null if no ref fields in projection.



getResultTypeCodes
public int[] getResultTypeCodes()(Code)



getSelectColumnCount
public int getSelectColumnCount()(Code)



getSql
public String getSql()(Code)
Get the SQL query text.



getSqlStruct
public SqlStruct getSqlStruct()(Code)



getSqlTypes
public int[] getSqlTypes()(Code)



getSqlbuf
public CharBuf getSqlbuf()(Code)



hashCode
public int hashCode()(Code)



isCacheble
public boolean isCacheble()(Code)



isContainsThis
public boolean isContainsThis()(Code)
If this is a result/projection that only contains 'this' and no other fields in the projection.



isContainsThisOnly
public boolean isContainsThisOnly()(Code)
If this is a result/projection that only contains 'this' and no other fields in the projection.



isCopyResultsForCache
public boolean isCopyResultsForCache()(Code)
If the results of the query should be copied for caching. This should only happen for non-default type projection queries that contains references.

If this is a projection that only specifies 'this' then this should also return false.




isCrossJoinAllowed
public boolean isCrossJoinAllowed()(Code)



isDefaultResult
public boolean isDefaultResult()(Code)
If this query returns default results.



isDirectSql
public boolean isDirectSql()(Code)



isDistinct
public boolean isDistinct()(Code)



isEJBQLHack
public boolean isEJBQLHack()(Code)
Todo get rid of this horrible hack when we refactor all the query stuff



isIncludeSubclasses
public boolean isIncludeSubclasses()(Code)



isParColFetchEnabled
public boolean isParColFetchEnabled()(Code)



isProjectionQuery
public boolean isProjectionQuery()(Code)



isRandomAccess
public boolean isRandomAccess()(Code)



isSqlQuery
public boolean isSqlQuery()(Code)



isStoredProc
public boolean isStoredProc()(Code)



isUnique
public boolean isUnique()(Code)
If this is a query with a single/unique result.



process
public void process()(Code)
This may only be called once the resultnode and the groupBy node has been processed and set.



setCacheable
public void setCacheable(boolean cacheble)(Code)



setCmd
public void setCmd(ClassMetaData cmd)(Code)



setEvictionClassBits
public void setEvictionClassBits(int[] evictionClassBits)(Code)



setEvictionClassIndexes
public void setEvictionClassIndexes(int[] evictionClassIndexes)(Code)



setFilterClsIndexs
public void setFilterClsIndexs(ClassMetaData[] filterClsIndexs)(Code)



setFirstTableOrAlias
public void setFirstTableOrAlias(String firstTableOrAlias)(Code)



setGroupingNode
public void setGroupingNode(GroupingNode groupingNode)(Code)



setId
public void setId(int id)(Code)



setParamsOnPS
public void setParamsOnPS(ModelMetaData jmd, SqlDriver driver, PreparedStatement ps, Object[] params, String sql) throws SQLException(Code)
Set all the parameters for this query on ps. This is a NOP if params is null.



setProjectionDecoder
public void setProjectionDecoder(ProjectionQueryDecoder decoder)(Code)



setSelectColumnCount
public void setSelectColumnCount(int selectColumnCount)(Code)



toString
public String toString()(Code)



updateSql
public void updateSql(SqlDriver driver, Object[] params, boolean forUpdate, boolean forCount)(Code)
Update all our Param's for the null/not null state of their parameters and for 'select for update' or not. This may change the SQL query string.



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.