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 void
cacheResult
(ObjectFolder objectFolder) Caches the object folder in the entity cache if it is enabled.static void
cacheResult
(List<ObjectFolder> objectFolders) Caches the object folders in the entity cache if it is enabled.static void
static void
clearCache
(ObjectFolder objectFolder) static int
countAll()
Returns the number of object folders.static int
countByC_N
(long companyId, String name) Returns the number of object folders where companyId = ? and name = ?.static int
countByCompanyId
(long companyId) Returns the number of object folders where companyId = ?.static int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of object folders where externalReferenceCode = ? and companyId = ?.static int
countByUuid
(String uuid) Returns the number of object folders where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of object folders where uuid = ? and companyId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static ObjectFolder
create
(long objectFolderId) Creates a new object folder with the primary key.static ObjectFolder
fetchByC_N
(long companyId, String name) Returns the object folder where companyId = ? and name = ? or returnsnull
if it could not be found.static ObjectFolder
fetchByC_N
(long companyId, String name, boolean useFinderCache) Returns the object folder where companyId = ? and name = ? or returnsnull
if it could not be found, optionally using the finder cache.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 = ?.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 = ?.static ObjectFolder
fetchByERC_C
(String externalReferenceCode, long companyId) Returns the object folder where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.static ObjectFolder
fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the object folder where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.static ObjectFolder
fetchByPrimaryKey
(long objectFolderId) Returns the object folder with the primary key or returnsnull
if it could not be found.static Map<Serializable,
ObjectFolder> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) 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 = ?.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 = ?.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 = ?.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 = ?.static int
filterCountByCompanyId
(long companyId) Returns the number of object folders that the user has permission to view where companyId = ?.static int
filterCountByUuid
(String uuid) Returns the number of object folders that the user has permission to view where uuid = ?.static int
filterCountByUuid_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 ObjectFolder
Returns the object folder where companyId = ? and name = ? or throws aNoSuchObjectFolderException
if 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 ObjectFolder
findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the first object folder in the ordered set where companyId = ?.static ObjectFolder
findByCompanyId_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 ObjectFolder
findByERC_C
(String externalReferenceCode, long companyId) Returns the object folder where externalReferenceCode = ? and companyId = ? or throws aNoSuchObjectFolderException
if it could not be found.static ObjectFolder
findByPrimaryKey
(long objectFolderId) Returns the object folder with the primary key or throws aNoSuchObjectFolderException
if 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 ObjectFolder
findByUuid_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 ObjectFolder
findByUuid_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 ObjectFolder
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the first object folder in the ordered set where uuid = ?.static ObjectFolder
findByUuid_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 ObjectFolderPersistence
static ObjectFolder
remove
(long objectFolderId) Removes the object folder with the primary key from the database.static void
Removes all the object folders from the database.static ObjectFolder
removeByC_N
(long companyId, String name) Removes the object folder where companyId = ? and name = ? from the database.static void
removeByCompanyId
(long companyId) Removes all the object folders where companyId = ? from the database.static ObjectFolder
removeByERC_C
(String externalReferenceCode, long companyId) Removes the object folder where externalReferenceCode = ? and companyId = ? from the database.static void
removeByUuid
(String uuid) Removes all the object folders where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the object folders where uuid = ? and companyId = ? from the database.static void
setPersistence
(ObjectFolderPersistence persistence) static ObjectFolder
update
(ObjectFolder objectFolder) static ObjectFolder
update
(ObjectFolder objectFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext) static ObjectFolder
updateImpl
(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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
null
if 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
null
if 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
null
if 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
null
if 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
null
if 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
null
if 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 aNoSuchObjectFolderException
if 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 returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the matching object folder, or
null
if a matching object folder could not be found
-
fetchByC_N
Returns the object folder where companyId = ? and name = ? or returnsnull
if 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
null
if 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 aNoSuchObjectFolderException
if 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 returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching object folder, or
null
if 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 returnsnull
if 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
null
if 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 aNoSuchObjectFolderException
if 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 returnsnull
if it could not be found.- Parameters:
objectFolderId
- the primary key of the object folder- Returns:
- the object folder, or
null
if 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
-