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:
Nicolas Micoud 2022-10-10 08:59:07 +02:00 committed by GitHub
parent be4a00cb0a
commit 1646074a59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -638,6 +638,7 @@ public class MAttachment extends X_AD_Attachment
MAttachmentEntry entry = getEntry(i); MAttachmentEntry entry = getEntry(i);
if (entry == null) return false; if (entry == null) return false;
entry.setData(data); entry.setData(data);
entry.setUpdated(true);
return true; return true;
} }

View File

@ -108,6 +108,9 @@ public class MAttachmentEntry
/** Lazy Data Source */ /** Lazy Data Source */
private IAttachmentLazyDataSource m_ds = null; 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. * @return Returns the data.
*/ */
@ -352,4 +355,18 @@ public class MAttachmentEntry
return m_ds; 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 } // MAttachmentItem