public class ObjectLayoutBoxUtil
extends java.lang.Object
com.liferay.object.service.persistence.impl.ObjectLayoutBoxPersistenceImpl
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
ObjectLayoutBoxPersistence
Constructor and Description |
---|
ObjectLayoutBoxUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ObjectLayoutBox> objectLayoutBoxes)
Caches the object layout boxes in the entity cache if it is enabled.
|
static void |
cacheResult(ObjectLayoutBox objectLayoutBox)
Caches the object layout box in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ObjectLayoutBox objectLayoutBox) |
static int |
countAll()
Returns the number of object layout boxes.
|
static int |
countByObjectLayoutTabId(long objectLayoutTabId)
Returns the number of object layout boxes where objectLayoutTabId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of object layout boxes where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of object layout boxes where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ObjectLayoutBox |
create(long objectLayoutBoxId)
Creates a new object layout box with the primary key.
|
static ObjectLayoutBox |
fetchByObjectLayoutTabId_First(long objectLayoutTabId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns the first object layout box in the ordered set where objectLayoutTabId = ?.
|
static ObjectLayoutBox |
fetchByObjectLayoutTabId_Last(long objectLayoutTabId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns the last object layout box in the ordered set where objectLayoutTabId = ?.
|
static ObjectLayoutBox |
fetchByPrimaryKey(long objectLayoutBoxId)
Returns the object layout box with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ObjectLayoutBox> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ObjectLayoutBox |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns the first object layout box in the ordered set where uuid = ? and companyId = ?.
|
static ObjectLayoutBox |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns the last object layout box in the ordered set where uuid = ? and companyId = ?.
|
static ObjectLayoutBox |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns the first object layout box in the ordered set where uuid = ?.
|
static ObjectLayoutBox |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns the last object layout box in the ordered set where uuid = ?.
|
static java.util.List<ObjectLayoutBox> |
findAll()
Returns all the object layout boxes.
|
static java.util.List<ObjectLayoutBox> |
findAll(int start,
int end)
Returns a range of all the object layout boxes.
|
static java.util.List<ObjectLayoutBox> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns an ordered range of all the object layout boxes.
|
static java.util.List<ObjectLayoutBox> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object layout boxes.
|
static ObjectLayoutBox |
findByObjectLayoutTabId_First(long objectLayoutTabId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns the first object layout box in the ordered set where objectLayoutTabId = ?.
|
static ObjectLayoutBox |
findByObjectLayoutTabId_Last(long objectLayoutTabId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns the last object layout box in the ordered set where objectLayoutTabId = ?.
|
static ObjectLayoutBox[] |
findByObjectLayoutTabId_PrevAndNext(long objectLayoutBoxId,
long objectLayoutTabId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns the object layout boxes before and after the current object layout box in the ordered set where objectLayoutTabId = ?.
|
static java.util.List<ObjectLayoutBox> |
findByObjectLayoutTabId(long objectLayoutTabId)
Returns all the object layout boxes where objectLayoutTabId = ?.
|
static java.util.List<ObjectLayoutBox> |
findByObjectLayoutTabId(long objectLayoutTabId,
int start,
int end)
Returns a range of all the object layout boxes where objectLayoutTabId = ?.
|
static java.util.List<ObjectLayoutBox> |
findByObjectLayoutTabId(long objectLayoutTabId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns an ordered range of all the object layout boxes where objectLayoutTabId = ?.
|
static java.util.List<ObjectLayoutBox> |
findByObjectLayoutTabId(long objectLayoutTabId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object layout boxes where objectLayoutTabId = ?.
|
static ObjectLayoutBox |
findByPrimaryKey(long objectLayoutBoxId)
Returns the object layout box with the primary key or throws a
NoSuchObjectLayoutBoxException if it could not be found. |
static ObjectLayoutBox |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns the first object layout box in the ordered set where uuid = ? and companyId = ?.
|
static ObjectLayoutBox |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns the last object layout box in the ordered set where uuid = ? and companyId = ?.
|
static ObjectLayoutBox[] |
findByUuid_C_PrevAndNext(long objectLayoutBoxId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns the object layout boxes before and after the current object layout box in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<ObjectLayoutBox> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the object layout boxes where uuid = ? and companyId = ?.
|
static java.util.List<ObjectLayoutBox> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the object layout boxes where uuid = ? and companyId = ?.
|
static java.util.List<ObjectLayoutBox> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns an ordered range of all the object layout boxes where uuid = ? and companyId = ?.
|
static java.util.List<ObjectLayoutBox> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object layout boxes where uuid = ? and companyId = ?.
|
static ObjectLayoutBox |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns the first object layout box in the ordered set where uuid = ?.
|
static ObjectLayoutBox |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns the last object layout box in the ordered set where uuid = ?.
|
static ObjectLayoutBox[] |
findByUuid_PrevAndNext(long objectLayoutBoxId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns the object layout boxes before and after the current object layout box in the ordered set where uuid = ?.
|
static java.util.List<ObjectLayoutBox> |
findByUuid(java.lang.String uuid)
Returns all the object layout boxes where uuid = ?.
|
static java.util.List<ObjectLayoutBox> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the object layout boxes where uuid = ?.
|
static java.util.List<ObjectLayoutBox> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
Returns an ordered range of all the object layout boxes where uuid = ?.
|
static java.util.List<ObjectLayoutBox> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object layout boxes where uuid = ?.
|
static java.util.List<ObjectLayoutBox> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ObjectLayoutBox> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ObjectLayoutBox> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator) |
static ObjectLayoutBoxPersistence |
getPersistence() |
static ObjectLayoutBox |
remove(long objectLayoutBoxId)
Removes the object layout box with the primary key from the database.
|
static void |
removeAll()
Removes all the object layout boxes from the database.
|
static void |
removeByObjectLayoutTabId(long objectLayoutTabId)
Removes all the object layout boxes where objectLayoutTabId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the object layout boxes where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the object layout boxes where uuid = ? from the database.
|
static ObjectLayoutBox |
update(ObjectLayoutBox objectLayoutBox) |
static ObjectLayoutBox |
update(ObjectLayoutBox objectLayoutBox,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ObjectLayoutBox |
updateImpl(ObjectLayoutBox objectLayoutBox) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ObjectLayoutBox objectLayoutBox)
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,ObjectLayoutBox> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ObjectLayoutBox> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ObjectLayoutBox> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ObjectLayoutBox> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ObjectLayoutBox update(ObjectLayoutBox objectLayoutBox)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ObjectLayoutBox update(ObjectLayoutBox objectLayoutBox, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ObjectLayoutBox> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectLayoutBox> 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 ObjectLayoutBoxModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object layout boxesend
- the upper bound of the range of object layout boxes (not inclusive)public static java.util.List<ObjectLayoutBox> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> 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 ObjectLayoutBoxModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object layout boxesend
- the upper bound of the range of object layout boxes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectLayoutBox> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> 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 ObjectLayoutBoxModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object layout boxesend
- the upper bound of the range of object layout boxes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectLayoutBox findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator) throws NoSuchObjectLayoutBoxException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutBoxException
- if a matching object layout box could not be foundpublic static ObjectLayoutBox fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout box could not be foundpublic static ObjectLayoutBox findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator) throws NoSuchObjectLayoutBoxException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutBoxException
- if a matching object layout box could not be foundpublic static ObjectLayoutBox fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout box could not be foundpublic static ObjectLayoutBox[] findByUuid_PrevAndNext(long objectLayoutBoxId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator) throws NoSuchObjectLayoutBoxException
objectLayoutBoxId
- the primary key of the current object layout boxuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutBoxException
- if a object layout box 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<ObjectLayoutBox> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectLayoutBox> 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 ObjectLayoutBoxModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object layout boxesend
- the upper bound of the range of object layout boxes (not inclusive)public static java.util.List<ObjectLayoutBox> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> 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 ObjectLayoutBoxModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object layout boxesend
- the upper bound of the range of object layout boxes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectLayoutBox> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> 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 ObjectLayoutBoxModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object layout boxesend
- the upper bound of the range of object layout boxes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectLayoutBox findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator) throws NoSuchObjectLayoutBoxException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutBoxException
- if a matching object layout box could not be foundpublic static ObjectLayoutBox fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout box could not be foundpublic static ObjectLayoutBox findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator) throws NoSuchObjectLayoutBoxException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutBoxException
- if a matching object layout box could not be foundpublic static ObjectLayoutBox fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout box could not be foundpublic static ObjectLayoutBox[] findByUuid_C_PrevAndNext(long objectLayoutBoxId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator) throws NoSuchObjectLayoutBoxException
objectLayoutBoxId
- the primary key of the current object layout boxuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutBoxException
- if a object layout box 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<ObjectLayoutBox> findByObjectLayoutTabId(long objectLayoutTabId)
objectLayoutTabId
- the object layout tab IDpublic static java.util.List<ObjectLayoutBox> findByObjectLayoutTabId(long objectLayoutTabId, 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 ObjectLayoutBoxModelImpl
.
objectLayoutTabId
- the object layout tab IDstart
- the lower bound of the range of object layout boxesend
- the upper bound of the range of object layout boxes (not inclusive)public static java.util.List<ObjectLayoutBox> findByObjectLayoutTabId(long objectLayoutTabId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> 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 ObjectLayoutBoxModelImpl
.
objectLayoutTabId
- the object layout tab IDstart
- the lower bound of the range of object layout boxesend
- the upper bound of the range of object layout boxes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectLayoutBox> findByObjectLayoutTabId(long objectLayoutTabId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> 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 ObjectLayoutBoxModelImpl
.
objectLayoutTabId
- the object layout tab IDstart
- the lower bound of the range of object layout boxesend
- the upper bound of the range of object layout boxes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectLayoutBox findByObjectLayoutTabId_First(long objectLayoutTabId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator) throws NoSuchObjectLayoutBoxException
objectLayoutTabId
- the object layout tab IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutBoxException
- if a matching object layout box could not be foundpublic static ObjectLayoutBox fetchByObjectLayoutTabId_First(long objectLayoutTabId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
objectLayoutTabId
- the object layout tab IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout box could not be foundpublic static ObjectLayoutBox findByObjectLayoutTabId_Last(long objectLayoutTabId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator) throws NoSuchObjectLayoutBoxException
objectLayoutTabId
- the object layout tab IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutBoxException
- if a matching object layout box could not be foundpublic static ObjectLayoutBox fetchByObjectLayoutTabId_Last(long objectLayoutTabId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator)
objectLayoutTabId
- the object layout tab IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout box could not be foundpublic static ObjectLayoutBox[] findByObjectLayoutTabId_PrevAndNext(long objectLayoutBoxId, long objectLayoutTabId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> orderByComparator) throws NoSuchObjectLayoutBoxException
objectLayoutBoxId
- the primary key of the current object layout boxobjectLayoutTabId
- the object layout tab IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutBoxException
- if a object layout box with the primary key could not be foundpublic static void removeByObjectLayoutTabId(long objectLayoutTabId)
objectLayoutTabId
- the object layout tab IDpublic static int countByObjectLayoutTabId(long objectLayoutTabId)
objectLayoutTabId
- the object layout tab IDpublic static void cacheResult(ObjectLayoutBox objectLayoutBox)
objectLayoutBox
- the object layout boxpublic static void cacheResult(java.util.List<ObjectLayoutBox> objectLayoutBoxes)
objectLayoutBoxes
- the object layout boxespublic static ObjectLayoutBox create(long objectLayoutBoxId)
objectLayoutBoxId
- the primary key for the new object layout boxpublic static ObjectLayoutBox remove(long objectLayoutBoxId) throws NoSuchObjectLayoutBoxException
objectLayoutBoxId
- the primary key of the object layout boxNoSuchObjectLayoutBoxException
- if a object layout box with the primary key could not be foundpublic static ObjectLayoutBox updateImpl(ObjectLayoutBox objectLayoutBox)
public static ObjectLayoutBox findByPrimaryKey(long objectLayoutBoxId) throws NoSuchObjectLayoutBoxException
NoSuchObjectLayoutBoxException
if it could not be found.objectLayoutBoxId
- the primary key of the object layout boxNoSuchObjectLayoutBoxException
- if a object layout box with the primary key could not be foundpublic static ObjectLayoutBox fetchByPrimaryKey(long objectLayoutBoxId)
null
if it could not be found.objectLayoutBoxId
- the primary key of the object layout boxnull
if a object layout box with the primary key could not be foundpublic static java.util.List<ObjectLayoutBox> findAll()
public static java.util.List<ObjectLayoutBox> 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 ObjectLayoutBoxModelImpl
.
start
- the lower bound of the range of object layout boxesend
- the upper bound of the range of object layout boxes (not inclusive)public static java.util.List<ObjectLayoutBox> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> 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 ObjectLayoutBoxModelImpl
.
start
- the lower bound of the range of object layout boxesend
- the upper bound of the range of object layout boxes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectLayoutBox> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayoutBox> 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 ObjectLayoutBoxModelImpl
.
start
- the lower bound of the range of object layout boxesend
- the upper bound of the range of object layout boxes (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 ObjectLayoutBoxPersistence getPersistence()