Interface GlobalDescriptionDao
-
- All Superinterfaces:
ObjectDao
- All Known Subinterfaces:
GlobalDescriptionDaoInternal
- All Known Implementing Classes:
DefaultGlobalDescriptionDao
public interface GlobalDescriptionDao extends ObjectDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GlobalDescription
getGlobalDescription()
Find the global description by content type.GlobalDescription
getGlobalDescriptionById(long recordId)
Returns the global description record by id.-
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, findAllSorted, findByClassIds, getPersistentClass, refresh, remove, replicate, save, saveRaw
-
-
-
-
Method Detail
-
getGlobalDescription
GlobalDescription getGlobalDescription()
Find the global description by content type. Would be extremely slow operation when it is called on a cold instance because it has to scan the entire CONTENT table.- Returns:
- global description record if found or null if not found
-
getGlobalDescriptionById
GlobalDescription getGlobalDescriptionById(long recordId)
Returns the global description record by id. It assumes that the caller knows ID of the global description record (for example, it was stored/cached somewhere else). Note that this method never returns invalid or wrong record. For example, if a record was not found, or a record with a wrong content type is found, this method will return null.- Parameters:
recordId
- record id- Returns:
- global description record if found or null if not found
- Since:
- 8.1.0
-
-