Class DDMFormInstanceUtil
com.liferay.dynamic.data.mapping.service.persistence.impl.DDMFormInstancePersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(DDMFormInstance ddmFormInstance) Caches the ddm form instance in the entity cache if it is enabled.static void
cacheResult
(List<DDMFormInstance> ddmFormInstances) Caches the ddm form instances in the entity cache if it is enabled.static void
static void
clearCache
(DDMFormInstance ddmFormInstance) static int
countAll()
Returns the number of ddm form instances.static int
countByGroupId
(long groupId) Returns the number of ddm form instances where groupId = ?.static int
countByGroupId
(long[] groupIds) Returns the number of ddm form instances where groupId = any ?.static int
countByStructureId
(long structureId) Returns the number of ddm form instances where structureId = ?.static int
countByUuid
(String uuid) Returns the number of ddm form instances where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of ddm form instances where uuid = ? and companyId = ?.static int
countByUUID_G
(String uuid, long groupId) Returns the number of ddm form instances where uuid = ? and groupId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static DDMFormInstance
create
(long formInstanceId) Creates a new ddm form instance with the primary key.static DDMFormInstance
fetchByGroupId_First
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the first ddm form instance in the ordered set where groupId = ?.static DDMFormInstance
fetchByGroupId_Last
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the last ddm form instance in the ordered set where groupId = ?.static DDMFormInstance
fetchByPrimaryKey
(long formInstanceId) Returns the ddm form instance with the primary key or returnsnull
if it could not be found.static Map<Serializable,
DDMFormInstance> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static DDMFormInstance
fetchByStructureId
(long structureId) Returns the ddm form instance where structureId = ? or returnsnull
if it could not be found.static DDMFormInstance
fetchByStructureId
(long structureId, boolean useFinderCache) Returns the ddm form instance where structureId = ? or returnsnull
if it could not be found, optionally using the finder cache.static DDMFormInstance
fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the first ddm form instance in the ordered set where uuid = ? and companyId = ?.static DDMFormInstance
fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the last ddm form instance in the ordered set where uuid = ? and companyId = ?.static DDMFormInstance
fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the first ddm form instance in the ordered set where uuid = ?.static DDMFormInstance
fetchByUUID_G
(String uuid, long groupId) Returns the ddm form instance where uuid = ? and groupId = ? or returnsnull
if it could not be found.static DDMFormInstance
fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the ddm form instance where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.static DDMFormInstance
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the last ddm form instance in the ordered set where uuid = ?.static int
filterCountByGroupId
(long groupId) Returns the number of ddm form instances that the user has permission to view where groupId = ?.static int
filterCountByGroupId
(long[] groupIds) Returns the number of ddm form instances that the user has permission to view where groupId = any ?.static List<DDMFormInstance>
filterFindByGroupId
(long groupId) Returns all the ddm form instances that the user has permission to view where groupId = ?.static List<DDMFormInstance>
filterFindByGroupId
(long[] groupIds) Returns all the ddm form instances that the user has permission to view where groupId = any ?.static List<DDMFormInstance>
filterFindByGroupId
(long[] groupIds, int start, int end) Returns a range of all the ddm form instances that the user has permission to view where groupId = any ?.static List<DDMFormInstance>
filterFindByGroupId
(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns an ordered range of all the ddm form instances that the user has permission to view where groupId = any ?.static List<DDMFormInstance>
filterFindByGroupId
(long groupId, int start, int end) Returns a range of all the ddm form instances that the user has permission to view where groupId = ?.static List<DDMFormInstance>
filterFindByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns an ordered range of all the ddm form instances that the user has permissions to view where groupId = ?.static DDMFormInstance[]
filterFindByGroupId_PrevAndNext
(long formInstanceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the ddm form instances before and after the current ddm form instance in the ordered set of ddm form instances that the user has permission to view where groupId = ?.static List<DDMFormInstance>
findAll()
Returns all the ddm form instances.static List<DDMFormInstance>
findAll
(int start, int end) Returns a range of all the ddm form instances.static List<DDMFormInstance>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns an ordered range of all the ddm form instances.static List<DDMFormInstance>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instances.static List<DDMFormInstance>
findByGroupId
(long groupId) Returns all the ddm form instances where groupId = ?.static List<DDMFormInstance>
findByGroupId
(long[] groupIds) Returns all the ddm form instances where groupId = any ?.static List<DDMFormInstance>
findByGroupId
(long[] groupIds, int start, int end) Returns a range of all the ddm form instances where groupId = any ?.static List<DDMFormInstance>
findByGroupId
(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns an ordered range of all the ddm form instances where groupId = any ?.static List<DDMFormInstance>
findByGroupId
(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instances where groupId = ?, optionally using the finder cache.static List<DDMFormInstance>
findByGroupId
(long groupId, int start, int end) Returns a range of all the ddm form instances where groupId = ?.static List<DDMFormInstance>
findByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns an ordered range of all the ddm form instances where groupId = ?.static List<DDMFormInstance>
findByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instances where groupId = ?.static DDMFormInstance
findByGroupId_First
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the first ddm form instance in the ordered set where groupId = ?.static DDMFormInstance
findByGroupId_Last
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the last ddm form instance in the ordered set where groupId = ?.static DDMFormInstance[]
findByGroupId_PrevAndNext
(long formInstanceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the ddm form instances before and after the current ddm form instance in the ordered set where groupId = ?.static DDMFormInstance
findByPrimaryKey
(long formInstanceId) Returns the ddm form instance with the primary key or throws aNoSuchFormInstanceException
if it could not be found.static DDMFormInstance
findByStructureId
(long structureId) Returns the ddm form instance where structureId = ? or throws aNoSuchFormInstanceException
if it could not be found.static List<DDMFormInstance>
findByUuid
(String uuid) Returns all the ddm form instances where uuid = ?.static List<DDMFormInstance>
findByUuid
(String uuid, int start, int end) Returns a range of all the ddm form instances where uuid = ?.static List<DDMFormInstance>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns an ordered range of all the ddm form instances where uuid = ?.static List<DDMFormInstance>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instances where uuid = ?.static List<DDMFormInstance>
findByUuid_C
(String uuid, long companyId) Returns all the ddm form instances where uuid = ? and companyId = ?.static List<DDMFormInstance>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the ddm form instances where uuid = ? and companyId = ?.static List<DDMFormInstance>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns an ordered range of all the ddm form instances where uuid = ? and companyId = ?.static List<DDMFormInstance>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instances where uuid = ? and companyId = ?.static DDMFormInstance
findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the first ddm form instance in the ordered set where uuid = ? and companyId = ?.static DDMFormInstance
findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the last ddm form instance in the ordered set where uuid = ? and companyId = ?.static DDMFormInstance[]
findByUuid_C_PrevAndNext
(long formInstanceId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the ddm form instances before and after the current ddm form instance in the ordered set where uuid = ? and companyId = ?.static DDMFormInstance
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the first ddm form instance in the ordered set where uuid = ?.static DDMFormInstance
findByUUID_G
(String uuid, long groupId) Returns the ddm form instance where uuid = ? and groupId = ? or throws aNoSuchFormInstanceException
if it could not be found.static DDMFormInstance
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the last ddm form instance in the ordered set where uuid = ?.static DDMFormInstance[]
findByUuid_PrevAndNext
(long formInstanceId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the ddm form instances before and after the current ddm form instance in the ordered set where uuid = ?.static List<DDMFormInstance>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<DDMFormInstance>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<DDMFormInstance>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) static DDMFormInstancePersistence
static DDMFormInstance
remove
(long formInstanceId) Removes the ddm form instance with the primary key from the database.static void
Removes all the ddm form instances from the database.static void
removeByGroupId
(long groupId) Removes all the ddm form instances where groupId = ? from the database.static DDMFormInstance
removeByStructureId
(long structureId) Removes the ddm form instance where structureId = ? from the database.static void
removeByUuid
(String uuid) Removes all the ddm form instances where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the ddm form instances where uuid = ? and companyId = ? from the database.static DDMFormInstance
removeByUUID_G
(String uuid, long groupId) Removes the ddm form instance where uuid = ? and groupId = ? from the database.static void
setPersistence
(DDMFormInstancePersistence persistence) static DDMFormInstance
update
(DDMFormInstance ddmFormInstance) static DDMFormInstance
update
(DDMFormInstance ddmFormInstance, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DDMFormInstance
updateImpl
(DDMFormInstance ddmFormInstance)
-
Constructor Details
-
DDMFormInstanceUtil
public DDMFormInstanceUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<DDMFormInstance> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<DDMFormInstance> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<DDMFormInstance> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static DDMFormInstance update(DDMFormInstance ddmFormInstance, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the ddm form instances where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching ddm form instances
-
findByUuid
Returns a range of all the ddm form instances where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)- Returns:
- the range of matching ddm form instances
-
findByUuid
public static List<DDMFormInstance> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns an ordered range of all the ddm form instances where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching ddm form instances
-
findByUuid
public static List<DDMFormInstance> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instances where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching ddm form instances
-
findByUuid_First
public static DDMFormInstance findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException Returns the first ddm form instance in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm form instance
- Throws:
NoSuchFormInstanceException
- if a matching ddm form instance could not be foundNoSuchFormInstanceException
-
fetchByUuid_First
public static DDMFormInstance fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the first ddm form instance in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm form instance, or
null
if a matching ddm form instance could not be found
-
findByUuid_Last
public static DDMFormInstance findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException Returns the last ddm form instance in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm form instance
- Throws:
NoSuchFormInstanceException
- if a matching ddm form instance could not be foundNoSuchFormInstanceException
-
fetchByUuid_Last
public static DDMFormInstance fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the last ddm form instance in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm form instance, or
null
if a matching ddm form instance could not be found
-
findByUuid_PrevAndNext
public static DDMFormInstance[] findByUuid_PrevAndNext(long formInstanceId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException Returns the ddm form instances before and after the current ddm form instance in the ordered set where uuid = ?.- Parameters:
formInstanceId
- the primary key of the current ddm form instanceuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ddm form instance
- Throws:
NoSuchFormInstanceException
- if a ddm form instance with the primary key could not be foundNoSuchFormInstanceException
-
removeByUuid
Removes all the ddm form instances where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of ddm form instances where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching ddm form instances
-
findByUUID_G
public static DDMFormInstance findByUUID_G(String uuid, long groupId) throws NoSuchFormInstanceException Returns the ddm form instance where uuid = ? and groupId = ? or throws aNoSuchFormInstanceException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching ddm form instance
- Throws:
NoSuchFormInstanceException
- if a matching ddm form instance could not be foundNoSuchFormInstanceException
-
fetchByUUID_G
Returns the ddm form instance where uuid = ? and groupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching ddm form instance, or
null
if a matching ddm form instance could not be found
-
fetchByUUID_G
Returns the ddm form instance where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching ddm form instance, or
null
if a matching ddm form instance could not be found
-
removeByUUID_G
public static DDMFormInstance removeByUUID_G(String uuid, long groupId) throws NoSuchFormInstanceException Removes the ddm form instance where uuid = ? and groupId = ? from the database.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the ddm form instance that was removed
- Throws:
NoSuchFormInstanceException
-
countByUUID_G
Returns the number of ddm form instances where uuid = ? and groupId = ?.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the number of matching ddm form instances
-
findByUuid_C
Returns all the ddm form instances where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching ddm form instances
-
findByUuid_C
Returns a range of all the ddm form instances where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)- Returns:
- the range of matching ddm form instances
-
findByUuid_C
public static List<DDMFormInstance> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns an ordered range of all the ddm form instances where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching ddm form instances
-
findByUuid_C
public static List<DDMFormInstance> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instances where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching ddm form instances
-
findByUuid_C_First
public static DDMFormInstance findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException Returns the first ddm form instance in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm form instance
- Throws:
NoSuchFormInstanceException
- if a matching ddm form instance could not be foundNoSuchFormInstanceException
-
fetchByUuid_C_First
public static DDMFormInstance fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the first ddm form instance in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm form instance, or
null
if a matching ddm form instance could not be found
-
findByUuid_C_Last
public static DDMFormInstance findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException Returns the last ddm form instance in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm form instance
- Throws:
NoSuchFormInstanceException
- if a matching ddm form instance could not be foundNoSuchFormInstanceException
-
fetchByUuid_C_Last
public static DDMFormInstance fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the last ddm form instance in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm form instance, or
null
if a matching ddm form instance could not be found
-
findByUuid_C_PrevAndNext
public static DDMFormInstance[] findByUuid_C_PrevAndNext(long formInstanceId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException Returns the ddm form instances before and after the current ddm form instance in the ordered set where uuid = ? and companyId = ?.- Parameters:
formInstanceId
- the primary key of the current ddm form instanceuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ddm form instance
- Throws:
NoSuchFormInstanceException
- if a ddm form instance with the primary key could not be foundNoSuchFormInstanceException
-
removeByUuid_C
Removes all the ddm form instances where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of ddm form instances where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching ddm form instances
-
findByGroupId
Returns all the ddm form instances where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching ddm form instances
-
findByGroupId
Returns a range of all the ddm form instances where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)- Returns:
- the range of matching ddm form instances
-
findByGroupId
public static List<DDMFormInstance> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns an ordered range of all the ddm form instances where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching ddm form instances
-
findByGroupId
public static List<DDMFormInstance> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instances where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching ddm form instances
-
findByGroupId_First
public static DDMFormInstance findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException Returns the first ddm form instance in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm form instance
- Throws:
NoSuchFormInstanceException
- if a matching ddm form instance could not be foundNoSuchFormInstanceException
-
fetchByGroupId_First
public static DDMFormInstance fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the first ddm form instance in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm form instance, or
null
if a matching ddm form instance could not be found
-
findByGroupId_Last
public static DDMFormInstance findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException Returns the last ddm form instance in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm form instance
- Throws:
NoSuchFormInstanceException
- if a matching ddm form instance could not be foundNoSuchFormInstanceException
-
fetchByGroupId_Last
public static DDMFormInstance fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns the last ddm form instance in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm form instance, or
null
if a matching ddm form instance could not be found
-
findByGroupId_PrevAndNext
public static DDMFormInstance[] findByGroupId_PrevAndNext(long formInstanceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException Returns the ddm form instances before and after the current ddm form instance in the ordered set where groupId = ?.- Parameters:
formInstanceId
- the primary key of the current ddm form instancegroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ddm form instance
- Throws:
NoSuchFormInstanceException
- if a ddm form instance with the primary key could not be foundNoSuchFormInstanceException
-
filterFindByGroupId
Returns all the ddm form instances that the user has permission to view where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching ddm form instances that the user has permission to view
-
filterFindByGroupId
Returns a range of all the ddm form instances that the user has permission to view where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)- Returns:
- the range of matching ddm form instances that the user has permission to view
-
filterFindByGroupId
public static List<DDMFormInstance> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns an ordered range of all the ddm form instances that the user has permissions to view where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching ddm form instances that the user has permission to view
-
filterFindByGroupId_PrevAndNext
public static DDMFormInstance[] filterFindByGroupId_PrevAndNext(long formInstanceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException Returns the ddm form instances before and after the current ddm form instance in the ordered set of ddm form instances that the user has permission to view where groupId = ?.- Parameters:
formInstanceId
- the primary key of the current ddm form instancegroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ddm form instance
- Throws:
NoSuchFormInstanceException
- if a ddm form instance with the primary key could not be foundNoSuchFormInstanceException
-
filterFindByGroupId
Returns all the ddm form instances that the user has permission to view where groupId = any ?.- Parameters:
groupIds
- the group IDs- Returns:
- the matching ddm form instances that the user has permission to view
-
filterFindByGroupId
Returns a range of all the ddm form instances that the user has permission to view where groupId = any ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
groupIds
- the group IDsstart
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)- Returns:
- the range of matching ddm form instances that the user has permission to view
-
filterFindByGroupId
public static List<DDMFormInstance> filterFindByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns an ordered range of all the ddm form instances that the user has permission to view where groupId = any ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
groupIds
- the group IDsstart
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching ddm form instances that the user has permission to view
-
findByGroupId
Returns all the ddm form instances where groupId = any ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
groupIds
- the group IDs- Returns:
- the matching ddm form instances
-
findByGroupId
Returns a range of all the ddm form instances where groupId = any ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
groupIds
- the group IDsstart
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)- Returns:
- the range of matching ddm form instances
-
findByGroupId
public static List<DDMFormInstance> findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns an ordered range of all the ddm form instances where groupId = any ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
groupIds
- the group IDsstart
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching ddm form instances
-
findByGroupId
public static List<DDMFormInstance> findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instances where groupId = ?, optionally using the finder cache.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
groupIds
- the group IDsstart
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching ddm form instances
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the ddm form instances where groupId = ? from the database.- Parameters:
groupId
- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of ddm form instances where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching ddm form instances
-
countByGroupId
public static int countByGroupId(long[] groupIds) Returns the number of ddm form instances where groupId = any ?.- Parameters:
groupIds
- the group IDs- Returns:
- the number of matching ddm form instances
-
filterCountByGroupId
public static int filterCountByGroupId(long groupId) Returns the number of ddm form instances that the user has permission to view where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching ddm form instances that the user has permission to view
-
filterCountByGroupId
public static int filterCountByGroupId(long[] groupIds) Returns the number of ddm form instances that the user has permission to view where groupId = any ?.- Parameters:
groupIds
- the group IDs- Returns:
- the number of matching ddm form instances that the user has permission to view
-
findByStructureId
public static DDMFormInstance findByStructureId(long structureId) throws NoSuchFormInstanceException Returns the ddm form instance where structureId = ? or throws aNoSuchFormInstanceException
if it could not be found.- Parameters:
structureId
- the structure ID- Returns:
- the matching ddm form instance
- Throws:
NoSuchFormInstanceException
- if a matching ddm form instance could not be foundNoSuchFormInstanceException
-
fetchByStructureId
Returns the ddm form instance where structureId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
structureId
- the structure ID- Returns:
- the matching ddm form instance, or
null
if a matching ddm form instance could not be found
-
fetchByStructureId
Returns the ddm form instance where structureId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
structureId
- the structure IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching ddm form instance, or
null
if a matching ddm form instance could not be found
-
removeByStructureId
public static DDMFormInstance removeByStructureId(long structureId) throws NoSuchFormInstanceException Removes the ddm form instance where structureId = ? from the database.- Parameters:
structureId
- the structure ID- Returns:
- the ddm form instance that was removed
- Throws:
NoSuchFormInstanceException
-
countByStructureId
public static int countByStructureId(long structureId) Returns the number of ddm form instances where structureId = ?.- Parameters:
structureId
- the structure ID- Returns:
- the number of matching ddm form instances
-
cacheResult
Caches the ddm form instance in the entity cache if it is enabled.- Parameters:
ddmFormInstance
- the ddm form instance
-
cacheResult
Caches the ddm form instances in the entity cache if it is enabled.- Parameters:
ddmFormInstances
- the ddm form instances
-
create
Creates a new ddm form instance with the primary key. Does not add the ddm form instance to the database.- Parameters:
formInstanceId
- the primary key for the new ddm form instance- Returns:
- the new ddm form instance
-
remove
Removes the ddm form instance with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
formInstanceId
- the primary key of the ddm form instance- Returns:
- the ddm form instance that was removed
- Throws:
NoSuchFormInstanceException
- if a ddm form instance with the primary key could not be foundNoSuchFormInstanceException
-
updateImpl
-
findByPrimaryKey
public static DDMFormInstance findByPrimaryKey(long formInstanceId) throws NoSuchFormInstanceException Returns the ddm form instance with the primary key or throws aNoSuchFormInstanceException
if it could not be found.- Parameters:
formInstanceId
- the primary key of the ddm form instance- Returns:
- the ddm form instance
- Throws:
NoSuchFormInstanceException
- if a ddm form instance with the primary key could not be foundNoSuchFormInstanceException
-
fetchByPrimaryKey
Returns the ddm form instance with the primary key or returnsnull
if it could not be found.- Parameters:
formInstanceId
- the primary key of the ddm form instance- Returns:
- the ddm form instance, or
null
if a ddm form instance with the primary key could not be found
-
findAll
Returns all the ddm form instances.- Returns:
- the ddm form instances
-
findAll
Returns a range of all the ddm form instances.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
start
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)- Returns:
- the range of ddm form instances
-
findAll
public static List<DDMFormInstance> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) Returns an ordered range of all the ddm form instances.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
start
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of ddm form instances
-
findAll
public static List<DDMFormInstance> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm form instances.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMFormInstanceModelImpl
.- Parameters:
start
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of ddm form instances
-
removeAll
public static void removeAll()Removes all the ddm form instances from the database. -
countAll
public static int countAll()Returns the number of ddm form instances.- Returns:
- the number of ddm form instances
-
getPersistence
-
setPersistence
-