org.nuiton.topiatest
Class DepartmentDAOAbstract<E extends Department>

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaDAOImpl<E>
      extended by org.nuiton.topiatest.DepartmentDAOAbstract<E>
All Implemented Interfaces:
org.nuiton.topia.persistence.TopiaDAO<E>
Direct Known Subclasses:
DepartmentDAOImpl

public abstract class DepartmentDAOAbstract<E extends Department>
extends org.nuiton.topia.persistence.TopiaDAOImpl<E>
implements org.nuiton.topia.persistence.TopiaDAO<E>


Field Summary
 
Fields inherited from class org.nuiton.topia.persistence.TopiaDAOImpl
context, entityClass
 
Constructor Summary
DepartmentDAOAbstract()
           
 
Method Summary
 void delete(E entity)
          delete :
 List<E> findAllByCompany(Company v)
          findAllByCompany : Retourne les éléments ayant comme valeur pour l'attribut company le paramètre.
 List<E> findAllByLeader(Employe v)
          findAllByLeader : Retourne les éléments ayant comme valeur pour l'attribut leader 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> findAllContainsProduct(Product... v)
          findAllContainsProduct : Retourne les éléments trouvé dont l'attribut product contient le paramètre.
 E findByCompany(Company v)
          findByCompany : Retourne le premier élément trouvé ayant comme valeur pour l'attribut company le paramètre.
 E findByLeader(Employe v)
          findByLeader : Retourne le premier élément trouvé ayant comme valeur pour l'attribut leader 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 findContainsProduct(Product... v)
          findContainsProduct : Retourne le premier élément trouvé dont l'attribut product contient le paramètre.
 Class<E> getEntityClass()
          getEntityClass :
 
Methods inherited from class org.nuiton.topia.persistence.TopiaDAOImpl
addTopiaEntityListener, addTopiaEntityVetoable, commitTransaction, create, create, createQuery, createQuery, findAll, findAllByProperties, findAllByProperties, findAllByProperty, findAllContainsProperties, findAllContainsProperties, findAllIds, findAllWithOrder, findByPrimaryKey, findByPrimaryKey, findByProperties, findByProperties, findByProperty, 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, findAllContainsProperties, findAllContainsProperties, findAllIds, findAllWithOrder, findByPrimaryKey, findByPrimaryKey, findByProperties, findByProperties, findByProperty, findByTopiaId, findContainsProperties, findContainsProperties, getContext, getRequestPermission, init, removeTopiaEntityListener, removeTopiaEntityVetoable, rollbackTransaction, size, update
 

Constructor Detail

DepartmentDAOAbstract

public DepartmentDAOAbstract()
Method Detail

getEntityClass

public Class<E> getEntityClass()
getEntityClass :

Specified by:
getEntityClass in interface org.nuiton.topia.persistence.TopiaDAO<E extends Department>
Overrides:
getEntityClass in class org.nuiton.topia.persistence.TopiaDAOImpl<E extends Department>
Returns:
Class

delete

public void delete(E entity)
            throws org.nuiton.topia.TopiaException
delete :

Specified by:
delete in interface org.nuiton.topia.persistence.TopiaDAO<E extends Department>
Overrides:
delete in class org.nuiton.topia.persistence.TopiaDAOImpl<E extends Department>
Parameters:
entity -
Throws:
org.nuiton.topia.TopiaException

findByName

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

Parameters:
v -
Returns:
E
Throws:
org.nuiton.topia.TopiaException

findAllByName

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

Parameters:
v -
Returns:
List
Throws:
org.nuiton.topia.TopiaException

findByLeader

public E findByLeader(Employe v)
                                  throws org.nuiton.topia.TopiaException
findByLeader : Retourne le premier élément trouvé ayant comme valeur pour l'attribut leader le paramètre.

Parameters:
v -
Returns:
E
Throws:
org.nuiton.topia.TopiaException

findAllByLeader

public List<E> findAllByLeader(Employe v)
                                           throws org.nuiton.topia.TopiaException
findAllByLeader : Retourne les éléments ayant comme valeur pour l'attribut leader le paramètre.

Parameters:
v -
Returns:
List
Throws:
org.nuiton.topia.TopiaException

findByCompany

public E findByCompany(Company v)
                                   throws org.nuiton.topia.TopiaException
findByCompany : Retourne le premier élément trouvé ayant comme valeur pour l'attribut company le paramètre.

Parameters:
v -
Returns:
E
Throws:
org.nuiton.topia.TopiaException

findAllByCompany

public List<E> findAllByCompany(Company v)
                                            throws org.nuiton.topia.TopiaException
findAllByCompany : Retourne les éléments ayant comme valeur pour l'attribut company le paramètre.

Parameters:
v -
Returns:
List
Throws:
org.nuiton.topia.TopiaException

findContainsProduct

public E findContainsProduct(Product... v)
                                         throws org.nuiton.topia.TopiaException
findContainsProduct : Retourne le premier élément trouvé dont l'attribut product contient le paramètre.

Parameters:
v -
Returns:
E
Throws:
org.nuiton.topia.TopiaException

findAllContainsProduct

public List<E> findAllContainsProduct(Product... v)
                                                  throws org.nuiton.topia.TopiaException
findAllContainsProduct : Retourne les éléments trouvé dont l'attribut product contient le paramètre.

Parameters:
v -
Returns:
List
Throws:
org.nuiton.topia.TopiaException


Copyright © 2004-2010 CodeLutin. All Rights Reserved.