/*
  * NOTE FOR DEVELOPERS:
  *
  * Never modify or reference this class directly. All methods that expect a member request model instance should use the {@link MemberRequest} interface instead.
  */
 @Override
 public void persist() throws SystemException {
   if (this.isNew()) {
     MemberRequestLocalServiceUtil.addMemberRequest(this);
   } else {
     MemberRequestLocalServiceUtil.updateMemberRequest(this);
   }
 }
  protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery) {
    actionableDynamicQuery.setBaseLocalService(
        com.liferay.so.service.MemberRequestLocalServiceUtil.getService());
    actionableDynamicQuery.setClassLoader(getClassLoader());
    actionableDynamicQuery.setModelClass(MemberRequest.class);

    actionableDynamicQuery.setPrimaryKeyPropertyName("memberRequestId");
  }
  @Override
  public ActionableDynamicQuery getActionableDynamicQuery() {
    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();

    actionableDynamicQuery.setBaseLocalService(
        com.liferay.so.service.MemberRequestLocalServiceUtil.getService());
    actionableDynamicQuery.setClassLoader(getClassLoader());
    actionableDynamicQuery.setModelClass(MemberRequest.class);

    actionableDynamicQuery.setPrimaryKeyPropertyName("memberRequestId");

    return actionableDynamicQuery;
  }