/**
  * setAttrInvokeAccessor: generated method. Do not modify.
  *
  * @param index the index identifying the attribute
  * @param value the value to assign to the attribute
  * @param attrDef the attribute
  * @throws Exception the exception
  */
 protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef)
     throws Exception {
   if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
     AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);
     return;
   }
   super.setAttrInvokeAccessor(index, value, attrDef);
 }
 /** This function refereshes foreign key dependencies with newly generated primary key. */
 protected void refreshFKInNewContainees() {
   if (null != newGroupDetail) {
     Number newGroupId = getId();
     while (newGroupDetail.hasNext()) {
       SendToGroupDetailEOImpl detail = (SendToGroupDetailEOImpl) newGroupDetail.next();
       detail.setSendToGroupId(newGroupId);
     }
     super.refreshFKInNewContainees();
   }
 }
 /**
  * Post changes.
  *
  * @param transactionEvent the transaction event
  */
 public void postChanges(TransactionEvent transactionEvent) {
   if (getPostState() == STATUS_NEW || getPostState() == STATUS_MODIFIED) {
     DocumentAndLinkEOImpl resources = getDocumentAndLinkEO();
     if (null != resources) {
       if (resources.getPostState() == STATUS_NEW) {
         resources.postChanges(transactionEvent);
       }
     }
     newGroupDetail = (RowSet) getSendToGroupDetailEO();
   }
   super.postChanges(transactionEvent);
 }
 /**
  * Add attribute defaulting logic in this method.
  *
  * @param attributeList list of attribute names/values to initialize the row
  */
 protected void create(AttributeList attributeList) {
   super.create(attributeList);
   SequenceImpl sequenceImpl = new SequenceImpl("CAP_SND_TO_GRP_S01", getDBTransaction());
   setId(sequenceImpl.getSequenceNumber());
 }