public void setRequiredContainerAttachment(ICFCrmAttachmentObj value) { if (buff == null) { getAttachmentDataBuff(); } requiredOwnerTenant = null; requiredContainerAttachment = null; if (value != null) { getPKey().setRequiredTenantId(value.getRequiredTenantId()); getAttachmentDataBuff().setRequiredTenantId(value.getRequiredTenantId()); getPKey().setRequiredAttachmentId(value.getRequiredAttachmentId()); getAttachmentDataBuff().setRequiredAttachmentId(value.getRequiredAttachmentId()); } requiredContainerAttachment = value; }
public ICFCrmAttachmentObj getRequiredContainerAttachment(boolean forceRead) { if (forceRead || (requiredContainerAttachment == null)) { boolean anyMissing = false; if (!anyMissing) { ICFCrmAttachmentObj obj = ((ICFCrmSchemaObj) getOrigAsAttachmentData().getSchema()) .getAttachmentTableObj() .readAttachmentByIdIdx( getPKey().getRequiredTenantId(), getPKey().getRequiredAttachmentId()); requiredContainerAttachment = obj; if (obj != null) { getAttachmentDataBuff().setRequiredTenantId(obj.getRequiredTenantId()); getAttachmentDataBuff().setRequiredAttachmentId(obj.getRequiredAttachmentId()); requiredContainerAttachment = obj; } } } return (requiredContainerAttachment); }