net.sf.pmr.core.data.user
Class UserMapperImpl

java.lang.Object
  extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
      extended by net.sf.pmr.core.data.user.UserMapperImpl
All Implemented Interfaces:
UserMapper, net.sf.pmr.keopsframework.data.DomainListMapper, net.sf.pmr.keopsframework.data.DomainObjectAggregateMemberMapper, net.sf.pmr.keopsframework.data.DomainObjectRootAggregateMapper, org.springframework.beans.factory.InitializingBean

public class UserMapperImpl
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements UserMapper

Author:
Arnaud

Field Summary
 
Fields inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
logger
 
Constructor Summary
UserMapperImpl()
           
 
Method Summary
 void addOrUpdate(java.lang.Object entity)
          add or update a user
 java.lang.Integer countAll()
          Count All User
 void delete(java.lang.Object entity)
          Delete a user
 java.util.List findAll()
          find all users
 java.lang.Object findById(int id)
          find a user by his Id
 User findByLogin(java.lang.String login)
          find a user by his login
 java.util.Collection findCollectionForObject(java.lang.Object object)
           
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserMapperImpl

public UserMapperImpl()
Method Detail

findById

public final java.lang.Object findById(int id)
find a user by his Id

Specified by:
findById in interface net.sf.pmr.keopsframework.data.DomainObjectAggregateMemberMapper
Parameters:
id - id
Returns:
Entity User find

findByLogin

public final User findByLogin(java.lang.String login)
find a user by his login

Specified by:
findByLogin in interface UserMapper
Parameters:
login - login
Returns:
Entity User find

findAll

public final java.util.List findAll()
find all users

Specified by:
findAll in interface UserMapper
Returns:
List of user

countAll

public final java.lang.Integer countAll()
Count All User

Specified by:
countAll in interface UserMapper
Returns:
int number of user

addOrUpdate

public final void addOrUpdate(java.lang.Object entity)
add or update a user

Specified by:
addOrUpdate in interface net.sf.pmr.keopsframework.data.DomainObjectRootAggregateMapper
Parameters:
entity - user to update

delete

public final void delete(java.lang.Object entity)
Delete a user

Specified by:
delete in interface net.sf.pmr.keopsframework.data.DomainObjectRootAggregateMapper
Parameters:
entity - user to delete

findCollectionForObject

public final java.util.Collection findCollectionForObject(java.lang.Object object)
Specified by:
findCollectionForObject in interface net.sf.pmr.keopsframework.data.DomainListMapper
See Also:
DomainListMapper.findCollectionForObject(java.lang.Object)


Copyright © 2005 Arnaud Prost. All Rights Reserved.