| |
|
| java.lang.Object com.metaboss.sdlctools.models.metabossmodel.ModelElementAttachmentUtils
ModelElementAttachmentUtils | public class ModelElementAttachmentUtils (Code) | | Set of ModelElementAttachment utility and helper methods realising some facilities seemingly not provided by MDR.
|
getAttachmentData | public static byte[] getAttachmentData(ModelElementAttachment pAttachment) throws ModelRepositoryException(Code) | | Gets the data from the specified attachment. This method is aware of
changes to the data during transaction and since the last save. In other words if there is
unsaved or even uncomitted data for this attachment it will be returned instead of
last saved data.
Parameters: pAttachment - - the attachment element to save data for |
setAttachmentData | public static void setAttachmentData(ModelElementAttachment pAttachment, byte[] pAtachmentData) throws ModelRepositoryException(Code) | | Sets the data to the specified attachment. This method will use active transaction
if there is one or will execute within its own transaction if repository is not in transaction
at the time when this method is called.
Parameters: pAttachment - - the attachment element to save data for Parameters: pAtachmentData - - the data to save. Setting this parameter to null or zero-length array will simplytruncate the attachment data, but it will not delete attachment from the model. To completelyremove attachment - the ModelElementAttachment object itself must be deleted from the model. |
|
|
|