public class ObjectLayoutUtil
extends java.lang.Object
com.liferay.object.service.persistence.impl.ObjectLayoutPersistenceImpl
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
ObjectLayoutPersistence
Constructor and Description |
---|
ObjectLayoutUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ObjectLayout> objectLayouts)
Caches the object layouts in the entity cache if it is enabled.
|
static void |
cacheResult(ObjectLayout objectLayout)
Caches the object layout in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ObjectLayout objectLayout) |
static int |
countAll()
Returns the number of object layouts.
|
static int |
countByObjectDefinitionId(long objectDefinitionId)
Returns the number of object layouts where objectDefinitionId = ?.
|
static int |
countByODI_DOL(long objectDefinitionId,
boolean defaultObjectLayout)
Returns the number of object layouts where objectDefinitionId = ? and defaultObjectLayout = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of object layouts where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of object layouts where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ObjectLayout |
create(long objectLayoutId)
Creates a new object layout with the primary key.
|
static ObjectLayout |
fetchByObjectDefinitionId_First(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the first object layout in the ordered set where objectDefinitionId = ?.
|
static ObjectLayout |
fetchByObjectDefinitionId_Last(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the last object layout in the ordered set where objectDefinitionId = ?.
|
static ObjectLayout |
fetchByODI_DOL_First(long objectDefinitionId,
boolean defaultObjectLayout,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the first object layout in the ordered set where objectDefinitionId = ? and defaultObjectLayout = ?.
|
static ObjectLayout |
fetchByODI_DOL_Last(long objectDefinitionId,
boolean defaultObjectLayout,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the last object layout in the ordered set where objectDefinitionId = ? and defaultObjectLayout = ?.
|
static ObjectLayout |
fetchByPrimaryKey(long objectLayoutId)
Returns the object layout with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ObjectLayout> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ObjectLayout |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the first object layout in the ordered set where uuid = ? and companyId = ?.
|
static ObjectLayout |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the last object layout in the ordered set where uuid = ? and companyId = ?.
|
static ObjectLayout |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the first object layout in the ordered set where uuid = ?.
|
static ObjectLayout |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the last object layout in the ordered set where uuid = ?.
|
static java.util.List<ObjectLayout> |
findAll()
Returns all the object layouts.
|
static java.util.List<ObjectLayout> |
findAll(int start,
int end)
Returns a range of all the object layouts.
|
static java.util.List<ObjectLayout> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns an ordered range of all the object layouts.
|
static java.util.List<ObjectLayout> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object layouts.
|
static ObjectLayout |
findByObjectDefinitionId_First(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the first object layout in the ordered set where objectDefinitionId = ?.
|
static ObjectLayout |
findByObjectDefinitionId_Last(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the last object layout in the ordered set where objectDefinitionId = ?.
|
static ObjectLayout[] |
findByObjectDefinitionId_PrevAndNext(long objectLayoutId,
long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the object layouts before and after the current object layout in the ordered set where objectDefinitionId = ?.
|
static java.util.List<ObjectLayout> |
findByObjectDefinitionId(long objectDefinitionId)
Returns all the object layouts where objectDefinitionId = ?.
|
static java.util.List<ObjectLayout> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end)
Returns a range of all the object layouts where objectDefinitionId = ?.
|
static java.util.List<ObjectLayout> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns an ordered range of all the object layouts where objectDefinitionId = ?.
|
static java.util.List<ObjectLayout> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object layouts where objectDefinitionId = ?.
|
static ObjectLayout |
findByODI_DOL_First(long objectDefinitionId,
boolean defaultObjectLayout,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the first object layout in the ordered set where objectDefinitionId = ? and defaultObjectLayout = ?.
|
static ObjectLayout |
findByODI_DOL_Last(long objectDefinitionId,
boolean defaultObjectLayout,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the last object layout in the ordered set where objectDefinitionId = ? and defaultObjectLayout = ?.
|
static ObjectLayout[] |
findByODI_DOL_PrevAndNext(long objectLayoutId,
long objectDefinitionId,
boolean defaultObjectLayout,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the object layouts before and after the current object layout in the ordered set where objectDefinitionId = ? and defaultObjectLayout = ?.
|
static java.util.List<ObjectLayout> |
findByODI_DOL(long objectDefinitionId,
boolean defaultObjectLayout)
Returns all the object layouts where objectDefinitionId = ? and defaultObjectLayout = ?.
|
static java.util.List<ObjectLayout> |
findByODI_DOL(long objectDefinitionId,
boolean defaultObjectLayout,
int start,
int end)
Returns a range of all the object layouts where objectDefinitionId = ? and defaultObjectLayout = ?.
|
static java.util.List<ObjectLayout> |
findByODI_DOL(long objectDefinitionId,
boolean defaultObjectLayout,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns an ordered range of all the object layouts where objectDefinitionId = ? and defaultObjectLayout = ?.
|
static java.util.List<ObjectLayout> |
findByODI_DOL(long objectDefinitionId,
boolean defaultObjectLayout,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object layouts where objectDefinitionId = ? and defaultObjectLayout = ?.
|
static ObjectLayout |
findByPrimaryKey(long objectLayoutId)
Returns the object layout with the primary key or throws a
NoSuchObjectLayoutException if it could not be found. |
static ObjectLayout |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the first object layout in the ordered set where uuid = ? and companyId = ?.
|
static ObjectLayout |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the last object layout in the ordered set where uuid = ? and companyId = ?.
|
static ObjectLayout[] |
findByUuid_C_PrevAndNext(long objectLayoutId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the object layouts before and after the current object layout in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<ObjectLayout> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the object layouts where uuid = ? and companyId = ?.
|
static java.util.List<ObjectLayout> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the object layouts where uuid = ? and companyId = ?.
|
static java.util.List<ObjectLayout> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns an ordered range of all the object layouts where uuid = ? and companyId = ?.
|
static java.util.List<ObjectLayout> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object layouts where uuid = ? and companyId = ?.
|
static ObjectLayout |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the first object layout in the ordered set where uuid = ?.
|
static ObjectLayout |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the last object layout in the ordered set where uuid = ?.
|
static ObjectLayout[] |
findByUuid_PrevAndNext(long objectLayoutId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns the object layouts before and after the current object layout in the ordered set where uuid = ?.
|
static java.util.List<ObjectLayout> |
findByUuid(java.lang.String uuid)
Returns all the object layouts where uuid = ?.
|
static java.util.List<ObjectLayout> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the object layouts where uuid = ?.
|
static java.util.List<ObjectLayout> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
Returns an ordered range of all the object layouts where uuid = ?.
|
static java.util.List<ObjectLayout> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object layouts where uuid = ?.
|
static java.util.List<ObjectLayout> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ObjectLayout> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ObjectLayout> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) |
static ObjectLayoutPersistence |
getPersistence() |
static ObjectLayout |
remove(long objectLayoutId)
Removes the object layout with the primary key from the database.
|
static void |
removeAll()
Removes all the object layouts from the database.
|
static void |
removeByObjectDefinitionId(long objectDefinitionId)
Removes all the object layouts where objectDefinitionId = ? from the database.
|
static void |
removeByODI_DOL(long objectDefinitionId,
boolean defaultObjectLayout)
Removes all the object layouts where objectDefinitionId = ? and defaultObjectLayout = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the object layouts where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the object layouts where uuid = ? from the database.
|
static ObjectLayout |
update(ObjectLayout objectLayout) |
static ObjectLayout |
update(ObjectLayout objectLayout,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ObjectLayout |
updateImpl(ObjectLayout objectLayout) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ObjectLayout objectLayout)
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,ObjectLayout> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ObjectLayout> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ObjectLayout> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ObjectLayout> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ObjectLayout update(ObjectLayout objectLayout)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ObjectLayout update(ObjectLayout objectLayout, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ObjectLayout> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectLayout> 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 ObjectLayoutModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object layoutsend
- the upper bound of the range of object layouts (not inclusive)public static java.util.List<ObjectLayout> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> 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 ObjectLayoutModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object layoutsend
- the upper bound of the range of object layouts (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectLayout> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> 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 ObjectLayoutModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object layoutsend
- the upper bound of the range of object layouts (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectLayout findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutException
- if a matching object layout could not be foundpublic static ObjectLayout fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout could not be foundpublic static ObjectLayout findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutException
- if a matching object layout could not be foundpublic static ObjectLayout fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout could not be foundpublic static ObjectLayout[] findByUuid_PrevAndNext(long objectLayoutId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
objectLayoutId
- the primary key of the current object layoutuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutException
- if a object layout 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<ObjectLayout> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectLayout> 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 ObjectLayoutModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object layoutsend
- the upper bound of the range of object layouts (not inclusive)public static java.util.List<ObjectLayout> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> 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 ObjectLayoutModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object layoutsend
- the upper bound of the range of object layouts (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectLayout> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> 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 ObjectLayoutModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object layoutsend
- the upper bound of the range of object layouts (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectLayout findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutException
- if a matching object layout could not be foundpublic static ObjectLayout fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout could not be foundpublic static ObjectLayout findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutException
- if a matching object layout could not be foundpublic static ObjectLayout fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout could not be foundpublic static ObjectLayout[] findByUuid_C_PrevAndNext(long objectLayoutId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
objectLayoutId
- the primary key of the current object layoutuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutException
- if a object layout 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<ObjectLayout> findByObjectDefinitionId(long objectDefinitionId)
objectDefinitionId
- the object definition IDpublic static java.util.List<ObjectLayout> findByObjectDefinitionId(long objectDefinitionId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ObjectLayoutModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object layoutsend
- the upper bound of the range of object layouts (not inclusive)public static java.util.List<ObjectLayout> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> 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 ObjectLayoutModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object layoutsend
- the upper bound of the range of object layouts (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectLayout> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> 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 ObjectLayoutModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object layoutsend
- the upper bound of the range of object layouts (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectLayout findByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutException
- if a matching object layout could not be foundpublic static ObjectLayout fetchByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout could not be foundpublic static ObjectLayout findByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutException
- if a matching object layout could not be foundpublic static ObjectLayout fetchByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout could not be foundpublic static ObjectLayout[] findByObjectDefinitionId_PrevAndNext(long objectLayoutId, long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
objectLayoutId
- the primary key of the current object layoutobjectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutException
- if a object layout with the primary key could not be foundpublic static void removeByObjectDefinitionId(long objectDefinitionId)
objectDefinitionId
- the object definition IDpublic static int countByObjectDefinitionId(long objectDefinitionId)
objectDefinitionId
- the object definition IDpublic static java.util.List<ObjectLayout> findByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout)
objectDefinitionId
- the object definition IDdefaultObjectLayout
- the default object layoutpublic static java.util.List<ObjectLayout> findByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout, 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 ObjectLayoutModelImpl
.
objectDefinitionId
- the object definition IDdefaultObjectLayout
- the default object layoutstart
- the lower bound of the range of object layoutsend
- the upper bound of the range of object layouts (not inclusive)public static java.util.List<ObjectLayout> findByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> 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 ObjectLayoutModelImpl
.
objectDefinitionId
- the object definition IDdefaultObjectLayout
- the default object layoutstart
- the lower bound of the range of object layoutsend
- the upper bound of the range of object layouts (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectLayout> findByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> 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 ObjectLayoutModelImpl
.
objectDefinitionId
- the object definition IDdefaultObjectLayout
- the default object layoutstart
- the lower bound of the range of object layoutsend
- the upper bound of the range of object layouts (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectLayout findByODI_DOL_First(long objectDefinitionId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
objectDefinitionId
- the object definition IDdefaultObjectLayout
- the default object layoutorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutException
- if a matching object layout could not be foundpublic static ObjectLayout fetchByODI_DOL_First(long objectDefinitionId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
objectDefinitionId
- the object definition IDdefaultObjectLayout
- the default object layoutorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout could not be foundpublic static ObjectLayout findByODI_DOL_Last(long objectDefinitionId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
objectDefinitionId
- the object definition IDdefaultObjectLayout
- the default object layoutorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutException
- if a matching object layout could not be foundpublic static ObjectLayout fetchByODI_DOL_Last(long objectDefinitionId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator)
objectDefinitionId
- the object definition IDdefaultObjectLayout
- the default object layoutorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object layout could not be foundpublic static ObjectLayout[] findByODI_DOL_PrevAndNext(long objectLayoutId, long objectDefinitionId, boolean defaultObjectLayout, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> orderByComparator) throws NoSuchObjectLayoutException
objectLayoutId
- the primary key of the current object layoutobjectDefinitionId
- the object definition IDdefaultObjectLayout
- the default object layoutorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectLayoutException
- if a object layout with the primary key could not be foundpublic static void removeByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout)
objectDefinitionId
- the object definition IDdefaultObjectLayout
- the default object layoutpublic static int countByODI_DOL(long objectDefinitionId, boolean defaultObjectLayout)
objectDefinitionId
- the object definition IDdefaultObjectLayout
- the default object layoutpublic static void cacheResult(ObjectLayout objectLayout)
objectLayout
- the object layoutpublic static void cacheResult(java.util.List<ObjectLayout> objectLayouts)
objectLayouts
- the object layoutspublic static ObjectLayout create(long objectLayoutId)
objectLayoutId
- the primary key for the new object layoutpublic static ObjectLayout remove(long objectLayoutId) throws NoSuchObjectLayoutException
objectLayoutId
- the primary key of the object layoutNoSuchObjectLayoutException
- if a object layout with the primary key could not be foundpublic static ObjectLayout updateImpl(ObjectLayout objectLayout)
public static ObjectLayout findByPrimaryKey(long objectLayoutId) throws NoSuchObjectLayoutException
NoSuchObjectLayoutException
if it could not be found.objectLayoutId
- the primary key of the object layoutNoSuchObjectLayoutException
- if a object layout with the primary key could not be foundpublic static ObjectLayout fetchByPrimaryKey(long objectLayoutId)
null
if it could not be found.objectLayoutId
- the primary key of the object layoutnull
if a object layout with the primary key could not be foundpublic static java.util.List<ObjectLayout> findAll()
public static java.util.List<ObjectLayout> 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 ObjectLayoutModelImpl
.
start
- the lower bound of the range of object layoutsend
- the upper bound of the range of object layouts (not inclusive)public static java.util.List<ObjectLayout> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> 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 ObjectLayoutModelImpl
.
start
- the lower bound of the range of object layoutsend
- the upper bound of the range of object layouts (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectLayout> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectLayout> 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 ObjectLayoutModelImpl
.
start
- the lower bound of the range of object layoutsend
- the upper bound of the range of object layouts (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 ObjectLayoutPersistence getPersistence()