Interface UnitDao
-
- All Known Implementing Classes:
UnitDaoImpl
@Repository public interface UnitDao extends BaseDao<Unit>
- See Also:
Unit
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Unitfind(Unit unit)Does a look up for the given entity in the persistent storage, usually looking for a specific identifier ( either id or a string property).UnitfindOrCreate(Unit unit)Calls the find method, and if this method returns null, creates a new instance in the persistent storage.-
Methods inherited from interface ubic.gemma.persistence.service.BaseDao
countAll, create, create, getElementClass, getIdentifierPropertyName, load, load, loadAll, loadReference, loadReference, remove, remove, remove, save, save, update, update
-
-
-
-
Method Detail
-
find
Unit find(Unit unit)
Description copied from interface:BaseDaoDoes a look up for the given entity in the persistent storage, usually looking for a specific identifier ( either id or a string property).
-
findOrCreate
Unit findOrCreate(Unit unit)
Description copied from interface:BaseDaoCalls the find method, and if this method returns null, creates a new instance in the persistent storage.- Specified by:
findOrCreatein interfaceBaseDao<Unit>- Parameters:
unit- the entity to look for and persist if not found.- Returns:
- the given entity, guaranteed to be representing an entity present in the persistent storage.
-
-