public class ObjectRelationshipUtil
extends java.lang.Object
com.liferay.object.service.persistence.impl.ObjectRelationshipPersistenceImpl
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
ObjectRelationshipPersistence
Constructor and Description |
---|
ObjectRelationshipUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ObjectRelationship> objectRelationships)
Caches the object relationships in the entity cache if it is enabled.
|
static void |
cacheResult(ObjectRelationship objectRelationship)
Caches the object relationship in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ObjectRelationship objectRelationship) |
static int |
countAll()
Returns the number of object relationships.
|
static int |
countByObjectDefinitionId1(long objectDefinitionId1)
Returns the number of object relationships where objectDefinitionId1 = ?.
|
static int |
countByObjectDefinitionId2(long objectDefinitionId2)
Returns the number of object relationships where objectDefinitionId2 = ?.
|
static int |
countByObjectFieldId2(long objectFieldId2)
Returns the number of object relationships where objectFieldId2 = ?.
|
static int |
countByODI1_N(long objectDefinitionId1,
java.lang.String name)
Returns the number of object relationships where objectDefinitionId1 = ? and name = ?.
|
static int |
countByODI1_ODI2_N_R_T(long objectDefinitionId1,
long objectDefinitionId2,
java.lang.String name,
boolean reverse,
java.lang.String type)
Returns the number of object relationships where objectDefinitionId1 = ? and objectDefinitionId2 = ? and name = ? and reverse = ? and type = ?.
|
static int |
countByODI1_ODI2_N_T(long objectDefinitionId1,
long objectDefinitionId2,
java.lang.String name,
java.lang.String type)
Returns the number of object relationships where objectDefinitionId1 = ? and objectDefinitionId2 = ? and name = ? and type = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of object relationships where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of object relationships where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ObjectRelationship |
create(long objectRelationshipId)
Creates a new object relationship with the primary key.
|
static ObjectRelationship |
fetchByObjectDefinitionId1_First(long objectDefinitionId1,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the first object relationship in the ordered set where objectDefinitionId1 = ?.
|
static ObjectRelationship |
fetchByObjectDefinitionId1_Last(long objectDefinitionId1,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the last object relationship in the ordered set where objectDefinitionId1 = ?.
|
static ObjectRelationship |
fetchByObjectDefinitionId2_First(long objectDefinitionId2,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the first object relationship in the ordered set where objectDefinitionId2 = ?.
|
static ObjectRelationship |
fetchByObjectDefinitionId2_Last(long objectDefinitionId2,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the last object relationship in the ordered set where objectDefinitionId2 = ?.
|
static ObjectRelationship |
fetchByObjectFieldId2(long objectFieldId2)
Returns the object relationship where objectFieldId2 = ? or returns
null if it could not be found. |
static ObjectRelationship |
fetchByObjectFieldId2(long objectFieldId2,
boolean useFinderCache)
Returns the object relationship where objectFieldId2 = ? or returns
null if it could not be found, optionally using the finder cache. |
static ObjectRelationship |
fetchByODI1_N(long objectDefinitionId1,
java.lang.String name)
Returns the object relationship where objectDefinitionId1 = ? and name = ? or returns
null if it could not be found. |
static ObjectRelationship |
fetchByODI1_N(long objectDefinitionId1,
java.lang.String name,
boolean useFinderCache)
Returns the object relationship where objectDefinitionId1 = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
static ObjectRelationship |
fetchByODI1_ODI2_N_R_T(long objectDefinitionId1,
long objectDefinitionId2,
java.lang.String name,
boolean reverse,
java.lang.String type)
Returns the object relationship where objectDefinitionId1 = ? and objectDefinitionId2 = ? and name = ? and reverse = ? and type = ? or returns
null if it could not be found. |
static ObjectRelationship |
fetchByODI1_ODI2_N_R_T(long objectDefinitionId1,
long objectDefinitionId2,
java.lang.String name,
boolean reverse,
java.lang.String type,
boolean useFinderCache)
Returns the object relationship where objectDefinitionId1 = ? and objectDefinitionId2 = ? and name = ? and reverse = ? and type = ? or returns
null if it could not be found, optionally using the finder cache. |
static ObjectRelationship |
fetchByODI1_ODI2_N_T_First(long objectDefinitionId1,
long objectDefinitionId2,
java.lang.String name,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the first object relationship in the ordered set where objectDefinitionId1 = ? and objectDefinitionId2 = ? and name = ? and type = ?.
|
static ObjectRelationship |
fetchByODI1_ODI2_N_T_Last(long objectDefinitionId1,
long objectDefinitionId2,
java.lang.String name,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the last object relationship in the ordered set where objectDefinitionId1 = ? and objectDefinitionId2 = ? and name = ? and type = ?.
|
static ObjectRelationship |
fetchByPrimaryKey(long objectRelationshipId)
Returns the object relationship with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ObjectRelationship> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ObjectRelationship |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the first object relationship in the ordered set where uuid = ? and companyId = ?.
|
static ObjectRelationship |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the last object relationship in the ordered set where uuid = ? and companyId = ?.
|
static ObjectRelationship |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the first object relationship in the ordered set where uuid = ?.
|
static ObjectRelationship |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the last object relationship in the ordered set where uuid = ?.
|
static java.util.List<ObjectRelationship> |
findAll()
Returns all the object relationships.
|
static java.util.List<ObjectRelationship> |
findAll(int start,
int end)
Returns a range of all the object relationships.
|
static java.util.List<ObjectRelationship> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns an ordered range of all the object relationships.
|
static java.util.List<ObjectRelationship> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object relationships.
|
static ObjectRelationship |
findByObjectDefinitionId1_First(long objectDefinitionId1,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the first object relationship in the ordered set where objectDefinitionId1 = ?.
|
static ObjectRelationship |
findByObjectDefinitionId1_Last(long objectDefinitionId1,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the last object relationship in the ordered set where objectDefinitionId1 = ?.
|
static ObjectRelationship[] |
findByObjectDefinitionId1_PrevAndNext(long objectRelationshipId,
long objectDefinitionId1,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the object relationships before and after the current object relationship in the ordered set where objectDefinitionId1 = ?.
|
static java.util.List<ObjectRelationship> |
findByObjectDefinitionId1(long objectDefinitionId1)
Returns all the object relationships where objectDefinitionId1 = ?.
|
static java.util.List<ObjectRelationship> |
findByObjectDefinitionId1(long objectDefinitionId1,
int start,
int end)
Returns a range of all the object relationships where objectDefinitionId1 = ?.
|
static java.util.List<ObjectRelationship> |
findByObjectDefinitionId1(long objectDefinitionId1,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns an ordered range of all the object relationships where objectDefinitionId1 = ?.
|
static java.util.List<ObjectRelationship> |
findByObjectDefinitionId1(long objectDefinitionId1,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object relationships where objectDefinitionId1 = ?.
|
static ObjectRelationship |
findByObjectDefinitionId2_First(long objectDefinitionId2,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the first object relationship in the ordered set where objectDefinitionId2 = ?.
|
static ObjectRelationship |
findByObjectDefinitionId2_Last(long objectDefinitionId2,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the last object relationship in the ordered set where objectDefinitionId2 = ?.
|
static ObjectRelationship[] |
findByObjectDefinitionId2_PrevAndNext(long objectRelationshipId,
long objectDefinitionId2,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the object relationships before and after the current object relationship in the ordered set where objectDefinitionId2 = ?.
|
static java.util.List<ObjectRelationship> |
findByObjectDefinitionId2(long objectDefinitionId2)
Returns all the object relationships where objectDefinitionId2 = ?.
|
static java.util.List<ObjectRelationship> |
findByObjectDefinitionId2(long objectDefinitionId2,
int start,
int end)
Returns a range of all the object relationships where objectDefinitionId2 = ?.
|
static java.util.List<ObjectRelationship> |
findByObjectDefinitionId2(long objectDefinitionId2,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns an ordered range of all the object relationships where objectDefinitionId2 = ?.
|
static java.util.List<ObjectRelationship> |
findByObjectDefinitionId2(long objectDefinitionId2,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object relationships where objectDefinitionId2 = ?.
|
static ObjectRelationship |
findByObjectFieldId2(long objectFieldId2)
Returns the object relationship where objectFieldId2 = ? or throws a
NoSuchObjectRelationshipException if it could not be found. |
static ObjectRelationship |
findByODI1_N(long objectDefinitionId1,
java.lang.String name)
Returns the object relationship where objectDefinitionId1 = ? and name = ? or throws a
NoSuchObjectRelationshipException if it could not be found. |
static ObjectRelationship |
findByODI1_ODI2_N_R_T(long objectDefinitionId1,
long objectDefinitionId2,
java.lang.String name,
boolean reverse,
java.lang.String type)
Returns the object relationship where objectDefinitionId1 = ? and objectDefinitionId2 = ? and name = ? and reverse = ? and type = ? or throws a
NoSuchObjectRelationshipException if it could not be found. |
static ObjectRelationship |
findByODI1_ODI2_N_T_First(long objectDefinitionId1,
long objectDefinitionId2,
java.lang.String name,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the first object relationship in the ordered set where objectDefinitionId1 = ? and objectDefinitionId2 = ? and name = ? and type = ?.
|
static ObjectRelationship |
findByODI1_ODI2_N_T_Last(long objectDefinitionId1,
long objectDefinitionId2,
java.lang.String name,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the last object relationship in the ordered set where objectDefinitionId1 = ? and objectDefinitionId2 = ? and name = ? and type = ?.
|
static ObjectRelationship[] |
findByODI1_ODI2_N_T_PrevAndNext(long objectRelationshipId,
long objectDefinitionId1,
long objectDefinitionId2,
java.lang.String name,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the object relationships before and after the current object relationship in the ordered set where objectDefinitionId1 = ? and objectDefinitionId2 = ? and name = ? and type = ?.
|
static java.util.List<ObjectRelationship> |
findByODI1_ODI2_N_T(long objectDefinitionId1,
long objectDefinitionId2,
java.lang.String name,
java.lang.String type)
Returns all the object relationships where objectDefinitionId1 = ? and objectDefinitionId2 = ? and name = ? and type = ?.
|
static java.util.List<ObjectRelationship> |
findByODI1_ODI2_N_T(long objectDefinitionId1,
long objectDefinitionId2,
java.lang.String name,
java.lang.String type,
int start,
int end)
Returns a range of all the object relationships where objectDefinitionId1 = ? and objectDefinitionId2 = ? and name = ? and type = ?.
|
static java.util.List<ObjectRelationship> |
findByODI1_ODI2_N_T(long objectDefinitionId1,
long objectDefinitionId2,
java.lang.String name,
java.lang.String type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns an ordered range of all the object relationships where objectDefinitionId1 = ? and objectDefinitionId2 = ? and name = ? and type = ?.
|
static java.util.List<ObjectRelationship> |
findByODI1_ODI2_N_T(long objectDefinitionId1,
long objectDefinitionId2,
java.lang.String name,
java.lang.String type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object relationships where objectDefinitionId1 = ? and objectDefinitionId2 = ? and name = ? and type = ?.
|
static ObjectRelationship |
findByPrimaryKey(long objectRelationshipId)
Returns the object relationship with the primary key or throws a
NoSuchObjectRelationshipException if it could not be found. |
static ObjectRelationship |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the first object relationship in the ordered set where uuid = ? and companyId = ?.
|
static ObjectRelationship |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the last object relationship in the ordered set where uuid = ? and companyId = ?.
|
static ObjectRelationship[] |
findByUuid_C_PrevAndNext(long objectRelationshipId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the object relationships before and after the current object relationship in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<ObjectRelationship> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the object relationships where uuid = ? and companyId = ?.
|
static java.util.List<ObjectRelationship> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the object relationships where uuid = ? and companyId = ?.
|
static java.util.List<ObjectRelationship> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns an ordered range of all the object relationships where uuid = ? and companyId = ?.
|
static java.util.List<ObjectRelationship> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object relationships where uuid = ? and companyId = ?.
|
static ObjectRelationship |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the first object relationship in the ordered set where uuid = ?.
|
static ObjectRelationship |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the last object relationship in the ordered set where uuid = ?.
|
static ObjectRelationship[] |
findByUuid_PrevAndNext(long objectRelationshipId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns the object relationships before and after the current object relationship in the ordered set where uuid = ?.
|
static java.util.List<ObjectRelationship> |
findByUuid(java.lang.String uuid)
Returns all the object relationships where uuid = ?.
|
static java.util.List<ObjectRelationship> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the object relationships where uuid = ?.
|
static java.util.List<ObjectRelationship> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
Returns an ordered range of all the object relationships where uuid = ?.
|
static java.util.List<ObjectRelationship> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object relationships where uuid = ?.
|
static java.util.List<ObjectRelationship> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ObjectRelationship> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ObjectRelationship> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator) |
static ObjectRelationshipPersistence |
getPersistence() |
static ObjectRelationship |
remove(long objectRelationshipId)
Removes the object relationship with the primary key from the database.
|
static void |
removeAll()
Removes all the object relationships from the database.
|
static void |
removeByObjectDefinitionId1(long objectDefinitionId1)
Removes all the object relationships where objectDefinitionId1 = ? from the database.
|
static void |
removeByObjectDefinitionId2(long objectDefinitionId2)
Removes all the object relationships where objectDefinitionId2 = ? from the database.
|
static ObjectRelationship |
removeByObjectFieldId2(long objectFieldId2)
Removes the object relationship where objectFieldId2 = ? from the database.
|
static ObjectRelationship |
removeByODI1_N(long objectDefinitionId1,
java.lang.String name)
Removes the object relationship where objectDefinitionId1 = ? and name = ? from the database.
|
static ObjectRelationship |
removeByODI1_ODI2_N_R_T(long objectDefinitionId1,
long objectDefinitionId2,
java.lang.String name,
boolean reverse,
java.lang.String type)
Removes the object relationship where objectDefinitionId1 = ? and objectDefinitionId2 = ? and name = ? and reverse = ? and type = ? from the database.
|
static void |
removeByODI1_ODI2_N_T(long objectDefinitionId1,
long objectDefinitionId2,
java.lang.String name,
java.lang.String type)
Removes all the object relationships where objectDefinitionId1 = ? and objectDefinitionId2 = ? and name = ? and type = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the object relationships where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the object relationships where uuid = ? from the database.
|
static ObjectRelationship |
update(ObjectRelationship objectRelationship) |
static ObjectRelationship |
update(ObjectRelationship objectRelationship,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ObjectRelationship |
updateImpl(ObjectRelationship objectRelationship) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ObjectRelationship objectRelationship)
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,ObjectRelationship> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ObjectRelationship> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ObjectRelationship> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ObjectRelationship> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ObjectRelationship update(ObjectRelationship objectRelationship)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ObjectRelationship update(ObjectRelationship objectRelationship, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ObjectRelationship> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectRelationship> 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 ObjectRelationshipModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (not inclusive)public static java.util.List<ObjectRelationship> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> 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 ObjectRelationshipModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectRelationship> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> 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 ObjectRelationshipModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectRelationship findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator) throws NoSuchObjectRelationshipException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectRelationshipException
- if a matching object relationship could not be foundpublic static ObjectRelationship fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object relationship could not be foundpublic static ObjectRelationship findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator) throws NoSuchObjectRelationshipException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectRelationshipException
- if a matching object relationship could not be foundpublic static ObjectRelationship fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object relationship could not be foundpublic static ObjectRelationship[] findByUuid_PrevAndNext(long objectRelationshipId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator) throws NoSuchObjectRelationshipException
objectRelationshipId
- the primary key of the current object relationshipuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectRelationshipException
- if a object relationship 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 java.util.List<ObjectRelationship> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectRelationship> 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 ObjectRelationshipModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (not inclusive)public static java.util.List<ObjectRelationship> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> 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 ObjectRelationshipModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectRelationship> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> 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 ObjectRelationshipModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectRelationship findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator) throws NoSuchObjectRelationshipException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectRelationshipException
- if a matching object relationship could not be foundpublic static ObjectRelationship fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object relationship could not be foundpublic static ObjectRelationship findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator) throws NoSuchObjectRelationshipException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectRelationshipException
- if a matching object relationship could not be foundpublic static ObjectRelationship fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object relationship could not be foundpublic static ObjectRelationship[] findByUuid_C_PrevAndNext(long objectRelationshipId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator) throws NoSuchObjectRelationshipException
objectRelationshipId
- the primary key of the current object relationshipuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectRelationshipException
- if a object relationship 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<ObjectRelationship> findByObjectDefinitionId1(long objectDefinitionId1)
objectDefinitionId1
- the object definition id1public static java.util.List<ObjectRelationship> findByObjectDefinitionId1(long objectDefinitionId1, 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 ObjectRelationshipModelImpl
.
objectDefinitionId1
- the object definition id1start
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (not inclusive)public static java.util.List<ObjectRelationship> findByObjectDefinitionId1(long objectDefinitionId1, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> 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 ObjectRelationshipModelImpl
.
objectDefinitionId1
- the object definition id1start
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectRelationship> findByObjectDefinitionId1(long objectDefinitionId1, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> 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 ObjectRelationshipModelImpl
.
objectDefinitionId1
- the object definition id1start
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectRelationship findByObjectDefinitionId1_First(long objectDefinitionId1, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator) throws NoSuchObjectRelationshipException
objectDefinitionId1
- the object definition id1orderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectRelationshipException
- if a matching object relationship could not be foundpublic static ObjectRelationship fetchByObjectDefinitionId1_First(long objectDefinitionId1, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
objectDefinitionId1
- the object definition id1orderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object relationship could not be foundpublic static ObjectRelationship findByObjectDefinitionId1_Last(long objectDefinitionId1, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator) throws NoSuchObjectRelationshipException
objectDefinitionId1
- the object definition id1orderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectRelationshipException
- if a matching object relationship could not be foundpublic static ObjectRelationship fetchByObjectDefinitionId1_Last(long objectDefinitionId1, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
objectDefinitionId1
- the object definition id1orderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object relationship could not be foundpublic static ObjectRelationship[] findByObjectDefinitionId1_PrevAndNext(long objectRelationshipId, long objectDefinitionId1, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator) throws NoSuchObjectRelationshipException
objectRelationshipId
- the primary key of the current object relationshipobjectDefinitionId1
- the object definition id1orderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectRelationshipException
- if a object relationship with the primary key could not be foundpublic static void removeByObjectDefinitionId1(long objectDefinitionId1)
objectDefinitionId1
- the object definition id1public static int countByObjectDefinitionId1(long objectDefinitionId1)
objectDefinitionId1
- the object definition id1public static java.util.List<ObjectRelationship> findByObjectDefinitionId2(long objectDefinitionId2)
objectDefinitionId2
- the object definition id2public static java.util.List<ObjectRelationship> findByObjectDefinitionId2(long objectDefinitionId2, 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 ObjectRelationshipModelImpl
.
objectDefinitionId2
- the object definition id2start
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (not inclusive)public static java.util.List<ObjectRelationship> findByObjectDefinitionId2(long objectDefinitionId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> 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 ObjectRelationshipModelImpl
.
objectDefinitionId2
- the object definition id2start
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectRelationship> findByObjectDefinitionId2(long objectDefinitionId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> 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 ObjectRelationshipModelImpl
.
objectDefinitionId2
- the object definition id2start
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectRelationship findByObjectDefinitionId2_First(long objectDefinitionId2, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator) throws NoSuchObjectRelationshipException
objectDefinitionId2
- the object definition id2orderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectRelationshipException
- if a matching object relationship could not be foundpublic static ObjectRelationship fetchByObjectDefinitionId2_First(long objectDefinitionId2, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
objectDefinitionId2
- the object definition id2orderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object relationship could not be foundpublic static ObjectRelationship findByObjectDefinitionId2_Last(long objectDefinitionId2, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator) throws NoSuchObjectRelationshipException
objectDefinitionId2
- the object definition id2orderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectRelationshipException
- if a matching object relationship could not be foundpublic static ObjectRelationship fetchByObjectDefinitionId2_Last(long objectDefinitionId2, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
objectDefinitionId2
- the object definition id2orderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object relationship could not be foundpublic static ObjectRelationship[] findByObjectDefinitionId2_PrevAndNext(long objectRelationshipId, long objectDefinitionId2, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator) throws NoSuchObjectRelationshipException
objectRelationshipId
- the primary key of the current object relationshipobjectDefinitionId2
- the object definition id2orderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectRelationshipException
- if a object relationship with the primary key could not be foundpublic static void removeByObjectDefinitionId2(long objectDefinitionId2)
objectDefinitionId2
- the object definition id2public static int countByObjectDefinitionId2(long objectDefinitionId2)
objectDefinitionId2
- the object definition id2public static ObjectRelationship findByObjectFieldId2(long objectFieldId2) throws NoSuchObjectRelationshipException
NoSuchObjectRelationshipException
if it could not be found.objectFieldId2
- the object field id2NoSuchObjectRelationshipException
- if a matching object relationship could not be foundpublic static ObjectRelationship fetchByObjectFieldId2(long objectFieldId2)
null
if it could not be found. Uses the finder cache.objectFieldId2
- the object field id2null
if a matching object relationship could not be foundpublic static ObjectRelationship fetchByObjectFieldId2(long objectFieldId2, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.objectFieldId2
- the object field id2useFinderCache
- whether to use the finder cachenull
if a matching object relationship could not be foundpublic static ObjectRelationship removeByObjectFieldId2(long objectFieldId2) throws NoSuchObjectRelationshipException
objectFieldId2
- the object field id2NoSuchObjectRelationshipException
public static int countByObjectFieldId2(long objectFieldId2)
objectFieldId2
- the object field id2public static ObjectRelationship findByODI1_N(long objectDefinitionId1, java.lang.String name) throws NoSuchObjectRelationshipException
NoSuchObjectRelationshipException
if it could not be found.objectDefinitionId1
- the object definition id1name
- the nameNoSuchObjectRelationshipException
- if a matching object relationship could not be foundpublic static ObjectRelationship fetchByODI1_N(long objectDefinitionId1, java.lang.String name)
null
if it could not be found. Uses the finder cache.objectDefinitionId1
- the object definition id1name
- the namenull
if a matching object relationship could not be foundpublic static ObjectRelationship fetchByODI1_N(long objectDefinitionId1, java.lang.String name, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.objectDefinitionId1
- the object definition id1name
- the nameuseFinderCache
- whether to use the finder cachenull
if a matching object relationship could not be foundpublic static ObjectRelationship removeByODI1_N(long objectDefinitionId1, java.lang.String name) throws NoSuchObjectRelationshipException
objectDefinitionId1
- the object definition id1name
- the nameNoSuchObjectRelationshipException
public static int countByODI1_N(long objectDefinitionId1, java.lang.String name)
objectDefinitionId1
- the object definition id1name
- the namepublic static java.util.List<ObjectRelationship> findByODI1_ODI2_N_T(long objectDefinitionId1, long objectDefinitionId2, java.lang.String name, java.lang.String type)
objectDefinitionId1
- the object definition id1objectDefinitionId2
- the object definition id2name
- the nametype
- the typepublic static java.util.List<ObjectRelationship> findByODI1_ODI2_N_T(long objectDefinitionId1, long objectDefinitionId2, java.lang.String name, java.lang.String type, 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 ObjectRelationshipModelImpl
.
objectDefinitionId1
- the object definition id1objectDefinitionId2
- the object definition id2name
- the nametype
- the typestart
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (not inclusive)public static java.util.List<ObjectRelationship> findByODI1_ODI2_N_T(long objectDefinitionId1, long objectDefinitionId2, java.lang.String name, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> 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 ObjectRelationshipModelImpl
.
objectDefinitionId1
- the object definition id1objectDefinitionId2
- the object definition id2name
- the nametype
- the typestart
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectRelationship> findByODI1_ODI2_N_T(long objectDefinitionId1, long objectDefinitionId2, java.lang.String name, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> 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 ObjectRelationshipModelImpl
.
objectDefinitionId1
- the object definition id1objectDefinitionId2
- the object definition id2name
- the nametype
- the typestart
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectRelationship findByODI1_ODI2_N_T_First(long objectDefinitionId1, long objectDefinitionId2, java.lang.String name, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator) throws NoSuchObjectRelationshipException
objectDefinitionId1
- the object definition id1objectDefinitionId2
- the object definition id2name
- the nametype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectRelationshipException
- if a matching object relationship could not be foundpublic static ObjectRelationship fetchByODI1_ODI2_N_T_First(long objectDefinitionId1, long objectDefinitionId2, java.lang.String name, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
objectDefinitionId1
- the object definition id1objectDefinitionId2
- the object definition id2name
- the nametype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object relationship could not be foundpublic static ObjectRelationship findByODI1_ODI2_N_T_Last(long objectDefinitionId1, long objectDefinitionId2, java.lang.String name, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator) throws NoSuchObjectRelationshipException
objectDefinitionId1
- the object definition id1objectDefinitionId2
- the object definition id2name
- the nametype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectRelationshipException
- if a matching object relationship could not be foundpublic static ObjectRelationship fetchByODI1_ODI2_N_T_Last(long objectDefinitionId1, long objectDefinitionId2, java.lang.String name, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator)
objectDefinitionId1
- the object definition id1objectDefinitionId2
- the object definition id2name
- the nametype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object relationship could not be foundpublic static ObjectRelationship[] findByODI1_ODI2_N_T_PrevAndNext(long objectRelationshipId, long objectDefinitionId1, long objectDefinitionId2, java.lang.String name, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> orderByComparator) throws NoSuchObjectRelationshipException
objectRelationshipId
- the primary key of the current object relationshipobjectDefinitionId1
- the object definition id1objectDefinitionId2
- the object definition id2name
- the nametype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectRelationshipException
- if a object relationship with the primary key could not be foundpublic static void removeByODI1_ODI2_N_T(long objectDefinitionId1, long objectDefinitionId2, java.lang.String name, java.lang.String type)
objectDefinitionId1
- the object definition id1objectDefinitionId2
- the object definition id2name
- the nametype
- the typepublic static int countByODI1_ODI2_N_T(long objectDefinitionId1, long objectDefinitionId2, java.lang.String name, java.lang.String type)
objectDefinitionId1
- the object definition id1objectDefinitionId2
- the object definition id2name
- the nametype
- the typepublic static ObjectRelationship findByODI1_ODI2_N_R_T(long objectDefinitionId1, long objectDefinitionId2, java.lang.String name, boolean reverse, java.lang.String type) throws NoSuchObjectRelationshipException
NoSuchObjectRelationshipException
if it could not be found.objectDefinitionId1
- the object definition id1objectDefinitionId2
- the object definition id2name
- the namereverse
- the reversetype
- the typeNoSuchObjectRelationshipException
- if a matching object relationship could not be foundpublic static ObjectRelationship fetchByODI1_ODI2_N_R_T(long objectDefinitionId1, long objectDefinitionId2, java.lang.String name, boolean reverse, java.lang.String type)
null
if it could not be found. Uses the finder cache.objectDefinitionId1
- the object definition id1objectDefinitionId2
- the object definition id2name
- the namereverse
- the reversetype
- the typenull
if a matching object relationship could not be foundpublic static ObjectRelationship fetchByODI1_ODI2_N_R_T(long objectDefinitionId1, long objectDefinitionId2, java.lang.String name, boolean reverse, java.lang.String type, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.objectDefinitionId1
- the object definition id1objectDefinitionId2
- the object definition id2name
- the namereverse
- the reversetype
- the typeuseFinderCache
- whether to use the finder cachenull
if a matching object relationship could not be foundpublic static ObjectRelationship removeByODI1_ODI2_N_R_T(long objectDefinitionId1, long objectDefinitionId2, java.lang.String name, boolean reverse, java.lang.String type) throws NoSuchObjectRelationshipException
objectDefinitionId1
- the object definition id1objectDefinitionId2
- the object definition id2name
- the namereverse
- the reversetype
- the typeNoSuchObjectRelationshipException
public static int countByODI1_ODI2_N_R_T(long objectDefinitionId1, long objectDefinitionId2, java.lang.String name, boolean reverse, java.lang.String type)
objectDefinitionId1
- the object definition id1objectDefinitionId2
- the object definition id2name
- the namereverse
- the reversetype
- the typepublic static void cacheResult(ObjectRelationship objectRelationship)
objectRelationship
- the object relationshippublic static void cacheResult(java.util.List<ObjectRelationship> objectRelationships)
objectRelationships
- the object relationshipspublic static ObjectRelationship create(long objectRelationshipId)
objectRelationshipId
- the primary key for the new object relationshippublic static ObjectRelationship remove(long objectRelationshipId) throws NoSuchObjectRelationshipException
objectRelationshipId
- the primary key of the object relationshipNoSuchObjectRelationshipException
- if a object relationship with the primary key could not be foundpublic static ObjectRelationship updateImpl(ObjectRelationship objectRelationship)
public static ObjectRelationship findByPrimaryKey(long objectRelationshipId) throws NoSuchObjectRelationshipException
NoSuchObjectRelationshipException
if it could not be found.objectRelationshipId
- the primary key of the object relationshipNoSuchObjectRelationshipException
- if a object relationship with the primary key could not be foundpublic static ObjectRelationship fetchByPrimaryKey(long objectRelationshipId)
null
if it could not be found.objectRelationshipId
- the primary key of the object relationshipnull
if a object relationship with the primary key could not be foundpublic static java.util.List<ObjectRelationship> findAll()
public static java.util.List<ObjectRelationship> 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 ObjectRelationshipModelImpl
.
start
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (not inclusive)public static java.util.List<ObjectRelationship> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> 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 ObjectRelationshipModelImpl
.
start
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectRelationship> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectRelationship> 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 ObjectRelationshipModelImpl
.
start
- the lower bound of the range of object relationshipsend
- the upper bound of the range of object relationships (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 ObjectRelationshipPersistence getPersistence()