org.synyx.hades.dao.orm
Class GenericDaoSupport.PersistableEntityInformation

java.lang.Object
  extended by org.synyx.hades.dao.orm.GenericDaoSupport.PersistableEntityInformation
All Implemented Interfaces:
GenericDaoSupport.IdAware, GenericDaoSupport.IsNewAware
Enclosing class:
GenericDaoSupport<T>

public static class GenericDaoSupport.PersistableEntityInformation
extends java.lang.Object
implements GenericDaoSupport.IsNewAware, GenericDaoSupport.IdAware

Implementation of GenericDaoSupport.IsNewAware that assumes the entity handled implements Persistable and uses Persistable.isNew() for the isNew(Object) check.

Author:
Oliver Gierke

Constructor Summary
GenericDaoSupport.PersistableEntityInformation()
           
 
Method Summary
 java.lang.Object getId(java.lang.Object entity)
           
 boolean isNew(java.lang.Object entity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericDaoSupport.PersistableEntityInformation

public GenericDaoSupport.PersistableEntityInformation()
Method Detail

isNew

public boolean isNew(java.lang.Object entity)
Specified by:
isNew in interface GenericDaoSupport.IsNewAware

getId

public java.lang.Object getId(java.lang.Object entity)
Specified by:
getId in interface GenericDaoSupport.IdAware


Copyright © 2009-2010 Synyx GmbH & Co. KG. All Rights Reserved.