public class ObjectLayoutRowUtil
extends java.lang.Object
com.liferay.object.service.persistence.impl.ObjectLayoutRowPersistenceImpl
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
ObjectLayoutRowPersistence
Constructor and Description |
---|
ObjectLayoutRowUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ObjectLayoutRow> objectLayoutRows)
Caches the object layout rows in the entity cache if it is enabled.
|
static void |
cacheResult(ObjectLayoutRow objectLayoutRow)
Caches the object layout row in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ObjectLayoutRow objectLayoutRow) |
static int |
countAll()
Returns the number of object layout rows.
|
static int |
countByObjectLayoutBoxId(long objectLayoutBoxId)
Returns the number of object layout rows where objectLayoutBoxId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of object layout rows where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of object layout rows where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ObjectLayoutRow |
create(long objectLayoutRowId)
Creates a new object layout row with the primary key.
|
static ObjectLayoutRow |
fetchByObjectLayoutBoxId_First(long objectLayoutBoxId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns the first object layout row in the ordered set where objectLayoutBoxId = ?.
|
static ObjectLayoutRow |
fetchByObjectLayoutBoxId_Last(long objectLayoutBoxId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns the last object layout row in the ordered set where objectLayoutBoxId = ?.
|
static ObjectLayoutRow |
fetchByPrimaryKey(long objectLayoutRowId)
Returns the object layout row with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ObjectLayoutRow> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ObjectLayoutRow |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns the first object layout row in the ordered set where uuid = ? and companyId = ?.
|
static ObjectLayoutRow |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns the last object layout row in the ordered set where uuid = ? and companyId = ?.
|
static ObjectLayoutRow |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns the first object layout row in the ordered set where uuid = ?.
|
static ObjectLayoutRow |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns the last object layout row in the ordered set where uuid = ?.
|
static java.util.List<ObjectLayoutRow> |
findAll()
Returns all the object layout rows.
|
static java.util.List<ObjectLayoutRow> |
findAll(int start,
int end)
Returns a range of all the object layout rows.
|
static java.util.List<ObjectLayoutRow> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns an ordered range of all the object layout rows.
|
static java.util.List<ObjectLayoutRow> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object layout rows.
|
static ObjectLayoutRow |
findByObjectLayoutBoxId_First(long objectLayoutBoxId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns the first object layout row in the ordered set where objectLayoutBoxId = ?.
|
static ObjectLayoutRow |
findByObjectLayoutBoxId_Last(long objectLayoutBoxId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns the last object layout row in the ordered set where objectLayoutBoxId = ?.
|
static ObjectLayoutRow[] |
findByObjectLayoutBoxId_PrevAndNext(long objectLayoutRowId,
long objectLayoutBoxId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns the object layout rows before and after the current object layout row in the ordered set where objectLayoutBoxId = ?.
|
static java.util.List<ObjectLayoutRow> |
findByObjectLayoutBoxId(long objectLayoutBoxId)
Returns all the object layout rows where objectLayoutBoxId = ?.
|
static java.util.List<ObjectLayoutRow> |
findByObjectLayoutBoxId(long objectLayoutBoxId,
int start,
int end)
Returns a range of all the object layout rows where objectLayoutBoxId = ?.
|
static java.util.List<ObjectLayoutRow> |
findByObjectLayoutBoxId(long objectLayoutBoxId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns an ordered range of all the object layout rows where objectLayoutBoxId = ?.
|
static java.util.List<ObjectLayoutRow> |
findByObjectLayoutBoxId(long objectLayoutBoxId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object layout rows where objectLayoutBoxId = ?.
|
static ObjectLayoutRow |
findByPrimaryKey(long objectLayoutRowId)
Returns the object layout row with the primary key or throws a
NoSuchObjectLayoutRowException if it could not be found. |
static ObjectLayoutRow |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns the first object layout row in the ordered set where uuid = ? and companyId = ?.
|
static ObjectLayoutRow |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns the last object layout row in the ordered set where uuid = ? and companyId = ?.
|
static ObjectLayoutRow[] |
findByUuid_C_PrevAndNext(long objectLayoutRowId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns the object layout rows before and after the current object layout row in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<ObjectLayoutRow> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the object layout rows where uuid = ? and companyId = ?.
|
static java.util.List<ObjectLayoutRow> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the object layout rows where uuid = ? and companyId = ?.
|
static java.util.List<ObjectLayoutRow> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns an ordered range of all the object layout rows where uuid = ? and companyId = ?.
|
static java.util.List<ObjectLayoutRow> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object layout rows where uuid = ? and companyId = ?.
|
static ObjectLayoutRow |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns the first object layout row in the ordered set where uuid = ?.
|
static ObjectLayoutRow |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns the last object layout row in the ordered set where uuid = ?.
|
static ObjectLayoutRow[] |
findByUuid_PrevAndNext(long objectLayoutRowId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns the object layout rows before and after the current object layout row in the ordered set where uuid = ?.
|
static java.util.List<ObjectLayoutRow> |
findByUuid(java.lang.String uuid)
Returns all the object layout rows where uuid = ?.
|
static java.util.List<ObjectLayoutRow> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the object layout rows where uuid = ?.
|
static java.util.List<ObjectLayoutRow> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
Returns an ordered range of all the object layout rows where uuid = ?.
|
static java.util.List<ObjectLayoutRow> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object layout rows where uuid = ?.
|
static java.util.List<ObjectLayoutRow> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ObjectLayoutRow> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ObjectLayoutRow> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator) |
static ObjectLayoutRowPersistence |
getPersistence() |
static ObjectLayoutRow |
remove(long objectLayoutRowId)
Removes the object layout row with the primary key from the database.
|
static void |
removeAll()
Removes all the object layout rows from the database.
|
static void |
removeByObjectLayoutBoxId(long objectLayoutBoxId)
Removes all the object layout rows where objectLayoutBoxId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the object layout rows where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the object layout rows where uuid = ? from the database.
|
static ObjectLayoutRow |
update(ObjectLayoutRow objectLayoutRow) |
static ObjectLayoutRow |
update(ObjectLayoutRow objectLayoutRow,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ObjectLayoutRow |
updateImpl(ObjectLayoutRow objectLayoutRow) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ObjectLayoutRow objectLayoutRow)
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,ObjectLayoutRow> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ObjectLayoutRow> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ObjectLayoutRow> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ObjectLayoutRow> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ObjectLayoutRow update(ObjectLayoutRow objectLayoutRow)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ObjectLayoutRow update(ObjectLayoutRow objectLayoutRow, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ObjectLayoutRow> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectLayoutRow> 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 ObjectLayoutRowModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object layout rowsend
- the upper bound of the range of object layout rows (not inclusive)public static java.util.List<ObjectLayoutRow> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> 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 ObjectLayoutRowModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object layout rowsend
- the upper bound of the range of object layout rows (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectLayoutRow> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> 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 ObjectLayoutRowModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object layout rowsend
- the upper bound of the range of object layout rows (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectLayoutRow findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator) throws NoSuchObjectLayoutRowException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutRowException
- if a matching object layout row could not be foundpublic static ObjectLayoutRow fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout row could not be foundpublic static ObjectLayoutRow findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator) throws NoSuchObjectLayoutRowException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutRowException
- if a matching object layout row could not be foundpublic static ObjectLayoutRow fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout row could not be foundpublic static ObjectLayoutRow[] findByUuid_PrevAndNext(long objectLayoutRowId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator) throws NoSuchObjectLayoutRowException
objectLayoutRowId
- the primary key of the current object layout rowuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutRowException
- if a object layout row 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<ObjectLayoutRow> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectLayoutRow> 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 ObjectLayoutRowModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object layout rowsend
- the upper bound of the range of object layout rows (not inclusive)public static java.util.List<ObjectLayoutRow> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> 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 ObjectLayoutRowModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object layout rowsend
- the upper bound of the range of object layout rows (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectLayoutRow> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> 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 ObjectLayoutRowModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object layout rowsend
- the upper bound of the range of object layout rows (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectLayoutRow findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator) throws NoSuchObjectLayoutRowException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutRowException
- if a matching object layout row could not be foundpublic static ObjectLayoutRow fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout row could not be foundpublic static ObjectLayoutRow findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator) throws NoSuchObjectLayoutRowException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutRowException
- if a matching object layout row could not be foundpublic static ObjectLayoutRow fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout row could not be foundpublic static ObjectLayoutRow[] findByUuid_C_PrevAndNext(long objectLayoutRowId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator) throws NoSuchObjectLayoutRowException
objectLayoutRowId
- the primary key of the current object layout rowuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutRowException
- if a object layout row 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<ObjectLayoutRow> findByObjectLayoutBoxId(long objectLayoutBoxId)
objectLayoutBoxId
- the object layout box IDpublic static java.util.List<ObjectLayoutRow> findByObjectLayoutBoxId(long objectLayoutBoxId, 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 ObjectLayoutRowModelImpl
.
objectLayoutBoxId
- the object layout box IDstart
- the lower bound of the range of object layout rowsend
- the upper bound of the range of object layout rows (not inclusive)public static java.util.List<ObjectLayoutRow> findByObjectLayoutBoxId(long objectLayoutBoxId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> 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 ObjectLayoutRowModelImpl
.
objectLayoutBoxId
- the object layout box IDstart
- the lower bound of the range of object layout rowsend
- the upper bound of the range of object layout rows (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectLayoutRow> findByObjectLayoutBoxId(long objectLayoutBoxId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> 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 ObjectLayoutRowModelImpl
.
objectLayoutBoxId
- the object layout box IDstart
- the lower bound of the range of object layout rowsend
- the upper bound of the range of object layout rows (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectLayoutRow findByObjectLayoutBoxId_First(long objectLayoutBoxId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator) throws NoSuchObjectLayoutRowException
objectLayoutBoxId
- the object layout box IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutRowException
- if a matching object layout row could not be foundpublic static ObjectLayoutRow fetchByObjectLayoutBoxId_First(long objectLayoutBoxId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
objectLayoutBoxId
- the object layout box IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout row could not be foundpublic static ObjectLayoutRow findByObjectLayoutBoxId_Last(long objectLayoutBoxId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator) throws NoSuchObjectLayoutRowException
objectLayoutBoxId
- the object layout box IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutRowException
- if a matching object layout row could not be foundpublic static ObjectLayoutRow fetchByObjectLayoutBoxId_Last(long objectLayoutBoxId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator)
objectLayoutBoxId
- the object layout box IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout row could not be foundpublic static ObjectLayoutRow[] findByObjectLayoutBoxId_PrevAndNext(long objectLayoutRowId, long objectLayoutBoxId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> orderByComparator) throws NoSuchObjectLayoutRowException
objectLayoutRowId
- the primary key of the current object layout rowobjectLayoutBoxId
- the object layout box IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutRowException
- if a object layout row with the primary key could not be foundpublic static void removeByObjectLayoutBoxId(long objectLayoutBoxId)
objectLayoutBoxId
- the object layout box IDpublic static int countByObjectLayoutBoxId(long objectLayoutBoxId)
objectLayoutBoxId
- the object layout box IDpublic static void cacheResult(ObjectLayoutRow objectLayoutRow)
objectLayoutRow
- the object layout rowpublic static void cacheResult(java.util.List<ObjectLayoutRow> objectLayoutRows)
objectLayoutRows
- the object layout rowspublic static ObjectLayoutRow create(long objectLayoutRowId)
objectLayoutRowId
- the primary key for the new object layout rowpublic static ObjectLayoutRow remove(long objectLayoutRowId) throws NoSuchObjectLayoutRowException
objectLayoutRowId
- the primary key of the object layout rowNoSuchObjectLayoutRowException
- if a object layout row with the primary key could not be foundpublic static ObjectLayoutRow updateImpl(ObjectLayoutRow objectLayoutRow)
public static ObjectLayoutRow findByPrimaryKey(long objectLayoutRowId) throws NoSuchObjectLayoutRowException
NoSuchObjectLayoutRowException
if it could not be found.objectLayoutRowId
- the primary key of the object layout rowNoSuchObjectLayoutRowException
- if a object layout row with the primary key could not be foundpublic static ObjectLayoutRow fetchByPrimaryKey(long objectLayoutRowId)
null
if it could not be found.objectLayoutRowId
- the primary key of the object layout rownull
if a object layout row with the primary key could not be foundpublic static java.util.List<ObjectLayoutRow> findAll()
public static java.util.List<ObjectLayoutRow> 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 ObjectLayoutRowModelImpl
.
start
- the lower bound of the range of object layout rowsend
- the upper bound of the range of object layout rows (not inclusive)public static java.util.List<ObjectLayoutRow> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> 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 ObjectLayoutRowModelImpl
.
start
- the lower bound of the range of object layout rowsend
- the upper bound of the range of object layout rows (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectLayoutRow> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutRow> 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 ObjectLayoutRowModelImpl
.
start
- the lower bound of the range of object layout rowsend
- the upper bound of the range of object layout rows (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 ObjectLayoutRowPersistence getPersistence()