コード例 #1
0
  /**
   * Adds the asset tag to the database. Also notifies the appropriate model listeners.
   *
   * @param assetTag the asset tag to add
   * @return the asset tag that was added
   * @throws SystemException if a system exception occurred
   */
  public AssetTag addAssetTag(AssetTag assetTag) throws SystemException {
    assetTag.setNew(true);

    return assetTagPersistence.update(assetTag, false);
  }
コード例 #2
0
  /**
   * Updates the asset tag in the database. Also notifies the appropriate model listeners.
   *
   * @param assetTag the asset tag to update
   * @param merge whether to merge the asset tag with the current session. See {@link
   *     com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session,
   *     com.liferay.portal.model.BaseModel, boolean)} for an explanation.
   * @return the asset tag that was updated
   * @throws SystemException if a system exception occurred
   */
  public AssetTag updateAssetTag(AssetTag assetTag, boolean merge) throws SystemException {
    assetTag.setNew(false);

    return assetTagPersistence.update(assetTag, merge);
  }