org.nuiton.topiatest
Class BillDAOAbstract<E extends Bill>

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

public abstract class BillDAOAbstract<E extends Bill>
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
BillDAOAbstract()
           
 
Method Summary
 void delete(E entity)
          delete :
 List<E> findAllByCost(int v)
          findAllByCost : Retourne les éléments ayant comme valeur pour l'attribut cost le paramètre.
 List<E> findAllByDate(Date v)
          findAllByDate : Retourne les éléments ayant comme valeur pour l'attribut date le paramètre.
 List<E> findAllByPaid(Boolean v)
          findAllByPaid : Retourne les éléments ayant comme valeur pour l'attribut paid le paramètre.
 Map<Class<? extends org.nuiton.topia.persistence.TopiaEntity>,List<? extends org.nuiton.topia.persistence.TopiaEntity>> findAllUsages(E entity)
          findAllUsages :
 E findByCost(int v)
          findByCost : Retourne le premier élément trouvé ayant comme valeur pour l'attribut cost le paramètre.
 E findByDate(Date v)
          findByDate : Retourne le premier élément trouvé ayant comme valeur pour l'attribut date le paramètre.
 E findByPaid(Boolean v)
          findByPaid : Retourne le premier élément trouvé ayant comme valeur pour l'attribut paid le paramètre.
<U extends org.nuiton.topia.persistence.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, count, countByQuery, create, create, create, createQuery, createQuery, existByProperties, existByQuery, existByTopiaId, findAll, findAllByProperties, findAllByProperties, findAllByProperty, findAllByQuery, findAllIds, findAllMappedByQuery, findAllMappedByQuery, findAllWithOrder, findByPrimaryKey, findByPrimaryKey, findByProperties, findByProperties, findByProperty, findByQuery, findByTopiaId, getContext, getId, getId, getRequestPermission, init, newInstance, removeTopiaEntityListener, removeTopiaEntityVetoable, 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, count, countByQuery, create, create, create, createQuery, createQuery, existByProperties, existByQuery, existByTopiaId, findAll, findAllByProperties, findAllByProperties, findAllByProperty, findAllByQuery, findAllIds, findAllMappedByQuery, findAllMappedByQuery, findAllWithOrder, findByPrimaryKey, findByPrimaryKey, findByProperties, findByProperties, findByProperty, findByQuery, findByTopiaId, getContext, getRequestPermission, init, newInstance, removeTopiaEntityListener, removeTopiaEntityVetoable, update
 

Constructor Detail

BillDAOAbstract

public BillDAOAbstract()
Method Detail

getEntityClass

public Class<E> getEntityClass()
getEntityClass :

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

findByCost

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

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

findAllByCost

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

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

findByDate

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

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

findAllByDate

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

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

findByPaid

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

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

findAllByPaid

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

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

findUsages

public <U extends org.nuiton.topia.persistence.TopiaEntity> List<U> findUsages(Class<U> type,
                                                                               E entity)
                                                                    throws org.nuiton.topia.TopiaException
findUsages :

Specified by:
findUsages in interface org.nuiton.topia.persistence.TopiaDAO<E extends Bill>
Overrides:
findUsages in class org.nuiton.topia.persistence.TopiaDAOImpl<E extends Bill>
Parameters:
type -
entity -
Returns:
List
Throws:
org.nuiton.topia.TopiaException

findAllUsages

public Map<Class<? extends org.nuiton.topia.persistence.TopiaEntity>,List<? extends org.nuiton.topia.persistence.TopiaEntity>> findAllUsages(E entity)
                                                                                                                                      throws org.nuiton.topia.TopiaException
findAllUsages :

Specified by:
findAllUsages in interface org.nuiton.topia.persistence.TopiaDAO<E extends Bill>
Overrides:
findAllUsages in class org.nuiton.topia.persistence.TopiaDAOImpl<E extends Bill>
Parameters:
entity -
Returns:
Map, List>
Throws:
org.nuiton.topia.TopiaException


Copyright © 2004-2011 CodeLutin. All Rights Reserved.