@Override public void persist() { if (this.isNew()) { DDMFormInstanceRecordLocalServiceUtil.addDDMFormInstanceRecord(this); } else { DDMFormInstanceRecordLocalServiceUtil.updateDDMFormInstanceRecord(this); } } }
@Override public DDMFormValues getDDMFormValues() throws PortalException { return DDMFormInstanceRecordLocalServiceUtil.getDDMFormValues( getStorageId()); }
@Override public DDMFormInstanceRecord getFormInstanceRecord() throws PortalException { return DDMFormInstanceRecordLocalServiceUtil.getFormInstanceRecord( getFormInstanceRecordId()); }
public static com.liferay.dynamic.data.mapping.model.DDMFormInstanceRecord deleteFormInstanceRecord( long ddmFormInstanceRecordId) throws com.liferay.portal.kernel.exception.PortalException { return getService().deleteFormInstanceRecord(ddmFormInstanceRecordId); }
@Override public List<DDMFormInstanceRecord> getFormInstanceRecords() { return DDMFormInstanceRecordLocalServiceUtil.getFormInstanceRecords( getFormInstanceId()); }
/** * Returns the number of ddm form instance records. * * @return the number of ddm form instance records */ public static int getDDMFormInstanceRecordsCount() { return getService().getDDMFormInstanceRecordsCount(); }
public static com.liferay.dynamic.data.mapping.model.DDMFormInstanceRecord getFormInstanceRecord( long ddmFormInstanceRecordId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getFormInstanceRecord(ddmFormInstanceRecordId); }
@Override public DDMFormValues getDDMFormValues() throws StorageException { return DDMFormInstanceRecordLocalServiceUtil.getDDMFormValues( getStorageId()); }
public static java.util.List<com.liferay.dynamic.data.mapping.model.DDMFormInstanceRecord> getFormInstanceRecords( long ddmFormInstanceId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.dynamic.data.mapping.model.DDMFormInstanceRecord> orderByComparator) { return getService() .getFormInstanceRecords(ddmFormInstanceId, userId, start, end, orderByComparator); }
/** * Updates the ddm form instance record in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. * * @param ddmFormInstanceRecord the ddm form instance record * @return the ddm form instance record that was updated */ public static com.liferay.dynamic.data.mapping.model.DDMFormInstanceRecord updateDDMFormInstanceRecord( com.liferay.dynamic.data.mapping.model.DDMFormInstanceRecord ddmFormInstanceRecord) { return getService().updateDDMFormInstanceRecord(ddmFormInstanceRecord); }
public static com.liferay.dynamic.data.mapping.model.DDMFormInstanceRecord updateFormInstanceRecord( long userId, long ddmFormInstanceRecordId, boolean majorVersion, com.liferay.dynamic.data.mapping.storage.DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return getService() .updateFormInstanceRecord(userId, ddmFormInstanceRecordId, majorVersion, ddmFormValues, serviceContext); }
public static com.liferay.dynamic.data.mapping.model.DDMFormInstanceRecord updateStatus( long userId, long recordVersionId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return getService() .updateStatus(userId, recordVersionId, status, serviceContext); }
/** * Adds the ddm form instance record to the database. Also notifies the appropriate model listeners. * * @param ddmFormInstanceRecord the ddm form instance record * @return the ddm form instance record that was added */ public static com.liferay.dynamic.data.mapping.model.DDMFormInstanceRecord addDDMFormInstanceRecord( com.liferay.dynamic.data.mapping.model.DDMFormInstanceRecord ddmFormInstanceRecord) { return getService().addDDMFormInstanceRecord(ddmFormInstanceRecord); }
/** * Creates a new ddm form instance record with the primary key. Does not add the ddm form instance record to the database. * * @param formInstanceRecordId the primary key for the new ddm form instance record * @return the new ddm form instance record */ public static com.liferay.dynamic.data.mapping.model.DDMFormInstanceRecord createDDMFormInstanceRecord( long formInstanceRecordId) { return getService().createDDMFormInstanceRecord(formInstanceRecordId); }
/** * @throws PortalException */ public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel( com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException { return getService().deletePersistedModel(persistedModel); }
/** * Performs a dynamic query on the database and returns the matching rows. * * @param dynamicQuery the dynamic query * @return the matching rows */ public static <T> java.util.List<T> dynamicQuery( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { return getService().dynamicQuery(dynamicQuery); }
/** * Returns the number of rows matching the dynamic query. * * @param dynamicQuery the dynamic query * @return the number of rows matching the dynamic query */ public static long dynamicQueryCount( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { return getService().dynamicQueryCount(dynamicQuery); }
/** * Returns the number of rows matching the dynamic query. * * @param dynamicQuery the dynamic query * @param projection the projection to apply to the query * @return the number of rows matching the dynamic query */ public static long dynamicQueryCount( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) { return getService().dynamicQueryCount(dynamicQuery, projection); }
/** * Deletes the ddm form instance record from the database. Also notifies the appropriate model listeners. * * @param ddmFormInstanceRecord the ddm form instance record * @return the ddm form instance record that was removed */ public static com.liferay.dynamic.data.mapping.model.DDMFormInstanceRecord deleteDDMFormInstanceRecord( com.liferay.dynamic.data.mapping.model.DDMFormInstanceRecord ddmFormInstanceRecord) { return getService().deleteDDMFormInstanceRecord(ddmFormInstanceRecord); }
public static int getFormInstanceRecordsCount(long ddmFormInstanceId, long userId) { return getService() .getFormInstanceRecordsCount(ddmFormInstanceId, userId); }