List of usage examples for org.hibernate LockMode NONE
LockMode NONE
To view the source code for org.hibernate LockMode NONE.
Click Source Link
From source file:jedai.domain.security.AclEntryHome.java
License:Open Source License
public void attachClean(AclEntry instance) { log.debug("attaching clean AclEntry instance"); try {/*from ww w .j av a 2 s . c o m*/ sessionFactory.getCurrentSession().lock(instance, LockMode.NONE); log.debug("attach successful"); } catch (RuntimeException re) { log.error("attach failed", re); throw re; } }
From source file:jedai.domain.security.AclObjectIdentityHome.java
License:Open Source License
public void attachClean(AclObjectIdentity instance) { log.debug("attaching clean AclObjectIdentity instance"); try {//from w ww . ja va2s . c om sessionFactory.getCurrentSession().lock(instance, LockMode.NONE); log.debug("attach successful"); } catch (RuntimeException re) { log.error("attach failed", re); throw re; } }
From source file:jedai.domain.security.AclSidHome.java
License:Open Source License
public void attachClean(AclSid instance) { log.debug("attaching clean AclSid instance"); try {//from w w w. j av a2s .co m sessionFactory.getCurrentSession().lock(instance, LockMode.NONE); log.debug("attach successful"); } catch (RuntimeException re) { log.error("attach failed", re); throw re; } }
From source file:jedai.domain.security.AuthoritiesHome.java
License:Open Source License
public void attachClean(Authorities instance) { log.debug("attaching clean Authorities instance"); Session session = sessionFactory.getCurrentSession(); try {//from w w w . ja v a 2 s . c o m session.beginTransaction(); session.lock(instance, LockMode.NONE); session.flush(); session.getTransaction().commit(); log.debug("attach successful"); } catch (RuntimeException re) { log.error("attach failed", re); throw re; } finally { if (session.isOpen()) { session.close(); } } }
From source file:jedai.domain.security.ContactsHome.java
License:Open Source License
public void attachClean(Contacts instance) { log.debug("attaching clean Contacts instance"); try {//from ww w . j a v a 2 s . co m sessionFactory.getCurrentSession().lock(instance, LockMode.NONE); log.debug("attach successful"); } catch (RuntimeException re) { log.error("attach failed", re); throw re; } }
From source file:jedai.domain.security.UsersHome.java
License:Open Source License
public void attachClean(Users instance) { log.debug("attaching clean Users instance"); Session session = sessionFactory.getCurrentSession(); try {//from w w w .java2 s . c o m session.beginTransaction(); session.lock(instance, LockMode.NONE); session.flush(); session.getTransaction().commit(); log.debug("attach successful"); } catch (RuntimeException re) { log.error("attach failed", re); throw re; } finally { if (session.isOpen()) { session.close(); } } }
From source file:main.java.edu.isistan.genCom.redSocial.dao.DAOInvestigador.java
License:Open Source License
public void attachClean(Investigador instance) { log.debug("attaching clean Investigadores instance"); try {//from w ww. jav a 2s. co m sessionFactory.getCurrentSession().lock(instance, LockMode.NONE); log.debug("attach successful"); } catch (RuntimeException re) { log.error("attach failed", re); throw re; } }
From source file:main.java.edu.isistan.genCom.redSocial.dao.DAOLugarDeTrabajo.java
License:Open Source License
public void attachClean(LugarDeTrabajo instance) { log.debug("attaching clean LugaresDeTrabajo instance"); try {/*ww w. j a v a 2s .c om*/ sessionFactory.getCurrentSession().lock(instance, LockMode.NONE); log.debug("attach successful"); } catch (RuntimeException re) { log.error("attach failed", re); throw re; } }
From source file:main.java.edu.isistan.genCom.redSocial.dao.DAOPublicacion.java
License:Open Source License
public void attachClean(Publicacion instance) { log.debug("attaching clean Publicaciones instance"); try {/*from ww w . ja va 2 s . co m*/ sessionFactory.getCurrentSession().lock(instance, LockMode.NONE); log.debug("attach successful"); } catch (RuntimeException re) { log.error("attach failed", re); throw re; } }
From source file:net.firejack.platform.core.store.BaseStore.java
License:Apache License
@Override @Transactional public void lock(E entity) { getHibernateTemplate().lock(entity, LockMode.NONE); }