/**
  * Package a {@link org.litepal.crud.model.AssociationsInfo}, and add it into {@link
  * #mAssociationInfos} Collection.
  *
  * @param selfClassName The class name of self model.
  * @param associatedClassName The class name of the class which associated with self class.
  * @param classHoldsForeignKey The class which holds foreign key.
  * @param associateOtherModelFromSelf The field of self class to declare has association with
  *     other class.
  * @param associateSelfFromOtherModel The field of the associated class to declare has association
  *     with self class.
  * @param associationType The association type.
  */
 private void addIntoAssociationInfoCollection(
     String selfClassName,
     String associatedClassName,
     String classHoldsForeignKey,
     Field associateOtherModelFromSelf,
     Field associateSelfFromOtherModel,
     int associationType) {
   AssociationsInfo associationInfo = new AssociationsInfo();
   associationInfo.setSelfClassName(selfClassName);
   associationInfo.setAssociatedClassName(associatedClassName);
   associationInfo.setClassHoldsForeignKey(classHoldsForeignKey);
   associationInfo.setAssociateOtherModelFromSelf(associateOtherModelFromSelf);
   associationInfo.setAssociateSelfFromOtherModel(associateSelfFromOtherModel);
   associationInfo.setAssociationType(associationType);
   mAssociationInfos.add(associationInfo);
 }