public class ObjectFolderItemUtil
extends java.lang.Object
com.liferay.object.service.persistence.impl.ObjectFolderItemPersistenceImpl
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
ObjectFolderItemPersistence
Constructor and Description |
---|
ObjectFolderItemUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ObjectFolderItem> objectFolderItems)
Caches the object folder items in the entity cache if it is enabled.
|
static void |
cacheResult(ObjectFolderItem objectFolderItem)
Caches the object folder item in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ObjectFolderItem objectFolderItem) |
static int |
countAll()
Returns the number of object folder items.
|
static int |
countByObjectDefinitionId(long objectDefinitionId)
Returns the number of object folder items where objectDefinitionId = ?.
|
static int |
countByObjectFolderId(long objectFolderId)
Returns the number of object folder items where objectFolderId = ?.
|
static int |
countByODI_OFI(long objectDefinitionId,
long objectFolderId)
Returns the number of object folder items where objectDefinitionId = ? and objectFolderId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of object folder items where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of object folder items where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ObjectFolderItem |
create(long objectFolderItemId)
Creates a new object folder item with the primary key.
|
static ObjectFolderItem |
fetchByObjectDefinitionId_First(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the first object folder item in the ordered set where objectDefinitionId = ?.
|
static ObjectFolderItem |
fetchByObjectDefinitionId_Last(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the last object folder item in the ordered set where objectDefinitionId = ?.
|
static ObjectFolderItem |
fetchByObjectFolderId_First(long objectFolderId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the first object folder item in the ordered set where objectFolderId = ?.
|
static ObjectFolderItem |
fetchByObjectFolderId_Last(long objectFolderId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the last object folder item in the ordered set where objectFolderId = ?.
|
static ObjectFolderItem |
fetchByODI_OFI(long objectDefinitionId,
long objectFolderId)
Returns the object folder item where objectDefinitionId = ? and objectFolderId = ? or returns
null if it could not be found. |
static ObjectFolderItem |
fetchByODI_OFI(long objectDefinitionId,
long objectFolderId,
boolean useFinderCache)
Returns the object folder item where objectDefinitionId = ? and objectFolderId = ? or returns
null if it could not be found, optionally using the finder cache. |
static ObjectFolderItem |
fetchByPrimaryKey(long objectFolderItemId)
Returns the object folder item with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ObjectFolderItem> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ObjectFolderItem |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the first object folder item in the ordered set where uuid = ? and companyId = ?.
|
static ObjectFolderItem |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the last object folder item in the ordered set where uuid = ? and companyId = ?.
|
static ObjectFolderItem |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the first object folder item in the ordered set where uuid = ?.
|
static ObjectFolderItem |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the last object folder item in the ordered set where uuid = ?.
|
static java.util.List<ObjectFolderItem> |
findAll()
Returns all the object folder items.
|
static java.util.List<ObjectFolderItem> |
findAll(int start,
int end)
Returns a range of all the object folder items.
|
static java.util.List<ObjectFolderItem> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns an ordered range of all the object folder items.
|
static java.util.List<ObjectFolderItem> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object folder items.
|
static ObjectFolderItem |
findByObjectDefinitionId_First(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the first object folder item in the ordered set where objectDefinitionId = ?.
|
static ObjectFolderItem |
findByObjectDefinitionId_Last(long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the last object folder item in the ordered set where objectDefinitionId = ?.
|
static ObjectFolderItem[] |
findByObjectDefinitionId_PrevAndNext(long objectFolderItemId,
long objectDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the object folder items before and after the current object folder item in the ordered set where objectDefinitionId = ?.
|
static java.util.List<ObjectFolderItem> |
findByObjectDefinitionId(long objectDefinitionId)
Returns all the object folder items where objectDefinitionId = ?.
|
static java.util.List<ObjectFolderItem> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end)
Returns a range of all the object folder items where objectDefinitionId = ?.
|
static java.util.List<ObjectFolderItem> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns an ordered range of all the object folder items where objectDefinitionId = ?.
|
static java.util.List<ObjectFolderItem> |
findByObjectDefinitionId(long objectDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object folder items where objectDefinitionId = ?.
|
static ObjectFolderItem |
findByObjectFolderId_First(long objectFolderId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the first object folder item in the ordered set where objectFolderId = ?.
|
static ObjectFolderItem |
findByObjectFolderId_Last(long objectFolderId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the last object folder item in the ordered set where objectFolderId = ?.
|
static ObjectFolderItem[] |
findByObjectFolderId_PrevAndNext(long objectFolderItemId,
long objectFolderId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the object folder items before and after the current object folder item in the ordered set where objectFolderId = ?.
|
static java.util.List<ObjectFolderItem> |
findByObjectFolderId(long objectFolderId)
Returns all the object folder items where objectFolderId = ?.
|
static java.util.List<ObjectFolderItem> |
findByObjectFolderId(long objectFolderId,
int start,
int end)
Returns a range of all the object folder items where objectFolderId = ?.
|
static java.util.List<ObjectFolderItem> |
findByObjectFolderId(long objectFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns an ordered range of all the object folder items where objectFolderId = ?.
|
static java.util.List<ObjectFolderItem> |
findByObjectFolderId(long objectFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object folder items where objectFolderId = ?.
|
static ObjectFolderItem |
findByODI_OFI(long objectDefinitionId,
long objectFolderId)
Returns the object folder item where objectDefinitionId = ? and objectFolderId = ? or throws a
NoSuchObjectFolderItemException if it could not be found. |
static ObjectFolderItem |
findByPrimaryKey(long objectFolderItemId)
Returns the object folder item with the primary key or throws a
NoSuchObjectFolderItemException if it could not be found. |
static ObjectFolderItem |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the first object folder item in the ordered set where uuid = ? and companyId = ?.
|
static ObjectFolderItem |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the last object folder item in the ordered set where uuid = ? and companyId = ?.
|
static ObjectFolderItem[] |
findByUuid_C_PrevAndNext(long objectFolderItemId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the object folder items before and after the current object folder item in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<ObjectFolderItem> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the object folder items where uuid = ? and companyId = ?.
|
static java.util.List<ObjectFolderItem> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the object folder items where uuid = ? and companyId = ?.
|
static java.util.List<ObjectFolderItem> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns an ordered range of all the object folder items where uuid = ? and companyId = ?.
|
static java.util.List<ObjectFolderItem> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object folder items where uuid = ? and companyId = ?.
|
static ObjectFolderItem |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the first object folder item in the ordered set where uuid = ?.
|
static ObjectFolderItem |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the last object folder item in the ordered set where uuid = ?.
|
static ObjectFolderItem[] |
findByUuid_PrevAndNext(long objectFolderItemId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns the object folder items before and after the current object folder item in the ordered set where uuid = ?.
|
static java.util.List<ObjectFolderItem> |
findByUuid(java.lang.String uuid)
Returns all the object folder items where uuid = ?.
|
static java.util.List<ObjectFolderItem> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the object folder items where uuid = ?.
|
static java.util.List<ObjectFolderItem> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
Returns an ordered range of all the object folder items where uuid = ?.
|
static java.util.List<ObjectFolderItem> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the object folder items where uuid = ?.
|
static java.util.List<ObjectFolderItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ObjectFolderItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ObjectFolderItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator) |
static ObjectFolderItemPersistence |
getPersistence() |
static ObjectFolderItem |
remove(long objectFolderItemId)
Removes the object folder item with the primary key from the database.
|
static void |
removeAll()
Removes all the object folder items from the database.
|
static void |
removeByObjectDefinitionId(long objectDefinitionId)
Removes all the object folder items where objectDefinitionId = ? from the database.
|
static void |
removeByObjectFolderId(long objectFolderId)
Removes all the object folder items where objectFolderId = ? from the database.
|
static ObjectFolderItem |
removeByODI_OFI(long objectDefinitionId,
long objectFolderId)
Removes the object folder item where objectDefinitionId = ? and objectFolderId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the object folder items where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the object folder items where uuid = ? from the database.
|
static void |
setPersistence(ObjectFolderItemPersistence persistence) |
static ObjectFolderItem |
update(ObjectFolderItem objectFolderItem) |
static ObjectFolderItem |
update(ObjectFolderItem objectFolderItem,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ObjectFolderItem |
updateImpl(ObjectFolderItem objectFolderItem) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ObjectFolderItem objectFolderItem)
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,ObjectFolderItem> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<ObjectFolderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ObjectFolderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ObjectFolderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ObjectFolderItem update(ObjectFolderItem objectFolderItem)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ObjectFolderItem update(ObjectFolderItem objectFolderItem, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ObjectFolderItem> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ObjectFolderItem> 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 ObjectFolderItemModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object folder itemsend
- the upper bound of the range of object folder items (not inclusive)public static java.util.List<ObjectFolderItem> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> 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 ObjectFolderItemModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object folder itemsend
- the upper bound of the range of object folder items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectFolderItem> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> 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 ObjectFolderItemModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of object folder itemsend
- the upper bound of the range of object folder items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectFolderItem findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator) throws NoSuchObjectFolderItemException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderItemException
- if a matching object folder item could not be foundpublic static ObjectFolderItem fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object folder item could not be foundpublic static ObjectFolderItem findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator) throws NoSuchObjectFolderItemException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderItemException
- if a matching object folder item could not be foundpublic static ObjectFolderItem fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object folder item could not be foundpublic static ObjectFolderItem[] findByUuid_PrevAndNext(long objectFolderItemId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator) throws NoSuchObjectFolderItemException
objectFolderItemId
- the primary key of the current object folder itemuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderItemException
- if a object folder item 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<ObjectFolderItem> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ObjectFolderItem> 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 ObjectFolderItemModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object folder itemsend
- the upper bound of the range of object folder items (not inclusive)public static java.util.List<ObjectFolderItem> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> 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 ObjectFolderItemModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object folder itemsend
- the upper bound of the range of object folder items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectFolderItem> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> 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 ObjectFolderItemModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of object folder itemsend
- the upper bound of the range of object folder items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectFolderItem findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator) throws NoSuchObjectFolderItemException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderItemException
- if a matching object folder item could not be foundpublic static ObjectFolderItem fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object folder item could not be foundpublic static ObjectFolderItem findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator) throws NoSuchObjectFolderItemException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderItemException
- if a matching object folder item could not be foundpublic static ObjectFolderItem fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object folder item could not be foundpublic static ObjectFolderItem[] findByUuid_C_PrevAndNext(long objectFolderItemId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator) throws NoSuchObjectFolderItemException
objectFolderItemId
- the primary key of the current object folder itemuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderItemException
- if a object folder item 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<ObjectFolderItem> findByObjectDefinitionId(long objectDefinitionId)
objectDefinitionId
- the object definition IDpublic static java.util.List<ObjectFolderItem> 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 ObjectFolderItemModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object folder itemsend
- the upper bound of the range of object folder items (not inclusive)public static java.util.List<ObjectFolderItem> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> 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 ObjectFolderItemModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object folder itemsend
- the upper bound of the range of object folder items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectFolderItem> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> 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 ObjectFolderItemModelImpl
.
objectDefinitionId
- the object definition IDstart
- the lower bound of the range of object folder itemsend
- the upper bound of the range of object folder items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectFolderItem findByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator) throws NoSuchObjectFolderItemException
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderItemException
- if a matching object folder item could not be foundpublic static ObjectFolderItem fetchByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object folder item could not be foundpublic static ObjectFolderItem findByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator) throws NoSuchObjectFolderItemException
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderItemException
- if a matching object folder item could not be foundpublic static ObjectFolderItem fetchByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
objectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object folder item could not be foundpublic static ObjectFolderItem[] findByObjectDefinitionId_PrevAndNext(long objectFolderItemId, long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator) throws NoSuchObjectFolderItemException
objectFolderItemId
- the primary key of the current object folder itemobjectDefinitionId
- the object definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderItemException
- if a object folder item 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<ObjectFolderItem> findByObjectFolderId(long objectFolderId)
objectFolderId
- the object folder IDpublic static java.util.List<ObjectFolderItem> findByObjectFolderId(long objectFolderId, 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 ObjectFolderItemModelImpl
.
objectFolderId
- the object folder IDstart
- the lower bound of the range of object folder itemsend
- the upper bound of the range of object folder items (not inclusive)public static java.util.List<ObjectFolderItem> findByObjectFolderId(long objectFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> 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 ObjectFolderItemModelImpl
.
objectFolderId
- the object folder IDstart
- the lower bound of the range of object folder itemsend
- the upper bound of the range of object folder items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectFolderItem> findByObjectFolderId(long objectFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> 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 ObjectFolderItemModelImpl
.
objectFolderId
- the object folder IDstart
- the lower bound of the range of object folder itemsend
- the upper bound of the range of object folder items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ObjectFolderItem findByObjectFolderId_First(long objectFolderId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator) throws NoSuchObjectFolderItemException
objectFolderId
- the object folder IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderItemException
- if a matching object folder item could not be foundpublic static ObjectFolderItem fetchByObjectFolderId_First(long objectFolderId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
objectFolderId
- the object folder IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object folder item could not be foundpublic static ObjectFolderItem findByObjectFolderId_Last(long objectFolderId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator) throws NoSuchObjectFolderItemException
objectFolderId
- the object folder IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderItemException
- if a matching object folder item could not be foundpublic static ObjectFolderItem fetchByObjectFolderId_Last(long objectFolderId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator)
objectFolderId
- the object folder IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching object folder item could not be foundpublic static ObjectFolderItem[] findByObjectFolderId_PrevAndNext(long objectFolderItemId, long objectFolderId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> orderByComparator) throws NoSuchObjectFolderItemException
objectFolderItemId
- the primary key of the current object folder itemobjectFolderId
- the object folder IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchObjectFolderItemException
- if a object folder item with the primary key could not be foundpublic static void removeByObjectFolderId(long objectFolderId)
objectFolderId
- the object folder IDpublic static int countByObjectFolderId(long objectFolderId)
objectFolderId
- the object folder IDpublic static ObjectFolderItem findByODI_OFI(long objectDefinitionId, long objectFolderId) throws NoSuchObjectFolderItemException
NoSuchObjectFolderItemException
if it could not be found.objectDefinitionId
- the object definition IDobjectFolderId
- the object folder IDNoSuchObjectFolderItemException
- if a matching object folder item could not be foundpublic static ObjectFolderItem fetchByODI_OFI(long objectDefinitionId, long objectFolderId)
null
if it could not be found. Uses the finder cache.objectDefinitionId
- the object definition IDobjectFolderId
- the object folder IDnull
if a matching object folder item could not be foundpublic static ObjectFolderItem fetchByODI_OFI(long objectDefinitionId, long objectFolderId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.objectDefinitionId
- the object definition IDobjectFolderId
- the object folder IDuseFinderCache
- whether to use the finder cachenull
if a matching object folder item could not be foundpublic static ObjectFolderItem removeByODI_OFI(long objectDefinitionId, long objectFolderId) throws NoSuchObjectFolderItemException
objectDefinitionId
- the object definition IDobjectFolderId
- the object folder IDNoSuchObjectFolderItemException
public static int countByODI_OFI(long objectDefinitionId, long objectFolderId)
objectDefinitionId
- the object definition IDobjectFolderId
- the object folder IDpublic static void cacheResult(ObjectFolderItem objectFolderItem)
objectFolderItem
- the object folder itempublic static void cacheResult(java.util.List<ObjectFolderItem> objectFolderItems)
objectFolderItems
- the object folder itemspublic static ObjectFolderItem create(long objectFolderItemId)
objectFolderItemId
- the primary key for the new object folder itempublic static ObjectFolderItem remove(long objectFolderItemId) throws NoSuchObjectFolderItemException
objectFolderItemId
- the primary key of the object folder itemNoSuchObjectFolderItemException
- if a object folder item with the primary key could not be foundpublic static ObjectFolderItem updateImpl(ObjectFolderItem objectFolderItem)
public static ObjectFolderItem findByPrimaryKey(long objectFolderItemId) throws NoSuchObjectFolderItemException
NoSuchObjectFolderItemException
if it could not be found.objectFolderItemId
- the primary key of the object folder itemNoSuchObjectFolderItemException
- if a object folder item with the primary key could not be foundpublic static ObjectFolderItem fetchByPrimaryKey(long objectFolderItemId)
null
if it could not be found.objectFolderItemId
- the primary key of the object folder itemnull
if a object folder item with the primary key could not be foundpublic static java.util.List<ObjectFolderItem> findAll()
public static java.util.List<ObjectFolderItem> 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 ObjectFolderItemModelImpl
.
start
- the lower bound of the range of object folder itemsend
- the upper bound of the range of object folder items (not inclusive)public static java.util.List<ObjectFolderItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> 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 ObjectFolderItemModelImpl
.
start
- the lower bound of the range of object folder itemsend
- the upper bound of the range of object folder items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ObjectFolderItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolderItem> 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 ObjectFolderItemModelImpl
.
start
- the lower bound of the range of object folder itemsend
- the upper bound of the range of object folder items (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 ObjectFolderItemPersistence getPersistence()
public static void setPersistence(ObjectFolderItemPersistence persistence)