org.nuiton.topiatest.deletetest
Class Telephone2DAOAbstract<E extends Telephone2>

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaDAOImpl<E>
      extended by org.nuiton.topia.persistence.TopiaDAOLegacy<E>
          extended by org.nuiton.topiatest.deletetest.Contact2DAOAbstract<E>
              extended by org.nuiton.topiatest.deletetest.Contact2DAOImpl<E>
                  extended by org.nuiton.topiatest.deletetest.Telephone2DAOAbstract<E>
All Implemented Interfaces:
org.nuiton.topia.persistence.TopiaDAO<E>
Direct Known Subclasses:
Telephone2DAOImpl

public abstract class Telephone2DAOAbstract<E extends Telephone2>
extends Contact2DAOImpl<E>
implements org.nuiton.topia.persistence.TopiaDAO<E>


Field Summary
 
Fields inherited from class org.nuiton.topia.persistence.TopiaDAOLegacy
context, entityClass
 
Constructor Summary
Telephone2DAOAbstract()
           
 
Method Summary
 void delete(E entity)
          delete :
 List<E> findAllByCountry(String v)
          findAllByCountry : Retourne les éléments ayant comme valeur pour l'attribut country le paramètre.
 List<E> findAllByPrefix(String v)
          findAllByPrefix : Retourne les éléments ayant comme valeur pour l'attribut prefix le paramètre.
 Map<Class<? extends org.nuiton.topia.persistence.TopiaEntity>,List<? extends org.nuiton.topia.persistence.TopiaEntity>> findAllUsages(E entity)
          findAllUsages :
 E findByCountry(String v)
          findByCountry : Retourne le premier élément trouvé ayant comme valeur pour l'attribut country le paramètre.
 E findByPrefix(String v)
          findByPrefix : Retourne le premier élément trouvé ayant comme valeur pour l'attribut prefix 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.topiatest.deletetest.Contact2DAOImpl
findAllByCompany
 
Methods inherited from class org.nuiton.topiatest.deletetest.Contact2DAOAbstract
findAllByContactValue, findAllByType, findByContactValue, findByType
 
Methods inherited from class org.nuiton.topia.persistence.TopiaDAOLegacy
addTopiaEntityListener, addTopiaEntityVetoable, create, create, findAll, findAllByProperties, findAllByProperties, findAllByProperty, findAllIds, findAllWithOrder, findByPrimaryKey, findByPrimaryKey, findByProperties, findByProperties, findByProperty, findByTopiaId, getContext, getId, getId, getRequestPermission, init, instanciateNew, removeTopiaEntityListener, removeTopiaEntityVetoable, size, update
 
Methods inherited from class org.nuiton.topia.persistence.TopiaDAOImpl
count, countByQuery, create, createQuery, createQuery, existByProperties, existByQuery, existByTopiaId, findAllByQuery, findAllMappedByQuery, findAllMappedByQuery, findByQuery, newInstance
 
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, size, update
 

Constructor Detail

Telephone2DAOAbstract

public Telephone2DAOAbstract()
Method Detail

getEntityClass

public Class<E> getEntityClass()
getEntityClass :

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

findByPrefix

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

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

findAllByPrefix

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

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

findByCountry

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

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

findAllByCountry

public List<E> findAllByCountry(String v)
                                            throws org.nuiton.topia.TopiaException
findAllByCountry : Retourne les éléments ayant comme valeur pour l'attribut country 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 Telephone2>
Overrides:
findUsages in class Contact2DAOAbstract<E extends Telephone2>
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 Telephone2>
Overrides:
findAllUsages in class Contact2DAOAbstract<E extends Telephone2>
Parameters:
entity -
Returns:
Map, List>
Throws:
org.nuiton.topia.TopiaException


Copyright © 2004-2010 CodeLutin. All Rights Reserved.