예제 #1
0
 /*
  * NOTE FOR DEVELOPERS:
  *
  * Never modify or reference this class directly. All methods that expect a s c framework version model instance should use the {@link SCFrameworkVersion} interface instead.
  */
 public void persist() throws SystemException {
   if (this.isNew()) {
     SCFrameworkVersionLocalServiceUtil.addSCFrameworkVersion(this);
   } else {
     SCFrameworkVersionLocalServiceUtil.updateSCFrameworkVersion(this);
   }
 }
  protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery) {
    actionableDynamicQuery.setBaseLocalService(
        com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalServiceUtil
            .getService());
    actionableDynamicQuery.setClass(SCFrameworkVersion.class);
    actionableDynamicQuery.setClassLoader(getClassLoader());

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

    actionableDynamicQuery.setBaseLocalService(
        com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalServiceUtil
            .getService());
    actionableDynamicQuery.setClass(SCFrameworkVersion.class);
    actionableDynamicQuery.setClassLoader(getClassLoader());

    actionableDynamicQuery.setPrimaryKeyPropertyName("frameworkVersionId");

    return actionableDynamicQuery;
  }