| 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 $ |
Method Summary | |
protected void | addResult(ResultSet rs) Adds a result set in order to reuse it (e.g. | protected void | addResults(ResultSet[] rs) Adds one or more result set(s) in order to reuse it (e.g. | public void | close() Closes all queries associated with this extended query. | protected void | debugParams() 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 boolean | execute() This method is intended to be used for execution of multiple queries that
may depend on each other. | public ResultSet | fetchResultSet() Returns the current result set. | protected boolean | hasResults() Returns true if this (complex) query expects one
or more results, false otherwise. | protected void | init(Class[] classes) Initializes query objects as given in an array of classes. | protected Enumeration | queries() Returns all TKPrepQuery objects. |
cat | static Category cat(Code) | | Logging Category
|
results | protected Vector results(Code) | | Contains all result set produced by this query class.
|
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.
|
|
|