org.nuiton.topia.taas.entities
Class TaasUserDAOAbstract<E extends TaasUser>

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaDAOImpl<E>
      extended by org.nuiton.topia.taas.entities.TaasUserDAOAbstract<E>
All Implemented Interfaces:
TopiaDAO<E>
Direct Known Subclasses:
TaasUserDAOImpl

public abstract class TaasUserDAOAbstract<E extends TaasUser>
extends TopiaDAOImpl<E>
implements TopiaDAO<E>


Field Summary
 
Fields inherited from class org.nuiton.topia.persistence.TopiaDAOImpl
context, entityClass
 
Constructor Summary
TaasUserDAOAbstract()
           
 
Method Summary
 void delete(E entity)
          delete :
 List<E> findAllByEmail(String v)
          findAllByEmail : Retourne les éléments ayant comme valeur pour l'attribut email le paramètre.
 List<E> findAllByEnabled(boolean v)
          findAllByEnabled : Retourne les éléments ayant comme valeur pour l'attribut enabled le paramètre.
 List<E> findAllByLastConnectionDate(Date v)
          findAllByLastConnectionDate : Retourne les éléments ayant comme valeur pour l'attribut lastConnectionDate le paramètre.
 List<E> findAllByLink(String v)
          findAllByLink : Retourne les éléments ayant comme valeur pour l'attribut link le paramètre.
 List<E> findAllByLogin(String v)
          findAllByLogin : Retourne les éléments ayant comme valeur pour l'attribut login le paramètre.
 List<E> findAllByNumberOfConnection(int v)
          findAllByNumberOfConnection : Retourne les éléments ayant comme valeur pour l'attribut numberOfConnection le paramètre.
 List<E> findAllByPassword(String v)
          findAllByPassword : Retourne les éléments ayant comme valeur pour l'attribut password le paramètre.
 List<E> findAllContainsPrincipals(TaasPrincipal... v)
          findAllContainsPrincipals : Retourne les éléments trouvé dont l'attribut principals contient le paramètre.
 Map<Class<?>,List<? extends TopiaEntity>> findAllUsages(E entity)
          findAllUsages :
 E findByEmail(String v)
          findByEmail : Retourne le premier élément trouvé ayant comme valeur pour l'attribut email le paramètre.
 E findByEnabled(boolean v)
          findByEnabled : Retourne le premier élément trouvé ayant comme valeur pour l'attribut enabled le paramètre.
 E findByLastConnectionDate(Date v)
          findByLastConnectionDate : Retourne le premier élément trouvé ayant comme valeur pour l'attribut lastConnectionDate le paramètre.
 E findByLink(String v)
          findByLink : Retourne le premier élément trouvé ayant comme valeur pour l'attribut link le paramètre.
 E findByLogin(String v)
          findByLogin : Retourne le premier élément trouvé ayant comme valeur pour l'attribut login le paramètre.
 E findByNumberOfConnection(int v)
          findByNumberOfConnection : Retourne le premier élément trouvé ayant comme valeur pour l'attribut numberOfConnection le paramètre.
 E findByPassword(String v)
          findByPassword : Retourne le premier élément trouvé ayant comme valeur pour l'attribut password le paramètre.
 E findContainsPrincipals(TaasPrincipal... v)
          findContainsPrincipals : Retourne le premier élément trouvé dont l'attribut principals contient le paramètre.
<U extends TopiaEntity>
List<U>
findUsages(Class<U> type, E entity)
          findUsages :
 Class<E> getEntityClass()
          getEntityClass :
 
Methods inherited from class org.nuiton.topia.persistence.TopiaDAOImpl
addTopiaEntityListener, addTopiaEntityVetoable, commitTransaction, create, create, createQuery, createQuery, findAll, findAllByProperties, findAllByProperties, findAllByProperty, findAllByQuery, findAllContainsProperties, findAllContainsProperties, findAllIds, findAllMappedByQuery, findAllMappedByQuery, findAllWithOrder, findByPrimaryKey, findByPrimaryKey, findByProperties, findByProperties, findByProperty, findByQuery, findByTopiaId, findContainsProperties, findContainsProperties, getContext, getId, getId, getRequestPermission, init, instanciateNew, removeTopiaEntityListener, removeTopiaEntityVetoable, rollbackTransaction, size, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuiton.topia.persistence.TopiaDAO
addTopiaEntityListener, addTopiaEntityVetoable, commitTransaction, create, create, createQuery, createQuery, findAll, findAllByProperties, findAllByProperties, findAllByProperty, findAllByQuery, findAllContainsProperties, findAllContainsProperties, findAllIds, findAllMappedByQuery, findAllMappedByQuery, findAllWithOrder, findByPrimaryKey, findByPrimaryKey, findByProperties, findByProperties, findByProperty, findByQuery, findByTopiaId, findContainsProperties, findContainsProperties, getContext, getRequestPermission, init, removeTopiaEntityListener, removeTopiaEntityVetoable, rollbackTransaction, size, update
 

Constructor Detail

TaasUserDAOAbstract

public TaasUserDAOAbstract()
Method Detail

getEntityClass

public Class<E> getEntityClass()
getEntityClass :

Specified by:
getEntityClass in interface TopiaDAO<E extends TaasUser>
Overrides:
getEntityClass in class TopiaDAOImpl<E extends TaasUser>
Returns:
Class

delete

public void delete(E entity)
            throws TopiaException
delete :

Specified by:
delete in interface TopiaDAO<E extends TaasUser>
Overrides:
delete in class TopiaDAOImpl<E extends TaasUser>
Parameters:
entity -
Throws:
TopiaException

findByLogin

public E findByLogin(String v)
                               throws TopiaException
findByLogin : Retourne le premier élément trouvé ayant comme valeur pour l'attribut login le paramètre.

Parameters:
v -
Returns:
E
Throws:
TopiaException

findAllByLogin

public List<E> findAllByLogin(String v)
                                        throws TopiaException
findAllByLogin : Retourne les éléments ayant comme valeur pour l'attribut login le paramètre.

Parameters:
v -
Returns:
List
Throws:
TopiaException

findByPassword

public E findByPassword(String v)
                                  throws TopiaException
findByPassword : Retourne le premier élément trouvé ayant comme valeur pour l'attribut password le paramètre.

Parameters:
v -
Returns:
E
Throws:
TopiaException

findAllByPassword

public List<E> findAllByPassword(String v)
                                           throws TopiaException
findAllByPassword : Retourne les éléments ayant comme valeur pour l'attribut password le paramètre.

Parameters:
v -
Returns:
List
Throws:
TopiaException

findByEmail

public E findByEmail(String v)
                               throws TopiaException
findByEmail : Retourne le premier élément trouvé ayant comme valeur pour l'attribut email le paramètre.

Parameters:
v -
Returns:
E
Throws:
TopiaException

findAllByEmail

public List<E> findAllByEmail(String v)
                                        throws TopiaException
findAllByEmail : Retourne les éléments ayant comme valeur pour l'attribut email le paramètre.

Parameters:
v -
Returns:
List
Throws:
TopiaException

findByEnabled

public E findByEnabled(boolean v)
                                 throws TopiaException
findByEnabled : Retourne le premier élément trouvé ayant comme valeur pour l'attribut enabled le paramètre.

Parameters:
v -
Returns:
E
Throws:
TopiaException

findAllByEnabled

public List<E> findAllByEnabled(boolean v)
                                          throws TopiaException
findAllByEnabled : Retourne les éléments ayant comme valeur pour l'attribut enabled le paramètre.

Parameters:
v -
Returns:
List
Throws:
TopiaException

findByLastConnectionDate

public E findByLastConnectionDate(Date v)
                                            throws TopiaException
findByLastConnectionDate : Retourne le premier élément trouvé ayant comme valeur pour l'attribut lastConnectionDate le paramètre.

Parameters:
v -
Returns:
E
Throws:
TopiaException

findAllByLastConnectionDate

public List<E> findAllByLastConnectionDate(Date v)
                                                     throws TopiaException
findAllByLastConnectionDate : Retourne les éléments ayant comme valeur pour l'attribut lastConnectionDate le paramètre.

Parameters:
v -
Returns:
List
Throws:
TopiaException

findByNumberOfConnection

public E findByNumberOfConnection(int v)
                                            throws TopiaException
findByNumberOfConnection : Retourne le premier élément trouvé ayant comme valeur pour l'attribut numberOfConnection le paramètre.

Parameters:
v -
Returns:
E
Throws:
TopiaException

findAllByNumberOfConnection

public List<E> findAllByNumberOfConnection(int v)
                                                     throws TopiaException
findAllByNumberOfConnection : Retourne les éléments ayant comme valeur pour l'attribut numberOfConnection le paramètre.

Parameters:
v -
Returns:
List
Throws:
TopiaException

findByLink

public E findByLink(String v)
                              throws TopiaException
findByLink : Retourne le premier élément trouvé ayant comme valeur pour l'attribut link le paramètre.

Parameters:
v -
Returns:
E
Throws:
TopiaException

findAllByLink

public List<E> findAllByLink(String v)
                                       throws TopiaException
findAllByLink : Retourne les éléments ayant comme valeur pour l'attribut link le paramètre.

Parameters:
v -
Returns:
List
Throws:
TopiaException

findContainsPrincipals

public E findContainsPrincipals(TaasPrincipal... v)
                                          throws TopiaException
findContainsPrincipals : Retourne le premier élément trouvé dont l'attribut principals contient le paramètre.

Parameters:
v -
Returns:
E
Throws:
TopiaException

findAllContainsPrincipals

public List<E> findAllContainsPrincipals(TaasPrincipal... v)
                                                   throws TopiaException
findAllContainsPrincipals : Retourne les éléments trouvé dont l'attribut principals contient le paramètre.

Parameters:
v -
Returns:
List
Throws:
TopiaException

findUsages

public <U extends TopiaEntity> List<U> findUsages(Class<U> type,
                                                  E entity)
                                       throws TopiaException
findUsages :

Specified by:
findUsages in interface TopiaDAO<E extends TaasUser>
Overrides:
findUsages in class TopiaDAOImpl<E extends TaasUser>
Parameters:
type -
entity -
Returns:
List
Throws:
TopiaException

findAllUsages

public Map<Class<?>,List<? extends TopiaEntity>> findAllUsages(E entity)
                                                        throws TopiaException
findAllUsages :

Specified by:
findAllUsages in interface TopiaDAO<E extends TaasUser>
Overrides:
findAllUsages in class TopiaDAOImpl<E extends TaasUser>
Parameters:
entity -
Returns:
Map, List>
Throws:
TopiaException


Copyright © 2004-2010 CodeLutin. All Rights Reserved.