|
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_ProductDownload
org.compiere.model.MProductDownload
public class MProductDownload
Product Download Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_M_ProductDownload |
|---|
accessLevel, Model, 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 | |
|---|---|
MProductDownload(Ctx ctx,
int M_ProductDownload_ID,
String trxName)
Standard Constructor |
|
MProductDownload(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
static MProductDownload |
get(Ctx ctx,
int M_ProductDownload_ID)
Get Product Download from Cache |
File |
getDownloadFile(String directory)
Find download url |
String |
getDownloadName()
Get Download Name |
InputStream |
getDownloadStream(String directory)
Get Download Stream |
URL |
getDownloadURL(String directory)
Get Download URL |
static void |
migrateDownloads(Ctx ctx)
Migrate Download URLs (2.5.2c) |
boolean |
saveDownload(MAttachmentEntry entry)
Save Download in Attachment |
String |
toString()
String Representation |
| Methods inherited from class org.compiere.model.X_M_ProductDownload |
|---|
get_AccessLevel, getDownloadURL, getKeyNamePair, getM_Product_ID, getM_ProductDownload_ID, getName, initPO, isLeadDownload, setDownloadURL, setIsLeadDownload, setM_Product_ID, setM_ProductDownload_ID, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MProductDownload(Ctx ctx,
int M_ProductDownload_ID,
String trxName)
ctx - contextM_ProductDownload_ID - idtrxName - trx
public MProductDownload(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - trx| Method Detail |
|---|
public static void migrateDownloads(Ctx ctx)
ctx - context
public static MProductDownload get(Ctx ctx,
int M_ProductDownload_ID)
ctx - contextM_ProductDownload_ID - id
public String toString()
toString in class X_M_ProductDownloadpublic String getDownloadName()
public URL getDownloadURL(String directory)
directory - optional directory
public File getDownloadFile(String directory)
directory - optional directory
public InputStream getDownloadStream(String directory)
directory - optional directory
public boolean saveDownload(MAttachmentEntry entry)
entry - attachment entry
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||