org.nuiton.topiatest
Class ProductDAOAbstract<E extends Product>

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

public abstract class ProductDAOAbstract<E extends Product>
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
ProductDAOAbstract()
           
 
Method Summary
 void delete(E entity)
          delete :
 java.util.List<E> findAllByName(java.lang.String v)
          findAllByName : Retourne les éléments ayant comme valeur pour l'attribut name le paramètre.
 java.util.List<E> findAllByType(Type v)
          findAllByType : Retourne les éléments ayant comme valeur pour l'attribut type le paramètre.
 E findByName(java.lang.String v)
          findByName : Retourne le premier élément trouvé ayant comme valeur pour l'attribut name le paramètre.
 E findByType(Type v)
          findByType : Retourne le premier élément trouvé ayant comme valeur pour l'attribut type le paramètre.
 java.lang.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

ProductDAOAbstract

public ProductDAOAbstract()
Method Detail

getEntityClass

public java.lang.Class<E> getEntityClass()
getEntityClass :

Specified by:
getEntityClass in interface org.nuiton.topia.persistence.TopiaDAO<E extends Product>
Overrides:
getEntityClass in class org.nuiton.topia.persistence.TopiaDAOImpl<E extends Product>
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 Product>
Overrides:
delete in class org.nuiton.topia.persistence.TopiaDAOImpl<E extends Product>
Parameters:
entity -
Throws:
org.nuiton.topia.TopiaException

findByName

public E findByName(java.lang.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 java.util.List<E> findAllByName(java.lang.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

findByType

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

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

findAllByType

public java.util.List<E> findAllByType(Type v)
                                                throws org.nuiton.topia.TopiaException
findAllByType : Retourne les éléments ayant comme valeur pour l'attribut type le paramètre.

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


Copyright © 2004-2010 CodeLutin. All Rights Reserved.