public class DDMFormInstanceUtil
extends java.lang.Object
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
DDMFormInstancePersistence
Constructor and Description |
---|
DDMFormInstanceUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(DDMFormInstance ddmFormInstance)
Caches the ddm form instance in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<DDMFormInstance> ddmFormInstances)
Caches the ddm form instances in the entity cache if it is enabled.
|
static void |
clearCache() |
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 |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of ddm form instances where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of ddm form instances where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of ddm form instances where uuid = ?.
|
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 returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,DDMFormInstance> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static DDMFormInstance |
fetchByUuid_C_First(java.lang.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(java.lang.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(java.lang.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(java.lang.String uuid,
long groupId)
Returns the ddm form instance where uuid = ? and groupId = ? or returns
null if it could not be found. |
static DDMFormInstance |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the ddm form instance where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static DDMFormInstance |
fetchByUuid_Last(java.lang.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 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 java.util.List<DDMFormInstance> |
filterFindByGroupId(long groupId)
Returns all the ddm form instances that the user has permission to view where groupId = ?.
|
static java.util.List<DDMFormInstance> |
filterFindByGroupId(long[] groupIds)
Returns all the ddm form instances that the user has permission to view where groupId = any ?.
|
static java.util.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 java.util.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 java.util.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 java.util.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 java.util.List<DDMFormInstance> |
findAll()
Returns all the ddm form instances.
|
static java.util.List<DDMFormInstance> |
findAll(int start,
int end)
Returns a range of all the ddm form instances.
|
static java.util.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 java.util.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 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 java.util.List<DDMFormInstance> |
findByGroupId(long groupId)
Returns all the ddm form instances where groupId = ?.
|
static java.util.List<DDMFormInstance> |
findByGroupId(long[] groupIds)
Returns all the ddm form instances where groupId = any ?.
|
static java.util.List<DDMFormInstance> |
findByGroupId(long[] groupIds,
int start,
int end)
Returns a range of all the ddm form instances where groupId = any ?.
|
static java.util.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 java.util.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 java.util.List<DDMFormInstance> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the ddm form instances where groupId = ?.
|
static java.util.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 java.util.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 |
findByPrimaryKey(long formInstanceId)
Returns the ddm form instance with the primary key or throws a
NoSuchFormInstanceException if it could not be found. |
static DDMFormInstance |
findByUuid_C_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<DDMFormInstance> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the ddm form instances where uuid = ? and companyId = ?.
|
static java.util.List<DDMFormInstance> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the ddm form instances where uuid = ? and companyId = ?.
|
static java.util.List<DDMFormInstance> |
findByUuid_C(java.lang.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 java.util.List<DDMFormInstance> |
findByUuid_C(java.lang.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_First(java.lang.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(java.lang.String uuid,
long groupId)
Returns the ddm form instance where uuid = ? and groupId = ? or throws a
NoSuchFormInstanceException if it could not be found. |
static DDMFormInstance |
findByUuid_Last(java.lang.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,
java.lang.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 java.util.List<DDMFormInstance> |
findByUuid(java.lang.String uuid)
Returns all the ddm form instances where uuid = ?.
|
static java.util.List<DDMFormInstance> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the ddm form instances where uuid = ?.
|
static java.util.List<DDMFormInstance> |
findByUuid(java.lang.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 java.util.List<DDMFormInstance> |
findByUuid(java.lang.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 java.util.List<DDMFormInstance> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<DDMFormInstance> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.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 |
getPersistence() |
static DDMFormInstance |
remove(long formInstanceId)
Removes the ddm form instance with the primary key from the database.
|
static void |
removeAll()
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 void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the ddm form instances where uuid = ? and companyId = ? from the database.
|
static DDMFormInstance |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the ddm form instance where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the ddm form instances where uuid = ? from the database.
|
static DDMFormInstance |
update(DDMFormInstance ddmFormInstance) |
static DDMFormInstance |
update(DDMFormInstance ddmFormInstance,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static DDMFormInstance |
updateImpl(DDMFormInstance ddmFormInstance) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(DDMFormInstance ddmFormInstance)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,DDMFormInstance> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<DDMFormInstance> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<DDMFormInstance> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<DDMFormInstance> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static DDMFormInstance update(DDMFormInstance ddmFormInstance)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static DDMFormInstance update(DDMFormInstance ddmFormInstance, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<DDMFormInstance> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<DDMFormInstance> findByUuid(java.lang.String uuid, 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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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)public static java.util.List<DDMFormInstance> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> 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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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 (optionally null
)public static java.util.List<DDMFormInstance> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static DDMFormInstance findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFormInstanceException
- if a matching ddm form instance could not be foundpublic static DDMFormInstance fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm form instance could not be foundpublic static DDMFormInstance findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFormInstanceException
- if a matching ddm form instance could not be foundpublic static DDMFormInstance fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm form instance could not be foundpublic static DDMFormInstance[] findByUuid_PrevAndNext(long formInstanceId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException
formInstanceId
- the primary key of the current ddm form instanceuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFormInstanceException
- if a ddm form instance with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static DDMFormInstance findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchFormInstanceException
NoSuchFormInstanceException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchFormInstanceException
- if a matching ddm form instance could not be foundpublic static DDMFormInstance fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching ddm form instance could not be foundpublic static DDMFormInstance fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching ddm form instance could not be foundpublic static DDMFormInstance removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchFormInstanceException
uuid
- the uuidgroupId
- the group IDNoSuchFormInstanceException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<DDMFormInstance> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<DDMFormInstance> findByUuid_C(java.lang.String uuid, long companyId, 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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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)public static java.util.List<DDMFormInstance> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> 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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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 (optionally null
)public static java.util.List<DDMFormInstance> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static DDMFormInstance findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFormInstanceException
- if a matching ddm form instance could not be foundpublic static DDMFormInstance fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm form instance could not be foundpublic static DDMFormInstance findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFormInstanceException
- if a matching ddm form instance could not be foundpublic static DDMFormInstance fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm form instance could not be foundpublic static DDMFormInstance[] findByUuid_C_PrevAndNext(long formInstanceId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException
formInstanceId
- the primary key of the current ddm form instanceuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFormInstanceException
- if a ddm form instance with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<DDMFormInstance> findByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<DDMFormInstance> findByGroupId(long groupId, 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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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)public static java.util.List<DDMFormInstance> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> 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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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 (optionally null
)public static java.util.List<DDMFormInstance> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static DDMFormInstance findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFormInstanceException
- if a matching ddm form instance could not be foundpublic static DDMFormInstance fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm form instance could not be foundpublic static DDMFormInstance findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFormInstanceException
- if a matching ddm form instance could not be foundpublic static DDMFormInstance fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm form instance could not be foundpublic static DDMFormInstance[] findByGroupId_PrevAndNext(long formInstanceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException
formInstanceId
- the primary key of the current ddm form instancegroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFormInstanceException
- if a ddm form instance with the primary key could not be foundpublic static java.util.List<DDMFormInstance> filterFindByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<DDMFormInstance> filterFindByGroupId(long groupId, 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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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)public static java.util.List<DDMFormInstance> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> 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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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 (optionally null
)public static DDMFormInstance[] filterFindByGroupId_PrevAndNext(long formInstanceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator) throws NoSuchFormInstanceException
formInstanceId
- the primary key of the current ddm form instancegroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFormInstanceException
- if a ddm form instance with the primary key could not be foundpublic static java.util.List<DDMFormInstance> filterFindByGroupId(long[] groupIds)
groupIds
- the group IDspublic static java.util.List<DDMFormInstance> filterFindByGroupId(long[] groupIds, 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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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)public static java.util.List<DDMFormInstance> filterFindByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> 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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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 (optionally null
)public static java.util.List<DDMFormInstance> findByGroupId(long[] groupIds)
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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
groupIds
- the group IDspublic static java.util.List<DDMFormInstance> findByGroupId(long[] groupIds, 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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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)public static java.util.List<DDMFormInstance> findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> 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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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 (optionally null
)public static java.util.List<DDMFormInstance> findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long[] groupIds)
groupIds
- the group IDspublic static int filterCountByGroupId(long groupId)
groupId
- the group IDpublic static int filterCountByGroupId(long[] groupIds)
groupIds
- the group IDspublic static void cacheResult(DDMFormInstance ddmFormInstance)
ddmFormInstance
- the ddm form instancepublic static void cacheResult(java.util.List<DDMFormInstance> ddmFormInstances)
ddmFormInstances
- the ddm form instancespublic static DDMFormInstance create(long formInstanceId)
formInstanceId
- the primary key for the new ddm form instancepublic static DDMFormInstance remove(long formInstanceId) throws NoSuchFormInstanceException
formInstanceId
- the primary key of the ddm form instanceNoSuchFormInstanceException
- if a ddm form instance with the primary key could not be foundpublic static DDMFormInstance updateImpl(DDMFormInstance ddmFormInstance)
public static DDMFormInstance findByPrimaryKey(long formInstanceId) throws NoSuchFormInstanceException
NoSuchFormInstanceException
if it could not be found.formInstanceId
- the primary key of the ddm form instanceNoSuchFormInstanceException
- if a ddm form instance with the primary key could not be foundpublic static DDMFormInstance fetchByPrimaryKey(long formInstanceId)
null
if it could not be found.formInstanceId
- the primary key of the ddm form instancenull
if a ddm form instance with the primary key could not be foundpublic static java.util.List<DDMFormInstance> findAll()
public static java.util.List<DDMFormInstance> findAll(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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
start
- the lower bound of the range of ddm form instancesend
- the upper bound of the range of ddm form instances (not inclusive)public static java.util.List<DDMFormInstance> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> 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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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 (optionally null
)public static java.util.List<DDMFormInstance> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstance> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DDMFormInstanceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static DDMFormInstancePersistence getPersistence()