Package org.compiere.report
Class MReportTree
- java.lang.Object
- 
- org.compiere.report.MReportTree
 
- 
 public class MReportTree extends Object Report Tree Model- Version:
- $Id: MReportTree.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
- Author:
- Jorg Janke
 
- 
- 
Constructor SummaryConstructors Constructor Description MReportTree(Properties ctx, int PA_Hierarchy_ID, boolean allNodes, String ElementType)Report TreeMReportTree(Properties ctx, int PA_Hierarchy_ID, String ElementType)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MReportTreeget(Properties ctx, int PA_Hierarchy_ID, String ElementType)Get Report Tree (cached)protected intgetAD_Tree_ID()Get AD_Tree_IDInteger[]getChildIDs(int ID)Get Child IDsstatic Integer[]getChildIDs(Properties ctx, int PA_Hierarchy_ID, String ElementType, int ID)Get Child IDsprotected intgetDefaultAD_Tree_ID()Get Default AD_Tree_ID see MTree.getDefaultAD_Tree_IDStringgetElementType()Get Account Schema Element TypeMTreegetTree()Get TreeStringgetTreeType()Get Tree TypeStringgetWhereClause(int ID)Get Where Clausestatic StringgetWhereClause(Properties ctx, int PA_Hierarchy_ID, String ElementType, int ID)Get Where ClauseStringtoString()String Representation
 
- 
- 
- 
Constructor Detail- 
MReportTreepublic MReportTree(Properties ctx, int PA_Hierarchy_ID, String ElementType) 
 - 
MReportTreepublic MReportTree(Properties ctx, int PA_Hierarchy_ID, boolean allNodes, String ElementType) Report Tree- Parameters:
- ctx- context
- PA_Hierarchy_ID- optional hierarchy
- allNodes- true to always get full tree
- ElementType- Account Schema Element Type
 
 
- 
 - 
Method Detail- 
getpublic static MReportTree get(Properties ctx, int PA_Hierarchy_ID, String ElementType) Get Report Tree (cached)- Parameters:
- ctx- context
- PA_Hierarchy_ID- optional hierarchy
- ElementType- Account Schema Element Type
- Returns:
- tree
 
 - 
getWhereClausepublic static String getWhereClause(Properties ctx, int PA_Hierarchy_ID, String ElementType, int ID) Get Where Clause- Parameters:
- ctx- context
- PA_Hierarchy_ID- optional hierarchy
- ElementType- Account Schema Element Type
- ID- leaf element id
- Returns:
- where clause
 
 - 
getChildIDspublic static Integer[] getChildIDs(Properties ctx, int PA_Hierarchy_ID, String ElementType, int ID) Get Child IDs- Parameters:
- ctx- context
- PA_Hierarchy_ID- optional hierarchie
- ElementType- Account Schema Element Type
- ID- id
- Returns:
- array of IDs
 
 - 
getAD_Tree_IDprotected int getAD_Tree_ID() Get AD_Tree_ID- Returns:
- tree
 
 - 
getDefaultAD_Tree_IDprotected int getDefaultAD_Tree_ID() Get Default AD_Tree_ID see MTree.getDefaultAD_Tree_ID- Returns:
- tree
 
 - 
getElementTypepublic String getElementType() Get Account Schema Element Type- Returns:
- element Type
 
 - 
getTreeTypepublic String getTreeType() Get Tree Type- Returns:
- tree type
 
 - 
getTreepublic MTree getTree() Get Tree- Returns:
- tree
 
 - 
getWhereClausepublic String getWhereClause(int ID) Get Where Clause- Parameters:
- ID- start node
- Returns:
- ColumnName = 1 or ( ColumnName = 1 OR ColumnName = 2 OR ColumnName = 3)
 
 - 
getChildIDspublic Integer[] getChildIDs(int ID) Get Child IDs- Parameters:
- ID- start node
- Returns:
- array if IDs
 
 
- 
 
-