org.nuiton.topia.migration
Class TMSVersionDAOAbstract<E extends TMSVersion>

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaDAOImpl<E>
      extended by org.nuiton.topia.migration.TMSVersionDAOAbstract<E>
All Implemented Interfaces:
TopiaDAO<E>
Direct Known Subclasses:
TMSVersionDAOImpl

public abstract class TMSVersionDAOAbstract<E extends TMSVersion>
extends TopiaDAOImpl<E>
implements TopiaDAO<E>


Field Summary
 
Fields inherited from class org.nuiton.topia.persistence.TopiaDAOImpl
context, entityClass
 
Constructor Summary
TMSVersionDAOAbstract()
           
 
Method Summary
 void delete(E entity)
          delete :
 List<E> findAllByVersion(String v)
          findAllByVersion : Retourne les éléments ayant comme valeur pour l'attribut version le paramètre.
 Map<Class<? extends TopiaEntity>,List<? extends TopiaEntity>> findAllUsages(E entity)
          findAllUsages :
 E findByVersion(String v)
          findByVersion : Retourne le premier élément trouvé ayant comme valeur pour l'attribut version le paramètre.
<U extends 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, commitTransaction, create, create, create, createQuery, createQuery, findAll, findAllByProperties, findAllByProperties, findAllByProperty, findAllByQuery, findAllContainsProperties, findAllContainsProperties, findAllIds, findAllMappedByQuery, findAllMappedByQuery, findAllWithOrder, findByPrimaryKey, findByPrimaryKey, findByProperties, findByProperties, findByProperty, findByQuery, findByTopiaId, findContainsProperties, findContainsProperties, getContext, getId, getId, getRequestPermission, init, newInstance, 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, create, createQuery, createQuery, findAll, findAllByProperties, findAllByProperties, findAllByProperty, findAllByQuery, findAllContainsProperties, findAllContainsProperties, findAllIds, findAllMappedByQuery, findAllMappedByQuery, findAllWithOrder, findByPrimaryKey, findByPrimaryKey, findByProperties, findByProperties, findByProperty, findByQuery, findByTopiaId, findContainsProperties, findContainsProperties, getContext, getRequestPermission, init, newInstance, removeTopiaEntityListener, removeTopiaEntityVetoable, rollbackTransaction, size, update
 

Constructor Detail

TMSVersionDAOAbstract

public TMSVersionDAOAbstract()
Method Detail

getEntityClass

public Class<E> getEntityClass()
getEntityClass :

Specified by:
getEntityClass in interface TopiaDAO<E extends TMSVersion>
Overrides:
getEntityClass in class TopiaDAOImpl<E extends TMSVersion>
Returns:
Class

delete

public void delete(E entity)
            throws TopiaException
delete :

Specified by:
delete in interface TopiaDAO<E extends TMSVersion>
Overrides:
delete in class TopiaDAOImpl<E extends TMSVersion>
Parameters:
entity -
Throws:
TopiaException

findByVersion

public E findByVersion(String v)
                                   throws TopiaException
findByVersion : Retourne le premier élément trouvé ayant comme valeur pour l'attribut version le paramètre.

Parameters:
v -
Returns:
E
Throws:
TopiaException

findAllByVersion

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

Parameters:
v -
Returns:
List
Throws:
TopiaException

findUsages

public <U extends TopiaEntity> List<U> findUsages(Class<U> type,
                                                  E entity)
                                       throws TopiaException
findUsages :

Specified by:
findUsages in interface TopiaDAO<E extends TMSVersion>
Overrides:
findUsages in class TopiaDAOImpl<E extends TMSVersion>
Parameters:
type -
entity -
Returns:
List
Throws:
TopiaException

findAllUsages

public Map<Class<? extends TopiaEntity>,List<? extends TopiaEntity>> findAllUsages(E entity)
                                                                            throws TopiaException
findAllUsages :

Specified by:
findAllUsages in interface TopiaDAO<E extends TMSVersion>
Overrides:
findAllUsages in class TopiaDAOImpl<E extends TMSVersion>
Parameters:
entity -
Returns:
Map, List>
Throws:
TopiaException


Copyright © 2004-2010 CodeLutin. All Rights Reserved.