|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.model.PO
org.compiere.model.X_M_Product_Category
org.compiere.model.MProductCategory
public class MProductCategory
Product Category Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_M_Product_Category |
|---|
M_PRODUCT_CATEGORY_PARENT_ID_AD_Reference_ID, MMPOLICY_AD_Reference_ID, MMPOLICY_FiFo, MMPOLICY_LiFo |
| Fields inherited from class org.compiere.model.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Fields inherited from interface org.compiere.model.I_M_Product_Category |
|---|
accessLevel, COLUMNNAME_A_Asset_Group_ID, COLUMNNAME_AD_PrintColor_ID, COLUMNNAME_Description, COLUMNNAME_IsDefault, COLUMNNAME_IsSelfService, COLUMNNAME_M_Product_Category_ID, COLUMNNAME_M_Product_Category_Parent_ID, COLUMNNAME_MMPolicy, COLUMNNAME_Name, COLUMNNAME_PlannedMargin, COLUMNNAME_Value, Model, Table_ID, Table_Name |
| Constructor Summary | |
|---|---|
MProductCategory(Properties ctx,
int M_Product_Category_ID,
String trxName)
Default Constructor |
|
MProductCategory(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
afterSave(boolean newRecord,
boolean success)
After Save |
protected boolean |
beforeDelete()
Before Delete |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
static MProductCategory |
get(Properties ctx,
int M_Product_Category_ID)
Get from Cache |
boolean |
hasLoopInTree()
Loop detection of product category tree. |
static boolean |
isCategory(int M_Product_Category_ID,
int M_Product_ID)
Is Product in Category |
boolean |
isFiFo()
FiFo Material Movement Policy |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.model.I_Persistent |
|---|
save |
| Constructor Detail |
|---|
public MProductCategory(Properties ctx,
int M_Product_Category_ID,
String trxName)
ctx - contextM_Product_Category_ID - idtrxName - transaction
public MProductCategory(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static MProductCategory get(Properties ctx,
int M_Product_Category_ID)
ctx - contextM_Product_Category_ID - id
public static boolean isCategory(int M_Product_Category_ID,
int M_Product_ID)
M_Product_Category_ID - categoryM_Product_ID - product
protected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
protected boolean afterSave(boolean newRecord,
boolean success)
afterSave in class POnewRecord - newsuccess - success
protected boolean beforeDelete()
beforeDelete in class POpublic boolean isFiFo()
public boolean hasLoopInTree()
productCategoryId - newParentCategoryId - newParentCategoryId - New Parent Category
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||