org.riotfamily.riot.hibernate.support
Class EntityPresenceCheck

java.lang.Object
  extended by org.riotfamily.riot.hibernate.support.EntityPresenceCheck
All Implemented Interfaces:
FactoryBean

public class EntityPresenceCheck
extends Object
implements FactoryBean


Constructor Summary
EntityPresenceCheck(org.hibernate.SessionFactory sessionFactory)
           
 
Method Summary
 Object getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setEntityClass(Class<?> entityClass)
           
 void setInvert(boolean invert)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityPresenceCheck

public EntityPresenceCheck(org.hibernate.SessionFactory sessionFactory)
Method Detail

setEntityClass

public void setEntityClass(Class<?> entityClass)

setInvert

public void setInvert(boolean invert)

getObject

@Transactional
public Object getObject()
                 throws Exception
Specified by:
getObject in interface FactoryBean
Throws:
Exception

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean