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

java.lang.Object
  extended by org.synyx.hades.dao.orm.GenericDaoSupport.PersistableIsNewStrategy
All Implemented Interfaces:
GenericDaoSupport.IsNewStrategy
Enclosing class:
GenericDaoSupport<T>

public static class GenericDaoSupport.PersistableIsNewStrategy
extends java.lang.Object
implements GenericDaoSupport.IsNewStrategy

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

Author:
Oliver Gierke

Constructor Summary
GenericDaoSupport.PersistableIsNewStrategy()
           
 
Method Summary
 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.PersistableIsNewStrategy

public GenericDaoSupport.PersistableIsNewStrategy()
Method Detail

isNew

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


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