Interface ObjectFolderPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<ObjectFolder>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcacheResult(ObjectFolder objectFolder) Caches the object folder in the entity cache if it is enabled.voidcacheResult(List<ObjectFolder> objectFolders) Caches the object folders in the entity cache if it is enabled.intcountAll()Returns the number of object folders.intcountByC_N(long companyId, String name) Returns the number of object folders where companyId = ? and name = ?.intcountByCompanyId(long companyId) Returns the number of object folders where companyId = ?.intcountByERC_C(String externalReferenceCode, long companyId) Returns the number of object folders where externalReferenceCode = ? and companyId = ?.intcountByUuid(String uuid) Returns the number of object folders where uuid = ?.intcountByUuid_C(String uuid, long companyId) Returns the number of object folders where uuid = ? and companyId = ?.create(long objectFolderId) Creates a new object folder with the primary key.fetchByC_N(long companyId, String name) Returns the object folder where companyId = ? and name = ? or returnsnullif it could not be found.fetchByC_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.fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the first object folder in the ordered set where companyId = ?.fetchByERC_C(String externalReferenceCode, long companyId) Returns the object folder where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found.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.fetchByPrimaryKey(long objectFolderId) Returns the object folder with the primary key or returnsnullif it could not be found.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 = ?.fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the first object folder in the ordered set where uuid = ?.intfilterCountByCompanyId(long companyId) Returns the number of object folders that the user has permission to view where companyId = ?.intfilterCountByUuid(String uuid) Returns the number of object folders that the user has permission to view where uuid = ?.intfilterCountByUuid_C(String uuid, long companyId) Returns the number of object folders that the user has permission to view where uuid = ? and companyId = ?.filterFindByCompanyId(long companyId) Returns all the object folders that the user has permission to view where companyId = ?.filterFindByCompanyId(long companyId, int start, int end) Returns a range of all the object folders that the user has permission to view where companyId = ?.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 = ?.filterFindByUuid(String uuid) Returns all the object folders that the user has permission to view where uuid = ?.filterFindByUuid(String uuid, int start, int end) Returns a range of all the object folders that the user has permission to view where uuid = ?.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 = ?.filterFindByUuid_C(String uuid, long companyId) Returns all the object folders that the user has permission to view where uuid = ? and companyId = ?.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 = ?.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 = ?.findAll()Returns all the object folders.findAll(int start, int end) Returns a range of all the object folders.findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns an ordered range of all the object folders.findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator, boolean useFinderCache) Returns an ordered range of all the object folders.Returns the object folder where companyId = ? and name = ? or throws aNoSuchObjectFolderExceptionif it could not be found.findByCompanyId(long companyId) Returns all the object folders where companyId = ?.findByCompanyId(long companyId, int start, int end) Returns a range of all the object folders where companyId = ?.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 = ?.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 = ?.findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the first object folder in the ordered set where companyId = ?.findByERC_C(String externalReferenceCode, long companyId) Returns the object folder where externalReferenceCode = ? and companyId = ? or throws aNoSuchObjectFolderExceptionif it could not be found.findByPrimaryKey(long objectFolderId) Returns the object folder with the primary key or throws aNoSuchObjectFolderExceptionif it could not be found.findByUuid(String uuid) Returns all the object folders where uuid = ?.findByUuid(String uuid, int start, int end) Returns a range of all the object folders where uuid = ?.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 = ?.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 = ?.findByUuid_C(String uuid, long companyId) Returns all the object folders where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the object folders where uuid = ? and companyId = ?.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 = ?.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 = ?.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 = ?.findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectFolder> orderByComparator) Returns the first object folder in the ordered set where uuid = ?.remove(long objectFolderId) Removes the object folder with the primary key from the database.voidRemoves all the object folders from the database.removeByC_N(long companyId, String name) Removes the object folder where companyId = ? and name = ? from the database.voidremoveByCompanyId(long companyId) Removes all the object folders where companyId = ? from the database.removeByERC_C(String externalReferenceCode, long companyId) Removes the object folder where externalReferenceCode = ? and companyId = ? from the database.voidremoveByUuid(String uuid) Removes all the object folders where uuid = ? from the database.voidremoveByUuid_C(String uuid, long companyId) Removes all the object folders where uuid = ? and companyId = ? from the database.updateImpl(ObjectFolder objectFolder) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
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 found
-
fetchByUuid_First
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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
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 found
-
fetchByUuid_C_First
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
-
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
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
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 found
-
fetchByCompanyId_First
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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the object folders where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
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
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
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 found
-
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
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
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 found
-
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
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
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 found
-
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 found
-
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
List<ObjectFolder> 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.object.model.impl.ObjectFolderModelImpl.- 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
void removeAll()Removes all the object folders from the database. -
countAll
int countAll()Returns the number of object folders.- Returns:
- the number of object folders
-