IDEMPIERE-5446 : Property to know an AttachmentEntry has been updated (#1522)
* IDEMPIERE-5446 : Property to know an AttachmentEntry has been updated https://idempiere.atlassian.net/browse/IDEMPIERE-5446 * IDEMPIERE-5446 : Property to know an AttachmentEntry has been updated - fix javadoc
This commit is contained in:
parent
be4a00cb0a
commit
1646074a59
|
@ -638,6 +638,7 @@ public class MAttachment extends X_AD_Attachment
|
|||
MAttachmentEntry entry = getEntry(i);
|
||||
if (entry == null) return false;
|
||||
entry.setData(data);
|
||||
entry.setUpdated(true);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -108,6 +108,9 @@ public class MAttachmentEntry
|
|||
/** Lazy Data Source */
|
||||
private IAttachmentLazyDataSource m_ds = null;
|
||||
|
||||
/** True if the entry has been updated (sets by MAttachment.updateEntry(int, byte[]) */
|
||||
private boolean m_isUpdated = false;
|
||||
|
||||
/**
|
||||
* @return Returns the data.
|
||||
*/
|
||||
|
@ -352,4 +355,18 @@ public class MAttachmentEntry
|
|||
return m_ds;
|
||||
}
|
||||
|
||||
/** Set the updated property
|
||||
* @param updated
|
||||
*/
|
||||
public void setUpdated(boolean updated) {
|
||||
m_isUpdated = updated;
|
||||
}
|
||||
|
||||
/** Get the updated property
|
||||
* @return updated
|
||||
*/
|
||||
public boolean isUpdated() {
|
||||
return m_isUpdated;
|
||||
}
|
||||
|
||||
} // MAttachmentItem
|
||||
|
|
Loading…
Reference in New Issue