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 Summary
Constructors Constructor Description MReportTree(Properties ctx, int PA_Hierarchy_ID, boolean allNodes, String ElementType)Report TreeMReportTree(Properties ctx, int PA_Hierarchy_ID, String ElementType)
-
Method Summary
All 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
-
MReportTree
public MReportTree(Properties ctx, int PA_Hierarchy_ID, String ElementType)
-
MReportTree
public MReportTree(Properties ctx, int PA_Hierarchy_ID, boolean allNodes, String ElementType)
Report Tree- Parameters:
ctx- contextPA_Hierarchy_ID- optional hierarchyallNodes- true to always get full treeElementType- Account Schema Element Type
-
-
Method Detail
-
get
public static MReportTree get(Properties ctx, int PA_Hierarchy_ID, String ElementType)
Get Report Tree (cached)- Parameters:
ctx- contextPA_Hierarchy_ID- optional hierarchyElementType- Account Schema Element Type- Returns:
- tree
-
getWhereClause
public static String getWhereClause(Properties ctx, int PA_Hierarchy_ID, String ElementType, int ID)
Get Where Clause- Parameters:
ctx- contextPA_Hierarchy_ID- optional hierarchyElementType- Account Schema Element TypeID- leaf element id- Returns:
- where clause
-
getChildIDs
public static Integer[] getChildIDs(Properties ctx, int PA_Hierarchy_ID, String ElementType, int ID)
Get Child IDs- Parameters:
ctx- contextPA_Hierarchy_ID- optional hierarchieElementType- Account Schema Element TypeID- id- Returns:
- array of IDs
-
getAD_Tree_ID
protected int getAD_Tree_ID()
Get AD_Tree_ID- Returns:
- tree
-
getDefaultAD_Tree_ID
protected int getDefaultAD_Tree_ID()
Get Default AD_Tree_ID see MTree.getDefaultAD_Tree_ID- Returns:
- tree
-
getElementType
public String getElementType()
Get Account Schema Element Type- Returns:
- element Type
-
getTreeType
public String getTreeType()
Get Tree Type- Returns:
- tree type
-
getTree
public MTree getTree()
Get Tree- Returns:
- tree
-
getWhereClause
public String getWhereClause(int ID)
Get Where Clause- Parameters:
ID- start node- Returns:
- ColumnName = 1 or ( ColumnName = 1 OR ColumnName = 2 OR ColumnName = 3)
-
getChildIDs
public Integer[] getChildIDs(int ID)
Get Child IDs- Parameters:
ID- start node- Returns:
- array if IDs
-
-