Package org.compiere.report
Class MReportTree
java.lang.Object
org.compiere.report.MReportTree
Financial Report Tree Model
- Version:
- $Id: MReportTree.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
- Author:
- Jorg Janke
-
Constructor Summary
ConstructorDescriptionMReportTree
(Properties ctx, int PA_Hierarchy_ID, boolean allNodes, String ElementType) Report TreeMReportTree
(Properties ctx, int PA_Hierarchy_ID, String ElementType) -
Method Summary
Modifier and TypeMethodDescriptionstatic MReportTree
get
(Properties ctx, int PA_Hierarchy_ID, String ElementType) Get Report Tree (cached)protected int
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 int
Get Default AD_Tree_IDGet Account Schema Element TypegetTree()
Get TreeGet Tree TypegetWhereClause
(int ID) Get Where Clausestatic String
getWhereClause
(Properties ctx, int PA_Hierarchy_ID, String ElementType, int ID) Get Where ClausetoString()
String Representation
-
Constructor Details
-
MReportTree
- Parameters:
ctx
-PA_Hierarchy_ID
-ElementType
-
-
MReportTree
Report Tree- Parameters:
ctx
- contextPA_Hierarchy_ID
- optional hierarchyallNodes
- true to always get full treeElementType
- Account Schema Element Type
-
-
Method Details
-
get
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:
- AD_Tree_ID
-
getDefaultAD_Tree_ID
protected int getDefaultAD_Tree_ID()Get Default AD_Tree_ID- Returns:
- default AD_Tree_ID
- See Also:
-
getElementType
Get Account Schema Element Type- Returns:
- element Type
-
getTreeType
Get Tree Type- Returns:
- tree type
-
getTree
Get Tree- Returns:
- tree
-
getWhereClause
Get Where Clause- Parameters:
ID
- start node id- Returns:
- ColumnName = 1 or ( ColumnName = 1 OR ColumnName = 2 OR ColumnName = 3)
-
getChildIDs
Get Child IDs- Parameters:
ID
- start node- Returns:
- array of child IDs
-
toString
String Representation
-