@ProviderType
@Transactional(isolation=PORTAL,
rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface DDMFormInstanceRecordLocalService
extends com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService
DDMFormInstanceRecordLocalServiceUtil
,
com.liferay.dynamic.data.mapping.service.base.DDMFormInstanceRecordLocalServiceBaseImpl
,
com.liferay.dynamic.data.mapping.service.impl.DDMFormInstanceRecordLocalServiceImpl
Modifier and Type | Method and Description |
---|---|
DDMFormInstanceRecord |
addDDMFormInstanceRecord(DDMFormInstanceRecord ddmFormInstanceRecord)
Adds the ddm form instance record to the database.
|
DDMFormInstanceRecord |
addFormInstanceRecord(long userId,
long groupId,
long ddmFormInstanceId,
DDMFormValues ddmFormValues,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
DDMFormInstanceRecord |
createDDMFormInstanceRecord(long formInstanceRecordId)
Creates a new ddm form instance record with the primary key.
|
DDMFormInstanceRecord |
deleteDDMFormInstanceRecord(DDMFormInstanceRecord ddmFormInstanceRecord)
Deletes the ddm form instance record from the database.
|
DDMFormInstanceRecord |
deleteDDMFormInstanceRecord(long formInstanceRecordId)
Deletes the ddm form instance record with the primary key from the database.
|
DDMFormInstanceRecord |
deleteFormInstanceRecord(DDMFormInstanceRecord ddmFormInstanceRecord) |
DDMFormInstanceRecord |
deleteFormInstanceRecord(long ddmFormInstanceRecordId) |
void |
deleteFormInstanceRecords(long ddmFormInstanceId) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
DDMFormInstanceRecord |
fetchDDMFormInstanceRecord(long formInstanceRecordId) |
DDMFormInstanceRecord |
fetchDDMFormInstanceRecordByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the ddm form instance record matching the UUID and group.
|
DDMFormInstanceRecord |
fetchFormInstanceRecord(long ddmFormInstanceRecordId) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
DDMFormInstanceRecord |
getDDMFormInstanceRecord(long formInstanceRecordId)
Returns the ddm form instance record with the primary key.
|
DDMFormInstanceRecord |
getDDMFormInstanceRecordByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the ddm form instance record matching the UUID and group.
|
java.util.List<DDMFormInstanceRecord> |
getDDMFormInstanceRecords(int start,
int end)
Returns a range of all the ddm form instance records.
|
java.util.List<DDMFormInstanceRecord> |
getDDMFormInstanceRecordsByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the ddm form instance records matching the UUID and company.
|
java.util.List<DDMFormInstanceRecord> |
getDDMFormInstanceRecordsByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceRecord> orderByComparator)
Returns a range of ddm form instance records matching the UUID and company.
|
int |
getDDMFormInstanceRecordsCount()
Returns the number of ddm form instance records.
|
DDMFormValues |
getDDMFormValues(long ddmStorageId) |
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
DDMFormInstanceRecord |
getFormInstanceRecord(long ddmFormInstanceRecordId) |
java.util.List<DDMFormInstanceRecord> |
getFormInstanceRecords(long ddmFormInstanceId) |
java.util.List<DDMFormInstanceRecord> |
getFormInstanceRecords(long ddmFormInstanceId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceRecord> orderByComparator) |
java.util.List<DDMFormInstanceRecord> |
getFormInstanceRecords(long ddmFormInstanceId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceRecord> orderByComparator) |
int |
getFormInstanceRecordsCount(long ddmFormInstanceId) |
int |
getFormInstanceRecordsCount(long ddmFormInstanceId,
int status) |
int |
getFormInstanceRecordsCount(long ddmFormInstanceId,
long userId) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
void |
revertFormInstanceRecord(long userId,
long ddmFormInstanceRecordId,
java.lang.String version,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.search.BaseModelSearchResult<DDMFormInstanceRecord> |
searchFormInstanceRecords(com.liferay.portal.kernel.search.SearchContext searchContext) |
DDMFormInstanceRecord |
updateDDMFormInstanceRecord(DDMFormInstanceRecord ddmFormInstanceRecord)
Updates the ddm form instance record in the database or adds it if it does not yet exist.
|
DDMFormInstanceRecord |
updateFormInstanceRecord(long userId,
long ddmFormInstanceRecordId,
boolean majorVersion,
DDMFormValues ddmFormValues,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
DDMFormInstanceRecord |
updateStatus(long userId,
long recordVersionId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
@Indexable(type=REINDEX) DDMFormInstanceRecord addDDMFormInstanceRecord(DDMFormInstanceRecord ddmFormInstanceRecord)
ddmFormInstanceRecord
- the ddm form instance record@Indexable(type=REINDEX) DDMFormInstanceRecord addFormInstanceRecord(long userId, long groupId, long ddmFormInstanceId, DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(enabled=false) DDMFormInstanceRecord createDDMFormInstanceRecord(long formInstanceRecordId)
formInstanceRecordId
- the primary key for the new ddm form instance record@Indexable(type=DELETE) DDMFormInstanceRecord deleteDDMFormInstanceRecord(DDMFormInstanceRecord ddmFormInstanceRecord)
ddmFormInstanceRecord
- the ddm form instance record@Indexable(type=DELETE) DDMFormInstanceRecord deleteDDMFormInstanceRecord(long formInstanceRecordId) throws com.liferay.portal.kernel.exception.PortalException
formInstanceRecordId
- the primary key of the ddm form instance recordcom.liferay.portal.kernel.exception.PortalException
- if a ddm form instance record with the primary key could not be found@Indexable(type=DELETE) @SystemEvent(action=1, type=1) DDMFormInstanceRecord deleteFormInstanceRecord(DDMFormInstanceRecord ddmFormInstanceRecord) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=DELETE) DDMFormInstanceRecord deleteFormInstanceRecord(long ddmFormInstanceRecordId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void deleteFormInstanceRecords(long ddmFormInstanceId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.dynamic.data.mapping.model.impl.DDMFormInstanceRecordModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.dynamic.data.mapping.model.impl.DDMFormInstanceRecordModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query@Transactional(propagation=SUPPORTS, readOnly=true) DDMFormInstanceRecord fetchDDMFormInstanceRecord(long formInstanceRecordId)
@Transactional(propagation=SUPPORTS, readOnly=true) DDMFormInstanceRecord fetchDDMFormInstanceRecordByUuidAndGroupId(java.lang.String uuid, long groupId)
uuid
- the ddm form instance record's UUIDgroupId
- the primary key of the groupnull
if a matching ddm form instance record could not be found@Transactional(propagation=SUPPORTS, readOnly=true) DDMFormInstanceRecord fetchFormInstanceRecord(long ddmFormInstanceRecordId)
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) DDMFormInstanceRecord getDDMFormInstanceRecord(long formInstanceRecordId) throws com.liferay.portal.kernel.exception.PortalException
formInstanceRecordId
- the primary key of the ddm form instance recordcom.liferay.portal.kernel.exception.PortalException
- if a ddm form instance record with the primary key could not be found@Transactional(propagation=SUPPORTS, readOnly=true) DDMFormInstanceRecord getDDMFormInstanceRecordByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
uuid
- the ddm form instance record's UUIDgroupId
- the primary key of the groupcom.liferay.portal.kernel.exception.PortalException
- if a matching ddm form instance record could not be found@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<DDMFormInstanceRecord> getDDMFormInstanceRecords(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.dynamic.data.mapping.model.impl.DDMFormInstanceRecordModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of ddm form instance recordsend
- the upper bound of the range of ddm form instance records (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<DDMFormInstanceRecord> getDDMFormInstanceRecordsByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid
- the UUID of the ddm form instance recordscompanyId
- the primary key of the company@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<DDMFormInstanceRecord> getDDMFormInstanceRecordsByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceRecord> orderByComparator)
uuid
- the UUID of the ddm form instance recordscompanyId
- the primary key of the companystart
- the lower bound of the range of ddm form instance recordsend
- the upper bound of the range of ddm form instance records (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)@Transactional(propagation=SUPPORTS, readOnly=true) int getDDMFormInstanceRecordsCount()
@Transactional(propagation=SUPPORTS, readOnly=true) DDMFormValues getDDMFormValues(long ddmStorageId) throws StorageException
StorageException
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
@Transactional(propagation=SUPPORTS, readOnly=true) DDMFormInstanceRecord getFormInstanceRecord(long ddmFormInstanceRecordId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<DDMFormInstanceRecord> getFormInstanceRecords(long ddmFormInstanceId)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<DDMFormInstanceRecord> getFormInstanceRecords(long ddmFormInstanceId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceRecord> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<DDMFormInstanceRecord> getFormInstanceRecords(long ddmFormInstanceId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceRecord> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) int getFormInstanceRecordsCount(long ddmFormInstanceId)
@Transactional(propagation=SUPPORTS, readOnly=true) int getFormInstanceRecordsCount(long ddmFormInstanceId, int status)
@Transactional(propagation=SUPPORTS, readOnly=true) int getFormInstanceRecordsCount(long ddmFormInstanceId, long userId)
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
java.lang.String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
void revertFormInstanceRecord(long userId, long ddmFormInstanceRecordId, java.lang.String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.search.BaseModelSearchResult<DDMFormInstanceRecord> searchFormInstanceRecords(com.liferay.portal.kernel.search.SearchContext searchContext)
@Indexable(type=REINDEX) DDMFormInstanceRecord updateDDMFormInstanceRecord(DDMFormInstanceRecord ddmFormInstanceRecord)
ddmFormInstanceRecord
- the ddm form instance record@Indexable(type=REINDEX) DDMFormInstanceRecord updateFormInstanceRecord(long userId, long ddmFormInstanceRecordId, boolean majorVersion, DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) DDMFormInstanceRecord updateStatus(long userId, long recordVersionId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException