1 5 package com.teamkonzept.webman.mainint.db.queries; 6 7 import java.sql.*; 8 9 import com.teamkonzept.db.*; 10 import com.teamkonzept.lib.*; 11 import com.teamkonzept.webman.mainint.db.queries.sitetree.*; 12 13 22 public class TKDBSiteTreeGetOpen extends CompositeQuery 23 { 24 25 TKQuery getStRootID; 26 TKQuery getStLeftRight; 27 TKQuery getStOpenPath; 28 29 protected void initConcreteCompositeQuery() throws SQLException 30 { 31 getStRootID = registerQuery(GetStRootID.class); 32 getStLeftRight = registerQuery(GetStLeftRight.class); 33 getStOpenPath = registerQuery(GetStOpenPath.class); 34 35 setDefaultParameterPropagation(); 36 37 } 38 39 40 protected boolean beforeExecution(int i) 41 { 42 if (getQuery(i) == getStRootID) 43 { 44 return !isParameterSet((TKPrepQuery) getStLeftRight, NODE_ID); 45 } 46 return true; 47 } 48 49 } 50 | Popular Tags |