| 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 $ |
Method Summary | |
public boolean | areAllParamsSet(TKPrepQuery query) | protected boolean | beforeExecution(int i) | public boolean | checkRequiredParameters(TKQuery query) Returns true <=> all strings in requiredParams for a certain query
are set as parameters of this query. | public void | close() | boolean | defaultPropagation(int i) | public boolean | execute() | public ResultSet | fetchResultSet() | public TKQuery | getQuery(int i) | Object | getResult(TKQuery query, String resultName) | ResultSet | getResultSet(TKQuery query) Fetches ResultSet of cache or query, sets it on the first row, and stores it for later use. | public TKVector | getUnsetParams(TKPrepQuery query) | public boolean | hasColumn(TKQuery query, String colName) | public boolean | hasColumn(ResultSet rs, String colName) | abstract protected void | initConcreteCompositeQuery() template method. | public void | initQuery(TKSQLTypeConverter conv, TKDBConnection tkdbConn, Object queryID) | public void | initQuery(Connection conn) | boolean | internalParamsPropagation(int i) | public boolean | isParameterSet(String paramName) | public boolean | isParameterSet(TKPrepQuery query, String paramName) | public Enumeration | queriesEnumeration() | protected TKQuery | registerQuery(Class queryClass) | boolean | retrieveValues(TKPrepQuery destQ, TKQuery sourceQ) | protected Object | searchParamInResults(String paramName) | protected void | setDefaultParameterPropagation() | protected boolean | setInternalParameter(TKQuery destQuery, TKQuery sourceQuery, String destParam, String sourceParam) | protected void | setQueryParams() | public void | setRelevantQuery(TKQuery query) | protected void | setRequiredParam(TKQuery query, String[] params) | protected void | setRequiredParam(TKQuery query, String param) | TKVector | sourceQueries() | public void | specClose() |
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
|
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
|
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.
|
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
|
initConcreteCompositeQuery | abstract protected void initConcreteCompositeQuery() throws SQLException(Code) | | template method.
implemented by concrete subclass
should contain:
1) calls to registerQuery
2) callsto setInternalParameter
|
internalParamsPropagation | boolean internalParamsPropagation(int i) throws SQLException(Code) | | fetches parameters from resultsets and sets them into queries
|
isParameterSet | public boolean isParameterSet(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) | | |
sourceQueries | TKVector sourceQueries()(Code) | | finds all the queries that are used to retrieve internal parameters
|
specClose | public void specClose()(Code) | | |
|
|