コード例 #1
0
 public void persist() throws SystemException {
   if (this.isNew()) {
     DefinitionLocalServiceUtil.addDefinition(this);
   } else {
     DefinitionLocalServiceUtil.updateDefinition(this);
   }
 }
コード例 #2
0
 /*
  * NOTE FOR DEVELOPERS:
  *
  * Never modify or reference this class directly. All methods that expect a definition model instance should use the {@link Definition} interface instead.
  */
 public void persist() throws SystemException {
   DefinitionLocalServiceUtil.updateDefinition(this);
 }