org.nuiton.topiatest
Class GeneralizedNaturalizedEntityDAOAbstract<E extends GeneralizedNaturalizedEntity>

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaDAOImpl<E>
      extended by org.nuiton.topiatest.NaturalizedEntityDAOAbstract<E>
          extended by org.nuiton.topiatest.NaturalizedEntityDAOImpl<E>
              extended by org.nuiton.topiatest.GeneralizedNaturalizedEntityDAOAbstract<E>
All Implemented Interfaces:
org.nuiton.topia.persistence.TopiaDAO<E>
Direct Known Subclasses:
GeneralizedNaturalizedEntityDAOImpl

public abstract class GeneralizedNaturalizedEntityDAOAbstract<E extends GeneralizedNaturalizedEntity>
extends NaturalizedEntityDAOImpl<E>


Field Summary
 
Fields inherited from class org.nuiton.topia.persistence.TopiaDAOImpl
context, entityClass
 
Constructor Summary
GeneralizedNaturalizedEntityDAOAbstract()
           
 
Method Summary
 E create(Integer naturalIdNotNull, String naturalIdNull)
          Deprecated. since 2.6.10, prefer use createByNaturalId(java.lang.Integer, java.lang.String)
 E createByNaturalId(Integer naturalIdNotNull, String naturalIdNull)
           
 E createByNotNull(Integer naturalIdNotNull)
           
 boolean existByNaturalId(Integer naturalIdNotNull, String naturalIdNull)
           
 Map<Class<? extends org.nuiton.topia.persistence.TopiaEntity>,List<? extends org.nuiton.topia.persistence.TopiaEntity>> findAllUsages(E entity)
           
 E findByNaturalId(Integer naturalIdNotNull, String naturalIdNull)
           
<U extends org.nuiton.topia.persistence.TopiaEntity>
List<U>
findUsages(Class<U> type, E entity)
           
 Class<E> getEntityClass()
           
 TopiaTestDAOHelper.TopiaTestEntityEnum getTopiaEntityEnum()
           
 
Methods inherited from class org.nuiton.topiatest.NaturalizedEntityDAOAbstract
findAllByNaturalIdNotNull, findAllByNaturalIdNull, findByNaturalIdNotNull, findByNaturalIdNull
 
Methods inherited from class org.nuiton.topia.persistence.TopiaDAOImpl
addTopiaEntityListener, addTopiaEntityVetoable, count, countByQuery, create, create, create, createQuery, createQuery, delete, existByProperties, existByQuery, existByTopiaId, findAll, findAllByProperties, findAllByProperties, findAllByProperty, findAllByQuery, findAllContains, findAllIds, findAllMappedByQuery, findAllMappedByQuery, findAllWithOrder, findByPrimaryKey, findByPrimaryKey, findByProperties, findByProperties, findByProperty, findByQuery, findByTopiaId, findContains, 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
 

Constructor Detail

GeneralizedNaturalizedEntityDAOAbstract

public GeneralizedNaturalizedEntityDAOAbstract()
Method Detail

getEntityClass

public Class<E> getEntityClass()
Specified by:
getEntityClass in interface org.nuiton.topia.persistence.TopiaDAO<E extends GeneralizedNaturalizedEntity>
Overrides:
getEntityClass in class NaturalizedEntityDAOAbstract<E extends GeneralizedNaturalizedEntity>

getTopiaEntityEnum

public TopiaTestDAOHelper.TopiaTestEntityEnum getTopiaEntityEnum()
Specified by:
getTopiaEntityEnum in interface org.nuiton.topia.persistence.TopiaDAO<E extends GeneralizedNaturalizedEntity>
Overrides:
getTopiaEntityEnum in class NaturalizedEntityDAOAbstract<E extends GeneralizedNaturalizedEntity>

findByNaturalId

public E findByNaturalId(Integer naturalIdNotNull,
                         String naturalIdNull)
                                                       throws org.nuiton.topia.TopiaException
Overrides:
findByNaturalId in class NaturalizedEntityDAOAbstract<E extends GeneralizedNaturalizedEntity>
Throws:
org.nuiton.topia.TopiaException

existByNaturalId

public boolean existByNaturalId(Integer naturalIdNotNull,
                                String naturalIdNull)
                         throws org.nuiton.topia.TopiaException
Overrides:
existByNaturalId in class NaturalizedEntityDAOAbstract<E extends GeneralizedNaturalizedEntity>
Throws:
org.nuiton.topia.TopiaException

create

@Deprecated
public E create(Integer naturalIdNotNull,
                           String naturalIdNull)
                                              throws org.nuiton.topia.TopiaException
Deprecated. since 2.6.10, prefer use createByNaturalId(java.lang.Integer, java.lang.String)

Overrides:
create in class NaturalizedEntityDAOAbstract<E extends GeneralizedNaturalizedEntity>
Parameters:
naturalIdNotNull -
naturalIdNull -
Returns:
Throws:
org.nuiton.topia.TopiaException

createByNaturalId

public E createByNaturalId(Integer naturalIdNotNull,
                           String naturalIdNull)
                                                         throws org.nuiton.topia.TopiaException
Overrides:
createByNaturalId in class NaturalizedEntityDAOAbstract<E extends GeneralizedNaturalizedEntity>
Throws:
org.nuiton.topia.TopiaException

createByNotNull

public E createByNotNull(Integer naturalIdNotNull)
                                                       throws org.nuiton.topia.TopiaException
Overrides:
createByNotNull in class NaturalizedEntityDAOAbstract<E extends GeneralizedNaturalizedEntity>
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
Specified by:
findUsages in interface org.nuiton.topia.persistence.TopiaDAO<E extends GeneralizedNaturalizedEntity>
Overrides:
findUsages in class NaturalizedEntityDAOAbstract<E extends GeneralizedNaturalizedEntity>
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
Specified by:
findAllUsages in interface org.nuiton.topia.persistence.TopiaDAO<E extends GeneralizedNaturalizedEntity>
Overrides:
findAllUsages in class NaturalizedEntityDAOAbstract<E extends GeneralizedNaturalizedEntity>
Throws:
org.nuiton.topia.TopiaException


Copyright © 2004-2012 CodeLutin. All Rights Reserved.