|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eevolution.model.wrapper.AbstractPOWrapper
public abstract class AbstractPOWrapper
| Field Summary | |
|---|---|
protected PO |
po
|
| Constructor Summary | |
|---|---|
AbstractPOWrapper(Properties ctx,
int id,
String trxName,
String type)
|
|
| Method Summary | |
|---|---|
int |
compare(Object o1,
Object o2)
Compare based on DocumentNo, Value, Name, Description |
MAttachment |
createAttachment()
Create/return Attachment for PO. |
boolean |
delete(boolean force)
Delete Current Record |
boolean |
delete(boolean force,
String trxName)
Delete Current Record |
void |
dump()
Dump Record |
void |
dump(int index)
Dump column |
boolean |
equals(Object cmp)
Equals based on ID |
int |
get_ColumnIndex(String columnName)
Get Column Index |
String |
get_TableName()
Get TableName. |
String |
get_TrxName()
Get Trx |
Object |
get_Value(int index)
Get Value |
Object |
get_Value(String columnName)
Get Value |
String |
get_ValueAsString(String variableName)
Get Column Value |
Object |
get_ValueDifference(int index)
Return new - old |
Object |
get_ValueDifference(String columnName)
Return new - old |
Object |
get_ValueOfColumn(int AD_Column_ID)
Get Value of Column |
Object |
get_ValueOld(int index)
Get Old Value |
Object |
get_ValueOld(String columnName)
Get Old Value |
String |
get_WhereClause(boolean withValues)
Create Single/Multi Key Where Clause |
PO |
get()
|
int |
getAD_Client_ID()
Get AD_Client |
int |
getAD_Org_ID()
Get AD_Org |
MAttachment |
getAttachment()
Get Attachments. |
MAttachment |
getAttachment(boolean requery)
Get Attachments |
byte[] |
getAttachmentData(String extension)
Get Attachment Data of type |
Timestamp |
getCreated()
Get Created |
int |
getCreatedBy()
Get CreatedBy |
Properties |
getCtx()
Get Context |
int |
getID()
Return Single Key Record ID |
int |
getIDOld()
Return Deleted Single Key Record ID |
byte[] |
getPdfAttachment()
Get PDF Attachment Data |
Timestamp |
getUpdated()
Get Updated |
int |
getUpdatedBy()
Get UpdatedBy |
boolean |
is_Changed()
Is there a Change to be saved? |
boolean |
is_ValueChanged(int index)
Is Value Changed |
boolean |
is_ValueChanged(String columnName)
Is Value Changed |
boolean |
isActive()
Is Active |
boolean |
isAttachment(String extension)
Do we have a Attachment of type |
boolean |
isPdfAttachment()
Do we have a PDF Attachment |
boolean |
load(String trxName)
(re)Load record with m_ID[*] |
boolean |
lock()
Lock it. |
protected abstract PO |
receivePO(Properties ctx,
int id,
String trxName,
String type)
|
boolean |
save()
Update Value or create new record. |
boolean |
save(String trxName)
Update Value or create new record. |
void |
set_CustomColumn(String columnName,
Object value)
Set Custom Column |
void |
set_TrxName(String trxName)
Set Trx |
void |
set_ValueOfColumn(int AD_Column_ID,
Object value)
Set Value of Column |
void |
setIsActive(boolean active)
Set Active |
String |
toString()
String representation |
boolean |
unlock(String trxName)
UnLock it |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected PO po
| Constructor Detail |
|---|
public AbstractPOWrapper(Properties ctx,
int id,
String trxName,
String type)
| Method Detail |
|---|
protected abstract PO receivePO(Properties ctx,
int id,
String trxName,
String type)
public PO get()
public String toString()
toString in class Objectpublic boolean equals(Object cmp)
equals in class Objectcmp - comperator
public int compare(Object o1,
Object o2)
o1 - Object 1o2 - Object 2
public String get_TableName()
public int getID()
public int getIDOld()
public Properties getCtx()
public Object get_Value(int index)
index - index
public Object get_Value(String columnName)
columnName - column name
public String get_ValueAsString(String variableName)
variableName - name
public Object get_ValueOfColumn(int AD_Column_ID)
AD_Column_ID - column
public Object get_ValueOld(int index)
index - index
public Object get_ValueOld(String columnName)
columnName - column name
public boolean is_ValueChanged(int index)
index - index
public boolean is_ValueChanged(String columnName)
columnName - column name
public Object get_ValueDifference(int index)
index - index
public Object get_ValueDifference(String columnName)
columnName - column name
public void set_ValueOfColumn(int AD_Column_ID,
Object value)
AD_Column_ID - columnvalue - value
public void set_CustomColumn(String columnName,
Object value)
columnName - columnvalue - valuepublic int get_ColumnIndex(String columnName)
columnName - column name
public boolean load(String trxName)
public int getAD_Client_ID()
public int getAD_Org_ID()
public void setIsActive(boolean active)
active - activepublic boolean isActive()
public Timestamp getCreated()
public Timestamp getUpdated()
public int getCreatedBy()
public int getUpdatedBy()
public boolean save()
public boolean save(String trxName)
trxName - transaction
public boolean is_Changed()
public String get_WhereClause(boolean withValues)
withValues - if true uses actual values otherwise ?
public boolean delete(boolean force)
force - delete also processed records
public boolean delete(boolean force,
String trxName)
force - delete also processed recordstrxName - transactionpublic boolean lock()
public boolean unlock(String trxName)
public void set_TrxName(String trxName)
trxName - transactionpublic String get_TrxName()
public MAttachment getAttachment()
public MAttachment getAttachment(boolean requery)
requery - requery
public MAttachment createAttachment()
public boolean isAttachment(String extension)
extension - extension e.g. .pdf
public byte[] getAttachmentData(String extension)
extension - extension e.g. .pdf
public boolean isPdfAttachment()
public byte[] getPdfAttachment()
public void dump()
public void dump(int index)
index - index
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||