Java Doc for CompositeQuery.java in  » Content-Management-System » webman » com » teamkonzept » db » 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 » Content Management System » webman » com.teamkonzept.db 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.teamkonzept.db.TKQuery
      com.teamkonzept.db.CompositeQuery

All known Subclasses:   com.teamkonzept.webman.mainint.db.queries.TKDBSiteDocClone,  com.teamkonzept.webman.mainint.db.queries.duplication.oracle.InstallDuplicationPackage,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBSiteDocClone,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBSiteDocNew,  com.teamkonzept.webman.mainint.db.queries.TKDBSiteTreeGetOpen,  com.teamkonzept.webman.mainint.db.queries.duplication.postgresql.TKDBDuplicateQuery,  com.teamkonzept.webman.mainint.db.queries.TKDBContentNewContent,  com.teamkonzept.webman.mainint.db.queries.duplication.oracle.TKDBDuplicateQuery,  com.teamkonzept.webman.mainint.db.queries.TKDBSiteTreeDeleteNode,  com.teamkonzept.webman.mainint.db.queries.TKDBSiteDocNew,  com.teamkonzept.webman.mainint.db.queries.TKDBSiteTreeUpdateNode,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBSiteTreeDeleteNode,  com.teamkonzept.webman.db.queries.oracle.InstallPackageUtilityProcedures,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBContentNewContent,  com.teamkonzept.publishing.markups.db.queries.TKMarkupPropPut,  de.webman.acl.db.queries.oracle.EventSelectByPolicyAttributes,  com.teamkonzept.publishing.markups.db.queries.TKMarkupDefinitionNew,  com.teamkonzept.publishing.markups.db.queries.TKMarkupParamDefinitionNew,  de.webman.acl.db.queries.oracle.PolicySelectByAtomicEvent,  com.teamkonzept.webman.mainint.db.queries.TKDBSiteDocUpdatePres,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBSiteDocDelete,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBSiteTreeGetOpen,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBSiteTreeInsertNode,  com.teamkonzept.field.db.queries.TKDBFormNew,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBSiteDocUpdatePres,  com.teamkonzept.webman.mainint.db.queries.postgresql.TKDBSiteDocClone,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBSiteTreeUpdateNode,  com.teamkonzept.webman.mainint.db.queries.TKDBSiteTreeInsertNode,  com.teamkonzept.webman.mainint.db.queries.TKDBSiteDocDelete,
CompositeQuery
abstract public class CompositeQuery extends TKQuery (Code)

author:
   $Author: alex $
version:
   $Revision: 1.13 $


Field Summary
 booleandefaultParameterPropagation
    
 TKHashtableparameterMapping
    
 TKVectorqueries
    
 TKHashtablequeryResults
    
 TKQueryrelevantQuery
    
 TKHashtablerequiredParams
    


Method Summary
public  booleanareAllParamsSet(TKPrepQuery query)
    
protected  booleanbeforeExecution(int i)
    
public  booleancheckRequiredParameters(TKQuery query)
     Returns true <=> all strings in requiredParams for a certain query are set as parameters of this query.
public  voidclose()
    
 booleandefaultPropagation(int i)
    
public  booleanexecute()
    
public  ResultSetfetchResultSet()
    
public  TKQuerygetQuery(int i)
    
 ObjectgetResult(TKQuery query, String resultName)
    
 ResultSetgetResultSet(TKQuery query)
     Fetches ResultSet of cache or query, sets it on the first row, and stores it for later use.
public  TKVectorgetUnsetParams(TKPrepQuery query)
    
public  booleanhasColumn(TKQuery query, String colName)
    
public  booleanhasColumn(ResultSet rs, String colName)
    
abstract protected  voidinitConcreteCompositeQuery()
     template method.
public  voidinitQuery(TKSQLTypeConverter conv, TKDBConnection tkdbConn, Object queryID)
    
public  voidinitQuery(Connection conn)
    
 booleaninternalParamsPropagation(int i)
    
public  booleanisParameterSet(String paramName)
    
public  booleanisParameterSet(TKPrepQuery query, String paramName)
    
public  EnumerationqueriesEnumeration()
    
protected  TKQueryregisterQuery(Class queryClass)
    
 booleanretrieveValues(TKPrepQuery destQ, TKQuery sourceQ)
    
protected  ObjectsearchParamInResults(String paramName)
    
protected  voidsetDefaultParameterPropagation()
    
protected  booleansetInternalParameter(TKQuery destQuery, TKQuery sourceQuery, String destParam, String sourceParam)
    
protected  voidsetQueryParams()
    
public  voidsetRelevantQuery(TKQuery query)
    
protected  voidsetRequiredParam(TKQuery query, String[] params)
    
protected  voidsetRequiredParam(TKQuery query, String param)
    
 TKVectorsourceQueries()
    
public  voidspecClose()
    

Field Detail
defaultParameterPropagation
boolean defaultParameterPropagation(Code)
behaviour during execute():



parameterMapping
TKHashtable parameterMapping(Code)
nested hash, 3 levels: 1) destQuery 2) sourceQuery 3) destParam 4) sourceParam



queries
TKVector queries(Code)
query objects in the order they are to be executed



queryResults
TKHashtable queryResults(Code)
hash to store resultsets



relevantQuery
TKQuery relevantQuery(Code)
if relevantQuery is not null, it is used by fetchResultSet()



requiredParams
TKHashtable requiredParams(Code)
hash to store conditons for execution key: query value: TKVector of parameters





Method Detail
areAllParamsSet
public boolean areAllParamsSet(TKPrepQuery query)(Code)



beforeExecution
protected boolean beforeExecution(int i)(Code)
template method



checkRequiredParameters
public boolean checkRequiredParameters(TKQuery query)(Code)
Returns true <=> all strings in requiredParams for a certain query are set as parameters of this query.



close
public void close() throws SQLException(Code)



defaultPropagation
boolean defaultPropagation(int i) throws SQLException(Code)



execute
public boolean execute() throws SQLException(Code)
fuehrt die Query aus
throws:
  SQLException - vom Treiber geschmissen ob ein ResultSet vorhanden ist



fetchResultSet
public ResultSet fetchResultSet()(Code)
returnes the resultset of the query executed as last



getQuery
public TKQuery getQuery(int i)(Code)



getResult
Object getResult(TKQuery query, String resultName) throws SQLException(Code)



getResultSet
ResultSet getResultSet(TKQuery query) throws SQLException(Code)
Fetches ResultSet of cache or query, sets it on the first row, and stores it for later use.



getUnsetParams
public TKVector getUnsetParams(TKPrepQuery query)(Code)



hasColumn
public boolean hasColumn(TKQuery query, String colName) throws SQLException(Code)



hasColumn
public boolean hasColumn(ResultSet rs, String colName) throws SQLException(Code)



initConcreteCompositeQuery
abstract protected void initConcreteCompositeQuery() throws SQLException(Code)
template method. implemented by concrete subclass should contain: 1) calls to registerQuery 2) callsto setInternalParameter



initQuery
public void initQuery(TKSQLTypeConverter conv, TKDBConnection tkdbConn, Object queryID)(Code)



initQuery
public void initQuery(Connection conn)(Code)
to ignore:



internalParamsPropagation
boolean internalParamsPropagation(int i) throws SQLException(Code)
fetches parameters from resultsets and sets them into queries



isParameterSet
public boolean isParameterSet(String paramName)(Code)



isParameterSet
public boolean isParameterSet(TKPrepQuery query, String paramName)(Code)



queriesEnumeration
public Enumeration queriesEnumeration()(Code)



registerQuery
protected TKQuery registerQuery(Class queryClass) throws SQLException(Code)
registers and creates query object



retrieveValues
boolean retrieveValues(TKPrepQuery destQ, TKQuery sourceQ) throws SQLException(Code)



searchParamInResults
protected Object searchParamInResults(String paramName)(Code)



setDefaultParameterPropagation
protected void setDefaultParameterPropagation()(Code)



setInternalParameter
protected boolean setInternalParameter(TKQuery destQuery, TKQuery sourceQuery, String destParam, String sourceParam) throws SQLException(Code)
defines that destParam of destQuery will be assigned the value sourceParam of the resultset of sourceQuery



setQueryParams
protected void setQueryParams()(Code)
propagates parameters to all registered queries



setRelevantQuery
public void setRelevantQuery(TKQuery query)(Code)



setRequiredParam
protected void setRequiredParam(TKQuery query, String[] params)(Code)



setRequiredParam
protected void setRequiredParam(TKQuery query, String param)(Code)



sourceQueries
TKVector sourceQueries()(Code)
finds all the queries that are used to retrieve internal parameters



specClose
public void specClose()(Code)



Fields inherited from com.teamkonzept.db.TKQuery
final protected static Category CAT(Code)(Java Doc)
final public static int DBFORM_IDENT(Code)(Java Doc)
final public static int DBFRAGMENT_IDENT(Code)(Java Doc)
final public static int DBSTRUC_IDENT(Code)(Java Doc)
protected TKDBConnection aTKDBConnection(Code)(Java Doc)
protected Connection conn(Code)(Java Doc)
protected boolean currIsResultSet(Code)(Java Doc)
protected int currPos(Code)(Java Doc)
protected int deregisterIndex(Code)(Java Doc)
protected TKHashtable paramTypes(Code)(Java Doc)
protected TKHashtable queryParams(Code)(Java Doc)
protected boolean sensitiveQuery(Code)(Java Doc)
protected boolean[] setRelevants(Code)(Java Doc)
protected String sqlString(Code)(Java Doc)
protected Statement stmt(Code)(Java Doc)

Methods inherited from com.teamkonzept.db.TKQuery
public void close() throws SQLException(Code)(Java Doc)
protected void deregisterQuery()(Code)(Java Doc)
abstract public boolean execute() throws SQLException(Code)(Java Doc)
public void executeAsTran() throws SQLException(Code)(Java Doc)
public ResultSet fetchResultSet()(Code)(Java Doc)
abstract public void initQuery(Connection conn)(Code)(Java Doc)
abstract public void initQuery(TKSQLTypeConverter conv, TKDBConnection tkdbConn, Object queryID)(Code)(Java Doc)
public void initQuery(Connection conn, Object[][] paramTypes, boolean[] setRelevants)(Code)(Java Doc)
public void printSqlException(SQLException sqle, String s)(Code)(Java Doc)
protected int registerQuery()(Code)(Java Doc)
public void setQueryParams(String param, Object val)(Code)(Java Doc)
abstract public void specClose() throws SQLException(Code)(Java Doc)
public void throwawayResults() throws SQLException(Code)(Java Doc)

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.