Java Doc for TKExtendedPrepQuery.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.TKPrepQuery
         com.teamkonzept.db.TKExtendedPrepQuery

All known Subclasses:   com.teamkonzept.webman.mainint.db.queries.TKDBPresInsert,  com.teamkonzept.field.db.queries.TKDBContentNew,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBPresContInsert,  com.teamkonzept.webman.mainint.db.queries.DeleteStrucContentValue,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBPropDelete,  com.teamkonzept.webman.mainint.db.queries.postgresql.TKDBContentTreeIsChild,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBPropGroupDelete,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBContentTreeGetOpen,  com.teamkonzept.webman.mainint.db.queries.TKDBPresCompDelete,  de.webman.content.workflow.db.queries.DeleteFilter,  com.teamkonzept.webman.mainint.db.queries.TKDBPresRefInsert,  com.teamkonzept.field.db.queries.oracle.TKDBContentValuePut,  com.teamkonzept.webman.mainint.db.queries.TKDBPresDelete,  com.teamkonzept.webman.mainint.db.queries.TKDBContentNewVersion,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBContentTreeIsDependent,  com.teamkonzept.webman.mainint.db.queries.sybase.TKDBPresDelete,  de.webman.acl.db.queries.RoleDelete,  de.webman.acl.db.queries.ActionDelete,  com.teamkonzept.field.db.queries.TKDBFormTablesDelete,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBContentTreeMoveNode,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBDocContentPut,  de.webman.content.workflow.db.queries.InsertStatus,  com.teamkonzept.webman.mainint.db.queries.TKDBContentTreeInsertNode,  de.webman.acl.db.queries.PropertyInsert,  com.teamkonzept.webman.mainint.db.queries.oracle.TKContentInstanceNew,  de.webman.acl.db.queries.UserInsert,  com.teamkonzept.webman.mainint.db.queries.postgresql.TKDBContentTreeDeleteNode,  com.teamkonzept.webman.mainint.db.queries.TKDBContentTreeMoveNode,  de.webman.content.workflow.db.queries.DeleteContent,  com.teamkonzept.webman.mainint.db.queries.TKDBPresCompInsert,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBDocContentUpdate,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBPresCompInsert,  com.teamkonzept.webman.mainint.db.queries.TKDBPropGroupDelete,  de.webman.acl.db.queries.ActionInsert,  de.webman.content.db.queries.TKDBContentAttributeDelete,  de.webman.acl.db.queries.EventDelete,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBPresInsert,  com.teamkonzept.webman.mainint.db.queries.TKDBContentTreeGetOpen,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBPropGroupNew,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBContentTreeInsertNode,  com.teamkonzept.webman.mainint.db.queries.TKDBContentTreeDeleteNode,  de.webman.acl.db.queries.UserDelete,  com.teamkonzept.webman.mainint.db.queries.TKDBPresContInsert,  com.teamkonzept.webman.mainint.db.queries.postgresql.TKDBContentTreeDeleteDependentDC,  com.teamkonzept.webman.mainint.db.queries.TKContentInstanceNew,  com.teamkonzept.webman.mainint.db.queries.TKDBPropNew,  com.teamkonzept.webman.mainint.db.queries.TKDBPropDelete,  de.webman.acl.db.queries.EventInsert,  de.webman.content.db.queries.XMLContentUpdate,  com.teamkonzept.webman.mainint.db.queries.TKDBContentTreeDependentST,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBContentTreeDeleteDependentDC,  com.teamkonzept.webman.mainint.db.queries.TKDBContentTreeIsChild,  de.webman.content.db.queries.TKDBContentAttributePut,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBTmplNew,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBPropNew,  com.teamkonzept.field.db.queries.TKDBFormDelete,  de.webman.acl.db.queries.ContextInsert,  com.teamkonzept.webman.mainint.db.queries.TKDBPropGroupNew,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBPresRefInsert,  de.webman.acl.db.queries.TaskDelete,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBContentNewVersion,  de.webman.acl.db.queries.PolicyInsert,  com.teamkonzept.webman.mainint.db.queries.TKDBTmplNew,  com.teamkonzept.webman.mainint.db.queries.TKDBDocContentUpdate,  com.teamkonzept.webman.mainint.db.queries.TKDBContentNewVersionByVersionId,  com.teamkonzept.webman.mainint.db.queries.postgresql.TKDBContentTreeGetOpen,  de.webman.content.db.queries.XMLContentInsert,  com.teamkonzept.webman.mainint.db.queries.postgresql.TKDBContentTreeIsDependent,  de.webman.content.workflow.db.queries.InsertFilter,  de.webman.acl.db.queries.ProfileInsert,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBContentTreeIsChild,  com.teamkonzept.webman.mainint.db.queries.TKDBDocContentPut,  de.webman.acl.db.queries.TaskInsert,  de.webman.acl.db.queries.RoleInsert,  com.teamkonzept.publishing.markups.db.queries.TKMarkupGetDefinitions,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBContentTreeDependentST,  com.teamkonzept.webman.mainint.db.queries.oracle.TKDBPresDelete,
TKExtendedPrepQuery
abstract public class TKExtendedPrepQuery extends TKPrepQuery (Code)
This class represents queries that allow parameters to be set. It is primary used to construct queries that will be executed seperately, that is, it is up to the implementor of query classes to provided sort of a workflow for all queries.
All subclasses must implement method execute() where the TKQuery should be used to set and retrieve values of all queries (and subclasses of it).
See Also:   com.teamkonzept.db.TKPrepQuery
See Also:   java.sql.PreparedStatement
author:
   $Author: alex $
version:
   $Revision: 1.8 $


Field Summary
static  Categorycat
    
protected  TKPrepQuery[]queries
     Holds all atomic queries.
protected  Vectorresults
     Contains all result set produced by this query class.


Method Summary
protected  voidaddResult(ResultSet rs)
     Adds a result set in order to reuse it (e.g.
protected  voidaddResults(ResultSet[] rs)
     Adds one or more result set(s) in order to reuse it (e.g.
public  voidclose()
     Closes all queries associated with this extended query.
protected  voiddebugParams()
     Prints all parameters and type information stored in queryParams for each query to a TKLog stream only if TKQuery.DEBUG is set to true.
abstract public  booleanexecute()
     This method is intended to be used for execution of multiple queries that may depend on each other.
public  ResultSetfetchResultSet()
     Returns the current result set.
protected  booleanhasResults()
     Returns true if this (complex) query expects one or more results, false otherwise.
protected  voidinit(Class[] classes)
     Initializes query objects as given in an array of classes.
protected  Enumerationqueries()
     Returns all TKPrepQuery objects.

Field Detail
cat
static Category cat(Code)
Logging Category



queries
protected TKPrepQuery[] queries(Code)
Holds all atomic queries.



results
protected Vector results(Code)
Contains all result set produced by this query class.





Method Detail
addResult
protected void addResult(ResultSet rs)(Code)
Adds a result set in order to reuse it (e.g. fetchResultSet()).
Parameters:
  rs - das ResultSet was dazu soll



addResults
protected void addResults(ResultSet[] rs)(Code)
Adds one or more result set(s) in order to reuse it (e.g. fetchResultSet()).



close
public void close() throws SQLException(Code)
Closes all queries associated with this extended query.
See Also:    com.teamkonzept.db.TKPrepQuery.close()



debugParams
protected void debugParams()(Code)
Prints all parameters and type information stored in queryParams for each query to a TKLog stream only if TKQuery.DEBUG is set to true.



execute
abstract public boolean execute() throws SQLException(Code)
This method is intended to be used for execution of multiple queries that may depend on each other. Since this method has been declared abstract all subclasses must provide an implementation and should control the logic by means of handling all dependencies of subsequent queries.



fetchResultSet
public ResultSet fetchResultSet()(Code)
Returns the current result set. Multiple calls of this method will return subsequent result sets. the current result set or null if no moreresult sets are available.



hasResults
protected boolean hasResults()(Code)
Returns true if this (complex) query expects one or more results, false otherwise. That is, if at least one ResultSet has been added (with methods addResult(ResultSet) or addResults(ResultSet[]), respectively.



init
protected void init(Class[] classes) throws SQLException, ClassCastException(Code)
Initializes query objects as given in an array of classes. Note that the classes objects should be an instance of TKPrepQuery.



queries
protected Enumeration queries()(Code)
Returns all TKPrepQuery objects.



Fields inherited from com.teamkonzept.db.TKPrepQuery
public static boolean REGISTER_QUERY(Code)(Java Doc)
public static boolean REUSE_QUERY(Code)(Java Doc)
protected String[] paramOrder(Code)(Java Doc)

Methods inherited from com.teamkonzept.db.TKPrepQuery
public static void disableCleanup()(Code)(Java Doc)
public static void enableCleanup()(Code)(Java Doc)
public static void enableCleanup(boolean yes)(Code)(Java Doc)
public boolean execute() throws SQLException(Code)(Java Doc)
public Statement getStatement()(Code)(Java Doc)
public void initQuery(TKSQLTypeConverter conv, TKDBConnection tkConn, Object queryID)(Code)(Java Doc)
public void initQuery(Connection conn, boolean isPrepared, String[] paramOrder, Object[][] paramTypes, boolean[] setRelevants, String sqlString)(Code)(Java Doc)
public void specClose() throws SQLException(Code)(Java Doc)

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.