public class ObjectEntryUtil
extends java.lang.Object
com.liferay.object.service.persistence.impl.ObjectEntryPersistenceImpl
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
ObjectEntryPersistence
Constructor and Description |
---|
ObjectEntryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ObjectEntry> objectEntries)
Caches the object entries in the entity cache if it is enabled.
|
static void |
cacheResult(ObjectEntry objectEntry)
Caches the object entry in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ObjectEntry objectEntry) |
static int |
countAll()
Returns the number of object entries.
|
static int |
countByG_C_ERC(long groupId,
long companyId,
java.lang.String externalReferenceCode)
Returns the number of object entries where groupId = ? and companyId = ? and externalReferenceCode = ?.
|
static int |
countByG_ODI(long groupId,
long objectDefinitionId)
Returns the number of object entries where groupId = ? and objectDefinitionId = ?.
|
static int |
countByObjectDefinitionId(long objectDefinitionId)
Returns the number of object entries where objectDefinitionId = ?.
|
static int |
countByODI_NotS(long objectDefinitionId,
int status)
Returns the number of object entries where objectDefinitionId = ? and status ≠ ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of object entries where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of object entries where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of object entries where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ObjectEntry |
create(long objectEntryId)
Creates a new object entry with the primary key.
|
static ObjectEntry |
fetchByG_C_ERC(long groupId,
long companyId,
java.lang.String externalReferenceCode)
Returns the object entry where groupId = ? and companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static ObjectEntry |
fetchByG_C_ERC(long groupId,
long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the object entry where groupId = ? and companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static ObjectEntry |
fetchByG_ODI_First(long groupId,
long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the first object entry in the ordered set where groupId = ? and objectDefinitionId = ?.
|
static ObjectEntry |
fetchByG_ODI_Last(long groupId,
long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the last object entry in the ordered set where groupId = ? and objectDefinitionId = ?.
|
static ObjectEntry |
fetchByObjectDefinitionId_First(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the first object entry in the ordered set where objectDefinitionId = ?.
|
static ObjectEntry |
fetchByObjectDefinitionId_Last(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the last object entry in the ordered set where objectDefinitionId = ?.
|
static ObjectEntry |
fetchByODI_NotS_First(long objectDefinitionId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the first object entry in the ordered set where objectDefinitionId = ? and status ≠ ?.
|
static ObjectEntry |
fetchByODI_NotS_Last(long objectDefinitionId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the last object entry in the ordered set where objectDefinitionId = ? and status ≠ ?.
|
static ObjectEntry |
fetchByPrimaryKey(long objectEntryId)
Returns the object entry with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ObjectEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ObjectEntry |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the first object entry in the ordered set where uuid = ? and companyId = ?.
|
static ObjectEntry |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the last object entry in the ordered set where uuid = ? and companyId = ?.
|
static ObjectEntry |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the first object entry in the ordered set where uuid = ?.
|
static ObjectEntry |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the object entry where uuid = ? and groupId = ? or returns
null if it could not be found. |
static ObjectEntry |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the object entry where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static ObjectEntry |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the last object entry in the ordered set where uuid = ?.
|
static java.util.List<ObjectEntry> |
findAll()
Returns all the object entries.
|
static java.util.List<ObjectEntry> |
findAll(int start,
int end)
Returns a range of all the object entries.
|
static java.util.List<ObjectEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns an ordered range of all the object entries.
|
static java.util.List<ObjectEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object entries.
|
static ObjectEntry |
findByG_C_ERC(long groupId,
long companyId,
java.lang.String externalReferenceCode)
Returns the object entry where groupId = ? and companyId = ? and externalReferenceCode = ? or throws a
NoSuchObjectEntryException if it could not be found. |
static ObjectEntry |
findByG_ODI_First(long groupId,
long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the first object entry in the ordered set where groupId = ? and objectDefinitionId = ?.
|
static ObjectEntry |
findByG_ODI_Last(long groupId,
long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the last object entry in the ordered set where groupId = ? and objectDefinitionId = ?.
|
static ObjectEntry[] |
findByG_ODI_PrevAndNext(long objectEntryId,
long groupId,
long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the object entries before and after the current object entry in the ordered set where groupId = ? and objectDefinitionId = ?.
|
static java.util.List<ObjectEntry> |
findByG_ODI(long groupId,
long objectDefinitionId)
Returns all the object entries where groupId = ? and objectDefinitionId = ?.
|
static java.util.List<ObjectEntry> |
findByG_ODI(long groupId,
long objectDefinitionId,
int start,
int end)
Returns a range of all the object entries where groupId = ? and objectDefinitionId = ?.
|
static java.util.List<ObjectEntry> |
findByG_ODI(long groupId,
long objectDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns an ordered range of all the object entries where groupId = ? and objectDefinitionId = ?.
|
static java.util.List<ObjectEntry> |
findByG_ODI(long groupId,
long objectDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object entries where groupId = ? and objectDefinitionId = ?.
|
static ObjectEntry |
findByObjectDefinitionId_First(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the first object entry in the ordered set where objectDefinitionId = ?.
|
static ObjectEntry |
findByObjectDefinitionId_Last(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the last object entry in the ordered set where objectDefinitionId = ?.
|
static ObjectEntry[] |
findByObjectDefinitionId_PrevAndNext(long objectEntryId,
long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the object entries before and after the current object entry in the ordered set where objectDefinitionId = ?.
|
static java.util.List<ObjectEntry> |
findByObjectDefinitionId(long objectDefinitionId)
Returns all the object entries where objectDefinitionId = ?.
|
static java.util.List<ObjectEntry> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end)
Returns a range of all the object entries where objectDefinitionId = ?.
|
static java.util.List<ObjectEntry> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns an ordered range of all the object entries where objectDefinitionId = ?.
|
static java.util.List<ObjectEntry> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object entries where objectDefinitionId = ?.
|
static ObjectEntry |
findByODI_NotS_First(long objectDefinitionId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the first object entry in the ordered set where objectDefinitionId = ? and status ≠ ?.
|
static ObjectEntry |
findByODI_NotS_Last(long objectDefinitionId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the last object entry in the ordered set where objectDefinitionId = ? and status ≠ ?.
|
static ObjectEntry[] |
findByODI_NotS_PrevAndNext(long objectEntryId,
long objectDefinitionId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the object entries before and after the current object entry in the ordered set where objectDefinitionId = ? and status ≠ ?.
|
static java.util.List<ObjectEntry> |
findByODI_NotS(long objectDefinitionId,
int status)
Returns all the object entries where objectDefinitionId = ? and status ≠ ?.
|
static java.util.List<ObjectEntry> |
findByODI_NotS(long objectDefinitionId,
int status,
int start,
int end)
Returns a range of all the object entries where objectDefinitionId = ? and status ≠ ?.
|
static java.util.List<ObjectEntry> |
findByODI_NotS(long objectDefinitionId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns an ordered range of all the object entries where objectDefinitionId = ? and status ≠ ?.
|
static java.util.List<ObjectEntry> |
findByODI_NotS(long objectDefinitionId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object entries where objectDefinitionId = ? and status ≠ ?.
|
static ObjectEntry |
findByPrimaryKey(long objectEntryId)
Returns the object entry with the primary key or throws a
NoSuchObjectEntryException if it could not be found. |
static ObjectEntry |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the first object entry in the ordered set where uuid = ? and companyId = ?.
|
static ObjectEntry |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the last object entry in the ordered set where uuid = ? and companyId = ?.
|
static ObjectEntry[] |
findByUuid_C_PrevAndNext(long objectEntryId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the object entries before and after the current object entry in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<ObjectEntry> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the object entries where uuid = ? and companyId = ?.
|
static java.util.List<ObjectEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the object entries where uuid = ? and companyId = ?.
|
static java.util.List<ObjectEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns an ordered range of all the object entries where uuid = ? and companyId = ?.
|
static java.util.List<ObjectEntry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object entries where uuid = ? and companyId = ?.
|
static ObjectEntry |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the first object entry in the ordered set where uuid = ?.
|
static ObjectEntry |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the object entry where uuid = ? and groupId = ? or throws a
NoSuchObjectEntryException if it could not be found. |
static ObjectEntry |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the last object entry in the ordered set where uuid = ?.
|
static ObjectEntry[] |
findByUuid_PrevAndNext(long objectEntryId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns the object entries before and after the current object entry in the ordered set where uuid = ?.
|
static java.util.List<ObjectEntry> |
findByUuid(java.lang.String uuid)
Returns all the object entries where uuid = ?.
|
static java.util.List<ObjectEntry> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the object entries where uuid = ?.
|
static java.util.List<ObjectEntry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
Returns an ordered range of all the object entries where uuid = ?.
|
static java.util.List<ObjectEntry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object entries where uuid = ?.
|
static java.util.List<ObjectEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ObjectEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ObjectEntry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator) |
static ObjectEntryPersistence |
getPersistence() |
static ObjectEntry |
remove(long objectEntryId)
Removes the object entry with the primary key from the database.
|
static void |
removeAll()
Removes all the object entries from the database.
|
static ObjectEntry |
removeByG_C_ERC(long groupId,
long companyId,
java.lang.String externalReferenceCode)
Removes the object entry where groupId = ? and companyId = ? and externalReferenceCode = ? from the database.
|
static void |
removeByG_ODI(long groupId,
long objectDefinitionId)
Removes all the object entries where groupId = ? and objectDefinitionId = ? from the database.
|
static void |
removeByObjectDefinitionId(long objectDefinitionId)
Removes all the object entries where objectDefinitionId = ? from the database.
|
static void |
removeByODI_NotS(long objectDefinitionId,
int status)
Removes all the object entries where objectDefinitionId = ? and status ≠ ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the object entries where uuid = ? and companyId = ? from the database.
|
static ObjectEntry |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the object entry where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the object entries where uuid = ? from the database.
|
static ObjectEntry |
update(ObjectEntry objectEntry) |
static ObjectEntry |
update(ObjectEntry objectEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ObjectEntry |
updateImpl(ObjectEntry objectEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ObjectEntry objectEntry)
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,ObjectEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ObjectEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ObjectEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ObjectEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ObjectEntry update(ObjectEntry objectEntry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ObjectEntry update(ObjectEntry objectEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ObjectEntry> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectEntry> 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 ObjectEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (not inclusive)public static java.util.List<ObjectEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> 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 ObjectEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectEntry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> 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 ObjectEntryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectEntry findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator) throws NoSuchObjectEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectEntryException
- if a matching object entry could not be foundpublic static ObjectEntry fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object entry could not be foundpublic static ObjectEntry findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator) throws NoSuchObjectEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectEntryException
- if a matching object entry could not be foundpublic static ObjectEntry fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object entry could not be foundpublic static ObjectEntry[] findByUuid_PrevAndNext(long objectEntryId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator) throws NoSuchObjectEntryException
objectEntryId
- the primary key of the current object entryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectEntryException
- if a object entry 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 ObjectEntry findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchObjectEntryException
NoSuchObjectEntryException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchObjectEntryException
- if a matching object entry could not be foundpublic static ObjectEntry 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 object entry could not be foundpublic static ObjectEntry 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 object entry could not be foundpublic static ObjectEntry removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchObjectEntryException
uuid
- the uuidgroupId
- the group IDNoSuchObjectEntryException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<ObjectEntry> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectEntry> 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 ObjectEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (not inclusive)public static java.util.List<ObjectEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> 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 ObjectEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectEntry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> 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 ObjectEntryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectEntry findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator) throws NoSuchObjectEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectEntryException
- if a matching object entry could not be foundpublic static ObjectEntry fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object entry could not be foundpublic static ObjectEntry findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator) throws NoSuchObjectEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectEntryException
- if a matching object entry could not be foundpublic static ObjectEntry fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object entry could not be foundpublic static ObjectEntry[] findByUuid_C_PrevAndNext(long objectEntryId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator) throws NoSuchObjectEntryException
objectEntryId
- the primary key of the current object entryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectEntryException
- if a object entry 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<ObjectEntry> findByObjectDefinitionId(long objectDefinitionId)
objectDefinitionId
- the object definition IDpublic static java.util.List<ObjectEntry> findByObjectDefinitionId(long objectDefinitionId, 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 ObjectEntryModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (not inclusive)public static java.util.List<ObjectEntry> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> 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 ObjectEntryModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectEntry> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> 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 ObjectEntryModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectEntry findByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator) throws NoSuchObjectEntryException
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectEntryException
- if a matching object entry could not be foundpublic static ObjectEntry fetchByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object entry could not be foundpublic static ObjectEntry findByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator) throws NoSuchObjectEntryException
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectEntryException
- if a matching object entry could not be foundpublic static ObjectEntry fetchByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object entry could not be foundpublic static ObjectEntry[] findByObjectDefinitionId_PrevAndNext(long objectEntryId, long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator) throws NoSuchObjectEntryException
objectEntryId
- the primary key of the current object entryobjectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectEntryException
- if a object entry with the primary key could not be foundpublic static void removeByObjectDefinitionId(long objectDefinitionId)
objectDefinitionId
- the object definition IDpublic static int countByObjectDefinitionId(long objectDefinitionId)
objectDefinitionId
- the object definition IDpublic static java.util.List<ObjectEntry> findByG_ODI(long groupId, long objectDefinitionId)
groupId
- the group IDobjectDefinitionId
- the object definition IDpublic static java.util.List<ObjectEntry> findByG_ODI(long groupId, long objectDefinitionId, 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 ObjectEntryModelImpl
.
groupId
- the group IDobjectDefinitionId
- the object definition IDstart
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (not inclusive)public static java.util.List<ObjectEntry> findByG_ODI(long groupId, long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> 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 ObjectEntryModelImpl
.
groupId
- the group IDobjectDefinitionId
- the object definition IDstart
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectEntry> findByG_ODI(long groupId, long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> 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 ObjectEntryModelImpl
.
groupId
- the group IDobjectDefinitionId
- the object definition IDstart
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectEntry findByG_ODI_First(long groupId, long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator) throws NoSuchObjectEntryException
groupId
- the group IDobjectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectEntryException
- if a matching object entry could not be foundpublic static ObjectEntry fetchByG_ODI_First(long groupId, long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
groupId
- the group IDobjectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object entry could not be foundpublic static ObjectEntry findByG_ODI_Last(long groupId, long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator) throws NoSuchObjectEntryException
groupId
- the group IDobjectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectEntryException
- if a matching object entry could not be foundpublic static ObjectEntry fetchByG_ODI_Last(long groupId, long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
groupId
- the group IDobjectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object entry could not be foundpublic static ObjectEntry[] findByG_ODI_PrevAndNext(long objectEntryId, long groupId, long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator) throws NoSuchObjectEntryException
objectEntryId
- the primary key of the current object entrygroupId
- the group IDobjectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectEntryException
- if a object entry with the primary key could not be foundpublic static void removeByG_ODI(long groupId, long objectDefinitionId)
groupId
- the group IDobjectDefinitionId
- the object definition IDpublic static int countByG_ODI(long groupId, long objectDefinitionId)
groupId
- the group IDobjectDefinitionId
- the object definition IDpublic static java.util.List<ObjectEntry> findByODI_NotS(long objectDefinitionId, int status)
objectDefinitionId
- the object definition IDstatus
- the statuspublic static java.util.List<ObjectEntry> findByODI_NotS(long objectDefinitionId, int status, 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 ObjectEntryModelImpl
.
objectDefinitionId
- the object definition IDstatus
- the statusstart
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (not inclusive)public static java.util.List<ObjectEntry> findByODI_NotS(long objectDefinitionId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> 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 ObjectEntryModelImpl
.
objectDefinitionId
- the object definition IDstatus
- the statusstart
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectEntry> findByODI_NotS(long objectDefinitionId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> 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 ObjectEntryModelImpl
.
objectDefinitionId
- the object definition IDstatus
- the statusstart
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectEntry findByODI_NotS_First(long objectDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator) throws NoSuchObjectEntryException
objectDefinitionId
- the object definition IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectEntryException
- if a matching object entry could not be foundpublic static ObjectEntry fetchByODI_NotS_First(long objectDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
objectDefinitionId
- the object definition IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object entry could not be foundpublic static ObjectEntry findByODI_NotS_Last(long objectDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator) throws NoSuchObjectEntryException
objectDefinitionId
- the object definition IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectEntryException
- if a matching object entry could not be foundpublic static ObjectEntry fetchByODI_NotS_Last(long objectDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator)
objectDefinitionId
- the object definition IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object entry could not be foundpublic static ObjectEntry[] findByODI_NotS_PrevAndNext(long objectEntryId, long objectDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> orderByComparator) throws NoSuchObjectEntryException
objectEntryId
- the primary key of the current object entryobjectDefinitionId
- the object definition IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectEntryException
- if a object entry with the primary key could not be foundpublic static void removeByODI_NotS(long objectDefinitionId, int status)
objectDefinitionId
- the object definition IDstatus
- the statuspublic static int countByODI_NotS(long objectDefinitionId, int status)
objectDefinitionId
- the object definition IDstatus
- the statuspublic static ObjectEntry findByG_C_ERC(long groupId, long companyId, java.lang.String externalReferenceCode) throws NoSuchObjectEntryException
NoSuchObjectEntryException
if it could not be found.groupId
- the group IDcompanyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchObjectEntryException
- if a matching object entry could not be foundpublic static ObjectEntry fetchByG_C_ERC(long groupId, long companyId, java.lang.String externalReferenceCode)
null
if it could not be found. Uses the finder cache.groupId
- the group IDcompanyId
- the company IDexternalReferenceCode
- the external reference codenull
if a matching object entry could not be foundpublic static ObjectEntry fetchByG_C_ERC(long groupId, long companyId, java.lang.String externalReferenceCode, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDcompanyId
- the company IDexternalReferenceCode
- the external reference codeuseFinderCache
- whether to use the finder cachenull
if a matching object entry could not be foundpublic static ObjectEntry removeByG_C_ERC(long groupId, long companyId, java.lang.String externalReferenceCode) throws NoSuchObjectEntryException
groupId
- the group IDcompanyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchObjectEntryException
public static int countByG_C_ERC(long groupId, long companyId, java.lang.String externalReferenceCode)
groupId
- the group IDcompanyId
- the company IDexternalReferenceCode
- the external reference codepublic static void cacheResult(ObjectEntry objectEntry)
objectEntry
- the object entrypublic static void cacheResult(java.util.List<ObjectEntry> objectEntries)
objectEntries
- the object entriespublic static ObjectEntry create(long objectEntryId)
objectEntryId
- the primary key for the new object entrypublic static ObjectEntry remove(long objectEntryId) throws NoSuchObjectEntryException
objectEntryId
- the primary key of the object entryNoSuchObjectEntryException
- if a object entry with the primary key could not be foundpublic static ObjectEntry updateImpl(ObjectEntry objectEntry)
public static ObjectEntry findByPrimaryKey(long objectEntryId) throws NoSuchObjectEntryException
NoSuchObjectEntryException
if it could not be found.objectEntryId
- the primary key of the object entryNoSuchObjectEntryException
- if a object entry with the primary key could not be foundpublic static ObjectEntry fetchByPrimaryKey(long objectEntryId)
null
if it could not be found.objectEntryId
- the primary key of the object entrynull
if a object entry with the primary key could not be foundpublic static java.util.List<ObjectEntry> findAll()
public static java.util.List<ObjectEntry> 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 ObjectEntryModelImpl
.
start
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (not inclusive)public static java.util.List<ObjectEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> 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 ObjectEntryModelImpl
.
start
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectEntry> 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 ObjectEntryModelImpl
.
start
- the lower bound of the range of object entriesend
- the upper bound of the range of object entries (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 ObjectEntryPersistence getPersistence()