org.nuiton.topia.security.entities.user
Class TopiaGroupDAOAbstract<E extends TopiaGroup>

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaDAOImpl<E>
      extended by org.nuiton.topia.security.entities.user.TopiaGroupDAOAbstract<E>
All Implemented Interfaces:
TopiaDAO<E>
Direct Known Subclasses:
TopiaGroupDAOImpl

public abstract class TopiaGroupDAOAbstract<E extends TopiaGroup>
extends TopiaDAOImpl<E>
implements TopiaDAO<E>


Field Summary
 
Fields inherited from class org.nuiton.topia.persistence.TopiaDAOImpl
context, entityClass
 
Constructor Summary
TopiaGroupDAOAbstract()
           
 
Method Summary
 void delete(E entity)
          delete :
 List<E> findAllByDescription(String v)
          findAllByDescription : Retourne les éléments ayant comme valeur pour l'attribut description le paramètre.
 List<E> findAllByName(String v)
          findAllByName : Retourne les éléments ayant comme valeur pour l'attribut name le paramètre.
 List<E> findAllBySuperGroup(TopiaGroup v)
          findAllBySuperGroup : Retourne les éléments ayant comme valeur pour l'attribut superGroup le paramètre.
 List<E> findAllContainsSubGroup(TopiaGroup... v)
          findAllContainsSubGroup : Retourne les éléments trouvé dont l'attribut subGroup contient le paramètre.
 List<E> findAllContainsTopiaUser(TopiaUser... v)
          findAllContainsTopiaUser : Retourne les éléments trouvé dont l'attribut topiaUser contient le paramètre.
 Map<Class<?>,List<? extends TopiaEntity>> findAllUsages(E entity)
          findAllUsages :
 E findByDescription(String v)
          findByDescription : Retourne le premier élément trouvé ayant comme valeur pour l'attribut description le paramètre.
 E findByName(String v)
          findByName : Retourne le premier élément trouvé ayant comme valeur pour l'attribut name le paramètre.
 E findBySuperGroup(TopiaGroup v)
          findBySuperGroup : Retourne le premier élément trouvé ayant comme valeur pour l'attribut superGroup le paramètre.
 E findContainsSubGroup(TopiaGroup... v)
          findContainsSubGroup : Retourne le premier élément trouvé dont l'attribut subGroup contient le paramètre.
 E findContainsTopiaUser(TopiaUser... v)
          findContainsTopiaUser : Retourne le premier élément trouvé dont l'attribut topiaUser 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

TopiaGroupDAOAbstract

public TopiaGroupDAOAbstract()
Method Detail

getEntityClass

public Class<E> getEntityClass()
getEntityClass :

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

delete

public void delete(E entity)
            throws TopiaException
delete :

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

findByName

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

Parameters:
v -
Returns:
E
Throws:
TopiaException

findAllByName

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

Parameters:
v -
Returns:
List
Throws:
TopiaException

findByDescription

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

Parameters:
v -
Returns:
E
Throws:
TopiaException

findAllByDescription

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

Parameters:
v -
Returns:
List
Throws:
TopiaException

findContainsTopiaUser

public E findContainsTopiaUser(TopiaUser... v)
                                           throws TopiaException
findContainsTopiaUser : Retourne le premier élément trouvé dont l'attribut topiaUser contient le paramètre.

Parameters:
v -
Returns:
E
Throws:
TopiaException

findAllContainsTopiaUser

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

Parameters:
v -
Returns:
List
Throws:
TopiaException

findBySuperGroup

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

Parameters:
v -
Returns:
E
Throws:
TopiaException

findAllBySuperGroup

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

Parameters:
v -
Returns:
List
Throws:
TopiaException

findContainsSubGroup

public E findContainsSubGroup(TopiaGroup... v)
                                          throws TopiaException
findContainsSubGroup : Retourne le premier élément trouvé dont l'attribut subGroup contient le paramètre.

Parameters:
v -
Returns:
E
Throws:
TopiaException

findAllContainsSubGroup

public List<E> findAllContainsSubGroup(TopiaGroup... v)
                                                   throws TopiaException
findAllContainsSubGroup : Retourne les éléments trouvé dont l'attribut subGroup 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 TopiaGroup>
Overrides:
findUsages in class TopiaDAOImpl<E extends TopiaGroup>
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 TopiaGroup>
Overrides:
findAllUsages in class TopiaDAOImpl<E extends TopiaGroup>
Parameters:
entity -
Returns:
Map, List>
Throws:
TopiaException


Copyright © 2004-2010 CodeLutin. All Rights Reserved.