Class ObjectFolderUtil
com.liferay.object.service.persistence.impl.ObjectFolderPersistenceImpl 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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(ObjectFolder objectFolder) Caches the object folder in the entity cache if it is enabled.static voidcacheResult(List<ObjectFolder> objectFolders) Caches the object folders in the entity cache if it is enabled.static voidstatic voidclearCache(ObjectFolder objectFolder) static intcountAll()Returns the number of object folders.static intcountByC_N(long companyId, String name) Returns the number of object folders where companyId = ? and name = ?.static intcountByCompanyId(long companyId) Returns the number of object folders where companyId = ?.static intcountByERC_C(String externalReferenceCode, long companyId) Returns the number of object folders where externalReferenceCode = ? and companyId = ?.static intcountByUuid(String uuid) Returns the number of object folders where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of object folders where uuid = ? and companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static ObjectFoldercreate(long objectFolderId) Creates a new object folder with the primary key.static ObjectFolderfetchByC_N(long companyId, String name) Returns the object folder where companyId = ? and name = ? or returnsnullif it could not be found.static ObjectFolderfetchByC_N(long companyId, String name, boolean useFinderCache) Returns the object folder where companyId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.static ObjectFolderfetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the first object folder in the ordered set where companyId = ?.static ObjectFolderfetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the last object folder in the ordered set where companyId = ?.static ObjectFolderfetchByERC_C(String externalReferenceCode, long companyId) Returns the object folder where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found.static ObjectFolderfetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the object folder where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.static ObjectFolderfetchByPrimaryKey(long objectFolderId) Returns the object folder with the primary key or returnsnullif it could not be found.static Map<Serializable,ObjectFolder> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static ObjectFolderfetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the first object folder in the ordered set where uuid = ? and companyId = ?.static ObjectFolderfetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the last object folder in the ordered set where uuid = ? and companyId = ?.static ObjectFolderfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the first object folder in the ordered set where uuid = ?.static ObjectFolderfetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the last object folder in the ordered set where uuid = ?.static intfilterCountByCompanyId(long companyId) Returns the number of object folders that the user has permission to view where companyId = ?.static intfilterCountByUuid(String uuid) Returns the number of object folders that the user has permission to view where uuid = ?.static intfilterCountByUuid_C(String uuid, long companyId) Returns the number of object folders that the user has permission to view where uuid = ? and companyId = ?.static List<ObjectFolder>filterFindByCompanyId(long companyId) Returns all the object folders that the user has permission to view where companyId = ?.static List<ObjectFolder>filterFindByCompanyId(long companyId, int start, int end) Returns a range of all the object folders that the user has permission to view where companyId = ?.static List<ObjectFolder>filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns an ordered range of all the object folders that the user has permissions to view where companyId = ?.static ObjectFolder[]filterFindByCompanyId_PrevAndNext(long objectFolderId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the object folders before and after the current object folder in the ordered set of object folders that the user has permission to view where companyId = ?.static List<ObjectFolder>filterFindByUuid(String uuid) Returns all the object folders that the user has permission to view where uuid = ?.static List<ObjectFolder>filterFindByUuid(String uuid, int start, int end) Returns a range of all the object folders that the user has permission to view where uuid = ?.static List<ObjectFolder>filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns an ordered range of all the object folders that the user has permissions to view where uuid = ?.static List<ObjectFolder>filterFindByUuid_C(String uuid, long companyId) Returns all the object folders that the user has permission to view where uuid = ? and companyId = ?.static List<ObjectFolder>filterFindByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the object folders that the user has permission to view where uuid = ? and companyId = ?.static List<ObjectFolder>filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns an ordered range of all the object folders that the user has permissions to view where uuid = ? and companyId = ?.static ObjectFolder[]filterFindByUuid_C_PrevAndNext(long objectFolderId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the object folders before and after the current object folder in the ordered set of object folders that the user has permission to view where uuid = ? and companyId = ?.static ObjectFolder[]filterFindByUuid_PrevAndNext(long objectFolderId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the object folders before and after the current object folder in the ordered set of object folders that the user has permission to view where uuid = ?.static List<ObjectFolder>findAll()Returns all the object folders.static List<ObjectFolder>findAll(int start, int end) Returns a range of all the object folders.static List<ObjectFolder>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns an ordered range of all the object folders.static List<ObjectFolder>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object folders.static ObjectFolderReturns the object folder where companyId = ? and name = ? or throws aNoSuchObjectFolderExceptionif it could not be found.static List<ObjectFolder>findByCompanyId(long companyId) Returns all the object folders where companyId = ?.static List<ObjectFolder>findByCompanyId(long companyId, int start, int end) Returns a range of all the object folders where companyId = ?.static List<ObjectFolder>findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns an ordered range of all the object folders where companyId = ?.static List<ObjectFolder>findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object folders where companyId = ?.static ObjectFolderfindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the first object folder in the ordered set where companyId = ?.static ObjectFolderfindByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the last object folder in the ordered set where companyId = ?.static ObjectFolder[]findByCompanyId_PrevAndNext(long objectFolderId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the object folders before and after the current object folder in the ordered set where companyId = ?.static ObjectFolderfindByERC_C(String externalReferenceCode, long companyId) Returns the object folder where externalReferenceCode = ? and companyId = ? or throws aNoSuchObjectFolderExceptionif it could not be found.static ObjectFolderfindByPrimaryKey(long objectFolderId) Returns the object folder with the primary key or throws aNoSuchObjectFolderExceptionif it could not be found.static List<ObjectFolder>findByUuid(String uuid) Returns all the object folders where uuid = ?.static List<ObjectFolder>findByUuid(String uuid, int start, int end) Returns a range of all the object folders where uuid = ?.static List<ObjectFolder>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns an ordered range of all the object folders where uuid = ?.static List<ObjectFolder>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object folders where uuid = ?.static List<ObjectFolder>findByUuid_C(String uuid, long companyId) Returns all the object folders where uuid = ? and companyId = ?.static List<ObjectFolder>findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the object folders where uuid = ? and companyId = ?.static List<ObjectFolder>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns an ordered range of all the object folders where uuid = ? and companyId = ?.static List<ObjectFolder>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object folders where uuid = ? and companyId = ?.static ObjectFolderfindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the first object folder in the ordered set where uuid = ? and companyId = ?.static ObjectFolderfindByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the last object folder in the ordered set where uuid = ? and companyId = ?.static ObjectFolder[]findByUuid_C_PrevAndNext(long objectFolderId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the object folders before and after the current object folder in the ordered set where uuid = ? and companyId = ?.static ObjectFolderfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the first object folder in the ordered set where uuid = ?.static ObjectFolderfindByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the last object folder in the ordered set where uuid = ?.static ObjectFolder[]findByUuid_PrevAndNext(long objectFolderId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the object folders before and after the current object folder in the ordered set where uuid = ?.static List<ObjectFolder>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<ObjectFolder>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<ObjectFolder>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) static ObjectFolderPersistencestatic ObjectFolderremove(long objectFolderId) Removes the object folder with the primary key from the database.static voidRemoves all the object folders from the database.static ObjectFolderremoveByC_N(long companyId, String name) Removes the object folder where companyId = ? and name = ? from the database.static voidremoveByCompanyId(long companyId) Removes all the object folders where companyId = ? from the database.static ObjectFolderremoveByERC_C(String externalReferenceCode, long companyId) Removes the object folder where externalReferenceCode = ? and companyId = ? from the database.static voidremoveByUuid(String uuid) Removes all the object folders where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the object folders where uuid = ? and companyId = ? from the database.static voidsetPersistence(ObjectFolderPersistence persistence) static ObjectFolderupdate(ObjectFolder objectFolder) static ObjectFolderupdate(ObjectFolder objectFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectFolderupdateImpl(ObjectFolder objectFolder)
-
Constructor Details
-
ObjectFolderUtil
public ObjectFolderUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<ObjectFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<ObjectFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<ObjectFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static ObjectFolder update(ObjectFolder objectFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the object folders where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching object folders
-
findByUuid
Returns a range of all the object folders where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)- Returns:
- the range of matching object folders
-
findByUuid
public static List<ObjectFolder> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns an ordered range of all the object folders where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching object folders
-
findByUuid
public static List<ObjectFolder> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object folders where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching object folders
-
findByUuid_First
public static ObjectFolder findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException Returns the first object folder in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching object folder
- Throws:
NoSuchObjectFolderException- if a matching object folder could not be foundNoSuchObjectFolderException
-
fetchByUuid_First
public static ObjectFolder fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the first object folder in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching object folder, or
nullif a matching object folder could not be found
-
findByUuid_Last
public static ObjectFolder findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException Returns the last object folder in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching object folder
- Throws:
NoSuchObjectFolderException- if a matching object folder could not be foundNoSuchObjectFolderException
-
fetchByUuid_Last
public static ObjectFolder fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the last object folder in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching object folder, or
nullif a matching object folder could not be found
-
findByUuid_PrevAndNext
public static ObjectFolder[] findByUuid_PrevAndNext(long objectFolderId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException Returns the object folders before and after the current object folder in the ordered set where uuid = ?.- Parameters:
objectFolderId- the primary key of the current object folderuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next object folder
- Throws:
NoSuchObjectFolderException- if a object folder with the primary key could not be foundNoSuchObjectFolderException
-
filterFindByUuid
Returns all the object folders that the user has permission to view where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching object folders that the user has permission to view
-
filterFindByUuid
Returns a range of all the object folders that the user has permission to view where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)- Returns:
- the range of matching object folders that the user has permission to view
-
filterFindByUuid
public static List<ObjectFolder> filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns an ordered range of all the object folders that the user has permissions to view where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching object folders that the user has permission to view
-
filterFindByUuid_PrevAndNext
public static ObjectFolder[] filterFindByUuid_PrevAndNext(long objectFolderId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException Returns the object folders before and after the current object folder in the ordered set of object folders that the user has permission to view where uuid = ?.- Parameters:
objectFolderId- the primary key of the current object folderuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next object folder
- Throws:
NoSuchObjectFolderException- if a object folder with the primary key could not be foundNoSuchObjectFolderException
-
removeByUuid
Removes all the object folders where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of object folders where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching object folders
-
filterCountByUuid
Returns the number of object folders that the user has permission to view where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching object folders that the user has permission to view
-
findByUuid_C
Returns all the object folders where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching object folders
-
findByUuid_C
Returns a range of all the object folders where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)- Returns:
- the range of matching object folders
-
findByUuid_C
public static List<ObjectFolder> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns an ordered range of all the object folders where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching object folders
-
findByUuid_C
public static List<ObjectFolder> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object folders where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching object folders
-
findByUuid_C_First
public static ObjectFolder findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException Returns the first object folder in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching object folder
- Throws:
NoSuchObjectFolderException- if a matching object folder could not be foundNoSuchObjectFolderException
-
fetchByUuid_C_First
public static ObjectFolder fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the first object folder in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching object folder, or
nullif a matching object folder could not be found
-
findByUuid_C_Last
public static ObjectFolder findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException Returns the last object folder in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching object folder
- Throws:
NoSuchObjectFolderException- if a matching object folder could not be foundNoSuchObjectFolderException
-
fetchByUuid_C_Last
public static ObjectFolder fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the last object folder in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching object folder, or
nullif a matching object folder could not be found
-
findByUuid_C_PrevAndNext
public static ObjectFolder[] findByUuid_C_PrevAndNext(long objectFolderId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException Returns the object folders before and after the current object folder in the ordered set where uuid = ? and companyId = ?.- Parameters:
objectFolderId- the primary key of the current object folderuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next object folder
- Throws:
NoSuchObjectFolderException- if a object folder with the primary key could not be foundNoSuchObjectFolderException
-
filterFindByUuid_C
Returns all the object folders that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching object folders that the user has permission to view
-
filterFindByUuid_C
public static List<ObjectFolder> filterFindByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the object folders that the user has permission to view where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)- Returns:
- the range of matching object folders that the user has permission to view
-
filterFindByUuid_C
public static List<ObjectFolder> filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns an ordered range of all the object folders that the user has permissions to view where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching object folders that the user has permission to view
-
filterFindByUuid_C_PrevAndNext
public static ObjectFolder[] filterFindByUuid_C_PrevAndNext(long objectFolderId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException Returns the object folders before and after the current object folder in the ordered set of object folders that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
objectFolderId- the primary key of the current object folderuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next object folder
- Throws:
NoSuchObjectFolderException- if a object folder with the primary key could not be foundNoSuchObjectFolderException
-
removeByUuid_C
Removes all the object folders where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of object folders where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching object folders
-
filterCountByUuid_C
Returns the number of object folders that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching object folders that the user has permission to view
-
findByCompanyId
Returns all the object folders where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching object folders
-
findByCompanyId
Returns a range of all the object folders where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)- Returns:
- the range of matching object folders
-
findByCompanyId
public static List<ObjectFolder> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns an ordered range of all the object folders where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching object folders
-
findByCompanyId
public static List<ObjectFolder> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object folders where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching object folders
-
findByCompanyId_First
public static ObjectFolder findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException Returns the first object folder in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching object folder
- Throws:
NoSuchObjectFolderException- if a matching object folder could not be foundNoSuchObjectFolderException
-
fetchByCompanyId_First
public static ObjectFolder fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the first object folder in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching object folder, or
nullif a matching object folder could not be found
-
findByCompanyId_Last
public static ObjectFolder findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException Returns the last object folder in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching object folder
- Throws:
NoSuchObjectFolderException- if a matching object folder could not be foundNoSuchObjectFolderException
-
fetchByCompanyId_Last
public static ObjectFolder fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the last object folder in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching object folder, or
nullif a matching object folder could not be found
-
findByCompanyId_PrevAndNext
public static ObjectFolder[] findByCompanyId_PrevAndNext(long objectFolderId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException Returns the object folders before and after the current object folder in the ordered set where companyId = ?.- Parameters:
objectFolderId- the primary key of the current object foldercompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next object folder
- Throws:
NoSuchObjectFolderException- if a object folder with the primary key could not be foundNoSuchObjectFolderException
-
filterFindByCompanyId
Returns all the object folders that the user has permission to view where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching object folders that the user has permission to view
-
filterFindByCompanyId
Returns a range of all the object folders that the user has permission to view where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)- Returns:
- the range of matching object folders that the user has permission to view
-
filterFindByCompanyId
public static List<ObjectFolder> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns an ordered range of all the object folders that the user has permissions to view where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching object folders that the user has permission to view
-
filterFindByCompanyId_PrevAndNext
public static ObjectFolder[] filterFindByCompanyId_PrevAndNext(long objectFolderId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) throws NoSuchObjectFolderException Returns the object folders before and after the current object folder in the ordered set of object folders that the user has permission to view where companyId = ?.- Parameters:
objectFolderId- the primary key of the current object foldercompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next object folder
- Throws:
NoSuchObjectFolderException- if a object folder with the primary key could not be foundNoSuchObjectFolderException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the object folders where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of object folders where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching object folders
-
filterCountByCompanyId
public static int filterCountByCompanyId(long companyId) Returns the number of object folders that the user has permission to view where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching object folders that the user has permission to view
-
findByC_N
public static ObjectFolder findByC_N(long companyId, String name) throws NoSuchObjectFolderException Returns the object folder where companyId = ? and name = ? or throws aNoSuchObjectFolderExceptionif it could not be found.- Parameters:
companyId- the company IDname- the name- Returns:
- the matching object folder
- Throws:
NoSuchObjectFolderException- if a matching object folder could not be foundNoSuchObjectFolderException
-
fetchByC_N
Returns the object folder where companyId = ? and name = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDname- the name- Returns:
- the matching object folder, or
nullif a matching object folder could not be found
-
fetchByC_N
Returns the object folder where companyId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDname- the nameuseFinderCache- whether to use the finder cache- Returns:
- the matching object folder, or
nullif a matching object folder could not be found
-
removeByC_N
public static ObjectFolder removeByC_N(long companyId, String name) throws NoSuchObjectFolderException Removes the object folder where companyId = ? and name = ? from the database.- Parameters:
companyId- the company IDname- the name- Returns:
- the object folder that was removed
- Throws:
NoSuchObjectFolderException
-
countByC_N
Returns the number of object folders where companyId = ? and name = ?.- Parameters:
companyId- the company IDname- the name- Returns:
- the number of matching object folders
-
findByERC_C
public static ObjectFolder findByERC_C(String externalReferenceCode, long companyId) throws NoSuchObjectFolderException Returns the object folder where externalReferenceCode = ? and companyId = ? or throws aNoSuchObjectFolderExceptionif it could not be found.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching object folder
- Throws:
NoSuchObjectFolderException- if a matching object folder could not be foundNoSuchObjectFolderException
-
fetchByERC_C
Returns the object folder where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching object folder, or
nullif a matching object folder could not be found
-
fetchByERC_C
public static ObjectFolder fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the object folder where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company IDuseFinderCache- whether to use the finder cache- Returns:
- the matching object folder, or
nullif a matching object folder could not be found
-
removeByERC_C
public static ObjectFolder removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchObjectFolderException Removes the object folder where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the object folder that was removed
- Throws:
NoSuchObjectFolderException
-
countByERC_C
Returns the number of object folders where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the number of matching object folders
-
cacheResult
Caches the object folder in the entity cache if it is enabled.- Parameters:
objectFolder- the object folder
-
cacheResult
Caches the object folders in the entity cache if it is enabled.- Parameters:
objectFolders- the object folders
-
create
Creates a new object folder with the primary key. Does not add the object folder to the database.- Parameters:
objectFolderId- the primary key for the new object folder- Returns:
- the new object folder
-
remove
Removes the object folder with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
objectFolderId- the primary key of the object folder- Returns:
- the object folder that was removed
- Throws:
NoSuchObjectFolderException- if a object folder with the primary key could not be foundNoSuchObjectFolderException
-
updateImpl
-
findByPrimaryKey
Returns the object folder with the primary key or throws aNoSuchObjectFolderExceptionif it could not be found.- Parameters:
objectFolderId- the primary key of the object folder- Returns:
- the object folder
- Throws:
NoSuchObjectFolderException- if a object folder with the primary key could not be foundNoSuchObjectFolderException
-
fetchByPrimaryKey
Returns the object folder with the primary key or returnsnullif it could not be found.- Parameters:
objectFolderId- the primary key of the object folder- Returns:
- the object folder, or
nullif a object folder with the primary key could not be found
-
findAll
Returns all the object folders.- Returns:
- the object folders
-
findAll
Returns a range of all the object folders.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
start- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)- Returns:
- the range of object folders
-
findAll
public static List<ObjectFolder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns an ordered range of all the object folders.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
start- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of object folders
-
findAll
public static List<ObjectFolder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object folders.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromObjectFolderModelImpl.- Parameters:
start- the lower bound of the range of object foldersend- the upper bound of the range of object folders (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of object folders
-
removeAll
public static void removeAll()Removes all the object folders from the database. -
countAll
public static int countAll()Returns the number of object folders.- Returns:
- the number of object folders
-
getPersistence
-
setPersistence
-