|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.framework.PO
org.compiere.model.X_M_Product
org.compiere.model.MProduct
public class MProduct
Product Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_M_Product |
|---|
accessLevel, M_PRODUCT_CATEGORY_ID_AD_Reference_ID, Model, PRODUCTTYPE_AD_Reference_ID, PRODUCTTYPE_ExpenseType, PRODUCTTYPE_Item, PRODUCTTYPE_Online, PRODUCTTYPE_Resource, PRODUCTTYPE_Service, SALESREP_ID_AD_Reference_ID, Table_ID, Table_Name, updatedMS |
| Fields inherited from class org.compiere.framework.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MProduct(Ctx ctx,
int M_Product_ID,
String trxName)
Standard Constructor |
|
MProduct(Ctx ctx,
ResultSet rs,
String trxName)
Load constructor |
|
MProduct(MExpenseType et)
Parent Constructor |
|
MProduct(MResource resource,
MResourceType resourceType)
Parent Constructor |
|
MProduct(X_I_Product impP)
Import 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 ArrayList<MProduct> |
findAll(Ctx ctx,
String whereClause,
String trxName)
Get MProduct from Cache |
static MProduct |
get(Ctx ctx,
int M_Product_ID)
Get MProduct from Cache |
int |
getA_Asset_Group_ID()
Create Asset Group for this product |
MAttributeSet |
getAttributeSet()
Get Attribute Set |
MProductDownload[] |
getProductDownloads(boolean requery)
Get Active(!) |
int |
getSupportUnits()
Get SupportUnits |
static MProduct |
getTrial(Ctx ctx,
String entityType)
Get Trial Products for Entity Type |
int |
getUOMPrecision()
Get UOM Standard Precision |
String |
getUOMSymbol()
Get UOM Symbol |
boolean |
hasDownloads()
Does the product have downloads |
boolean |
isCreateAsset()
Create Asset for this product |
boolean |
isInstanceAttribute()
Has the Product Instance Attribute |
boolean |
isItem()
Product is Item |
boolean |
isOneAssetPerUOM()
Create One Asset Per UOM |
static boolean |
isProductStocked(Ctx ctx,
int M_Product_ID)
Is Product Stocked |
boolean |
isService()
Is Service |
boolean |
isStocked()
Product is an Item and Stocked |
boolean |
setExpenseType(MExpenseType parent)
Set Expense Type |
void |
setM_Product_Category_ID(String oldM_Product_Category_ID,
String newM_Product_Category_ID,
int windowNo)
Set Partner Location - Callout |
boolean |
setResource(MResource parent)
Set Resource |
boolean |
setResource(MResourceType parent)
Set Resource Type |
String |
toString()
String Representation |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MProduct(Ctx ctx,
int M_Product_ID,
String trxName)
ctx - contextM_Product_ID - idtrxName - transaction
public MProduct(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transactionpublic MProduct(MExpenseType et)
et - parent
public MProduct(MResource resource,
MResourceType resourceType)
resource - parentresourceType - resource typepublic MProduct(X_I_Product impP)
impP - import| Method Detail |
|---|
public static MProduct get(Ctx ctx,
int M_Product_ID)
ctx - contextM_Product_ID - id
public static ArrayList<MProduct> findAll(Ctx ctx,
String whereClause,
String trxName)
ctx - contextwhereClause - sql where clausetrxName - trx
public static MProduct getTrial(Ctx ctx,
String entityType)
ctx - ctxentityType - entity type
public static boolean isProductStocked(Ctx ctx,
int M_Product_ID)
ctx - contextM_Product_ID - id
public boolean setExpenseType(MExpenseType parent)
parent - expense type
public boolean setResource(MResource parent)
parent - resource
public boolean setResource(MResourceType parent)
parent - resource type
public int getUOMPrecision()
public int getA_Asset_Group_ID()
public boolean isCreateAsset()
public MAttributeSet getAttributeSet()
public boolean isInstanceAttribute()
public boolean isOneAssetPerUOM()
public boolean isItem()
public boolean isStocked()
isStocked in class X_M_Productpublic boolean isService()
public String getUOMSymbol()
public MProductDownload[] getProductDownloads(boolean requery)
requery - requery
public boolean hasDownloads()
public int getSupportUnits()
getSupportUnits in class X_M_Product
@UICallout
public void setM_Product_Category_ID(String oldM_Product_Category_ID,
String newM_Product_Category_ID,
int windowNo)
throws Exception
oldC_BPartner_Location_ID - old valuenewC_BPartner_Location_ID - new valuewindowNo - window
Exceptionpublic String toString()
toString in class X_M_Productprotected 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 PO
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||