org.chorem.callao.entity
Class PeriodDAOAbstract<E extends Period>

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaDAOImpl<E>
      extended by org.chorem.callao.entity.PeriodDAOAbstract<E>
All Implemented Interfaces:
org.nuiton.topia.persistence.TopiaDAO<E>
Direct Known Subclasses:
PeriodDAOImpl

public abstract class PeriodDAOAbstract<E extends Period>
extends org.nuiton.topia.persistence.TopiaDAOImpl<E>
implements org.nuiton.topia.persistence.TopiaDAO<E>

Implantation DAO pour l'entité Period. Cette classe contient une implantation de TopiaDAO a laquel elle peut deleguer des traitements


Field Summary
 
Fields inherited from class org.nuiton.topia.persistence.TopiaDAOImpl
context, entityClass
 
Constructor Summary
PeriodDAOAbstract()
           
 
Method Summary
 void delete(E entity)
           
 java.util.List<E> findAllByBeginPeriod(java.util.Date v)
          Retourne les éléments ayant comme valeur pour l'attribut beginPeriod le paramètre
 java.util.List<E> findAllByEndPeriod(java.util.Date v)
          Retourne les éléments ayant comme valeur pour l'attribut endPeriod le paramètre
 java.util.List<E> findAllByLocked(boolean v)
          Retourne les éléments ayant comme valeur pour l'attribut locked le paramètre
 java.util.List<E> findAllContainsTimeSpan(TimeSpan... v)
          Retourne les éléments trouvé dont l'attribut timeSpan contient le paramètre
 E findByBeginPeriod(java.util.Date v)
          Retourne le premier élément trouvé ayant comme valeur pour l'attribut beginPeriod le paramètre
 E findByEndPeriod(java.util.Date v)
          Retourne le premier élément trouvé ayant comme valeur pour l'attribut endPeriod le paramètre
 E findByLocked(boolean v)
          Retourne le premier élément trouvé ayant comme valeur pour l'attribut locked le paramètre
 E findContainsTimeSpan(TimeSpan... v)
          Retourne le premier élément trouvé dont l'attribut timeSpan contient le paramètre
 java.lang.Class<E> getEntityClass()
           
 
Methods inherited from class org.nuiton.topia.persistence.TopiaDAOImpl
addTopiaEntityListener, addTopiaEntityVetoable, commitTransaction, create, create, 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, 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

PeriodDAOAbstract

public PeriodDAOAbstract()
Method Detail

getEntityClass

public java.lang.Class<E> getEntityClass()
Specified by:
getEntityClass in interface org.nuiton.topia.persistence.TopiaDAO<E extends Period>
Overrides:
getEntityClass in class org.nuiton.topia.persistence.TopiaDAOImpl<E extends Period>

delete

public void delete(E entity)
            throws org.nuiton.topia.TopiaException
Specified by:
delete in interface org.nuiton.topia.persistence.TopiaDAO<E extends Period>
Overrides:
delete in class org.nuiton.topia.persistence.TopiaDAOImpl<E extends Period>
Throws:
org.nuiton.topia.TopiaException

findByBeginPeriod

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

Parameters:
v - la valeur que doit avoir beginPeriod
Returns:
un element ou null
Throws:
org.nuiton.topia.TopiaException

findAllByBeginPeriod

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

Parameters:
v - la valeur que doit avoir beginPeriod
Returns:
une liste
Throws:
org.nuiton.topia.TopiaException

findByEndPeriod

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

Parameters:
v - la valeur que doit avoir endPeriod
Returns:
un element ou null
Throws:
org.nuiton.topia.TopiaException

findAllByEndPeriod

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

Parameters:
v - la valeur que doit avoir endPeriod
Returns:
une liste
Throws:
org.nuiton.topia.TopiaException

findByLocked

public E findByLocked(boolean v)
                              throws org.nuiton.topia.TopiaException
Retourne le premier élément trouvé ayant comme valeur pour l'attribut locked le paramètre

Parameters:
v - la valeur que doit avoir locked
Returns:
un element ou null
Throws:
org.nuiton.topia.TopiaException

findAllByLocked

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

Parameters:
v - la valeur que doit avoir locked
Returns:
une liste
Throws:
org.nuiton.topia.TopiaException

findContainsTimeSpan

public E findContainsTimeSpan(TimeSpan... v)
                                      throws org.nuiton.topia.TopiaException
Retourne le premier élément trouvé dont l'attribut timeSpan contient le paramètre

Parameters:
v - la valeur que doit contenir timeSpan
Returns:
un element ou null
Throws:
org.nuiton.topia.TopiaException

findAllContainsTimeSpan

public java.util.List<E> findAllContainsTimeSpan(TimeSpan... v)
                                                         throws org.nuiton.topia.TopiaException
Retourne les éléments trouvé dont l'attribut timeSpan contient le paramètre

Parameters:
v - la valeur que doit contenir timeSpan
Returns:
une liste
Throws:
org.nuiton.topia.TopiaException


Copyright © 2008-2009 CodeLutin. All Rights Reserved.