Class UserGroupDaoImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.AbstractDao<UserGroup>
-
- ubic.gemma.persistence.service.common.auditAndSecurity.UserGroupDaoImpl
-
- All Implemented Interfaces:
BaseDao<UserGroup>
,UserGroupDao
@Repository public class UserGroupDaoImpl extends AbstractDao<UserGroup> implements UserGroupDao
- See Also:
UserGroup
-
-
Field Summary
-
Fields inherited from class ubic.gemma.persistence.service.AbstractDao
elementClass, log
-
-
Constructor Summary
Constructors Constructor Description UserGroupDaoImpl(SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserGroup
create(UserGroup userGroup)
Create an object.UserGroup
find(UserGroup entity)
Does a look up for the given entity in the persistent storage, usually looking for a specific identifier ( either id or a string property).UserGroup
findByName(String name)
Collection<UserGroup>
findGroupsForUser(User user)
void
remove(UserGroup userGroup)
Remove a persistent instancevoid
update(UserGroup userGroup)
-
Methods inherited from class ubic.gemma.persistence.service.AbstractDao
countAll, create, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, getBatchSize, getElementClass, getIdentifierPropertyName, getSessionFactory, load, load, loadAll, loadReference, loadReference, remove, remove, save, save, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ubic.gemma.persistence.service.BaseDao
countAll, create, findOrCreate, getElementClass, getIdentifierPropertyName, load, load, loadAll, loadReference, loadReference, remove, remove, save, save, update
-
-
-
-
Constructor Detail
-
UserGroupDaoImpl
@Autowired public UserGroupDaoImpl(SessionFactory sessionFactory)
-
-
Method Detail
-
find
public UserGroup find(UserGroup entity)
Description copied from interface:BaseDao
Does a look up for the given entity in the persistent storage, usually looking for a specific identifier ( either id or a string property).
-
findByName
public UserGroup findByName(String name)
- Specified by:
findByName
in interfaceUserGroupDao
-
findGroupsForUser
public Collection<UserGroup> findGroupsForUser(User user)
- Specified by:
findGroupsForUser
in interfaceUserGroupDao
-
create
public UserGroup create(UserGroup userGroup)
Description copied from interface:BaseDao
Create an object. If the entity type is immutable, this may also remove any existing entities identified by an appropriate 'find' method.
-
remove
public void remove(UserGroup userGroup)
Description copied from interface:BaseDao
Remove a persistent instance
-
-