public CFCrmAttachmentDataEditObj(ICFCrmAttachmentDataObj argOrig) {
   orig = argOrig;
   getBuff();
   CFCrmAttachmentDataBuff origBuff = orig.getBuff();
   buff.set(origBuff);
   requiredOwnerTenant = null;
   requiredContainerAttachment = null;
 }
 public CFCrmAttachmentDataBuff getBuff() {
   if (buff == null) {
     buff =
         ((ICFCrmSchema) getOrigAsAttachmentData().getSchema().getBackingStore())
             .getFactoryAttachmentData()
             .newBuff();
     buff.set(orig.getBuff());
   }
   return (buff);
 }
 public void copyOrigToBuff() {
   CFCrmAttachmentDataBuff origBuff = getOrigAsAttachmentData().getAttachmentDataBuff();
   CFCrmAttachmentDataBuff myBuff = getAttachmentDataBuff();
   myBuff.set(origBuff);
 }
 public void copyBuffToOrig() {
   CFCrmAttachmentDataBuff origBuff = getOrigAsAttachmentData().getAttachmentDataBuff();
   CFCrmAttachmentDataBuff myBuff = getAttachmentDataBuff();
   origBuff.set(myBuff);
 }