Example usage for org.hibernate LockMode NONE

List of usage examples for org.hibernate LockMode NONE

Introduction

In this page you can find the example usage for org.hibernate LockMode NONE.

Prototype

LockMode NONE

To view the source code for org.hibernate LockMode NONE.

Click Source Link

Document

No lock required.

Usage

From source file:com.jettmarks.routes.server.bean.DisplayGroupDAO.java

License:Apache License

public void attachClean(DisplayGroup instance) {
    logger.debug("attaching clean DisplayGroup instance");
    try {//  w w  w .  j  a v  a2 s  .  com
        session.lock(instance, LockMode.NONE);
        logger.debug("attach successful");
    } catch (RuntimeException re) {
        logger.error("attach failed", re);
        throw re;
    }
}

From source file:com.jettmarks.routes.server.bean.SuitabilitySegmentDAO.java

License:Apache License

public void attachClean(SuitabilitySegment instance) {
    logger.debug("attaching clean SuitabilitySegment instance");
    try {/*from  w ww .  ja v  a  2  s.  co m*/
        session.lock(instance, LockMode.NONE);
        logger.debug("attach successful");
    } catch (RuntimeException re) {
        logger.error("attach failed", re);
        throw re;
    }
}

From source file:com.knowbout.hibernate.model.PersistentObject.java

License:Apache License

protected void reattach(Object object) {
    Session session = HibernateUtil.currentSession();
    if (!session.contains(object)) {
        session.lock(object, LockMode.NONE);
    }
}

From source file:com.lm.lic.manager.hibernate.DefaultLicensePricingDAO.java

public void attachClean(DefaultLicensePricing instance) {
    log.debug("attaching clean DefaultLicensePricing instance");
    try {//from  w w w  . j a va2s  .c  o  m
        getHibernateTemplate().lock(instance, LockMode.NONE);
        log.debug("attach successful");
    } catch (RuntimeException re) {
        log.error("attach failed", re);
        throw re;
    }
}

From source file:com.lm.lic.manager.hibernate.FloatingLicenseConfigDAO.java

public void attachClean(FloatingLicenseConfig instance) {
    log.debug("attaching clean FloatingLicenseConfig instance");
    try {//from w w  w . j a va 2  s .c  om
        getHibernateTemplate().lock(instance, LockMode.NONE);
        log.debug("attach successful");
    } catch (RuntimeException re) {
        log.error("attach failed", re);
        throw re;
    }
}

From source file:com.lm.lic.manager.hibernate.IsvLicensePricingDAO.java

public void attachClean(IsvLicensePricing instance) {
    log.debug("attaching clean IsvLicensePricing instance");
    try {/*from   w  ww .j a  v  a  2s. com*/
        getHibernateTemplate().lock(instance, LockMode.NONE);
        log.debug("attach successful");
    } catch (RuntimeException re) {
        log.error("attach failed", re);
        throw re;
    }
}

From source file:com.lm.lic.manager.hibernate.LicenseBlockDAO.java

License:Open Source License

public void attachClean(LicenseBlock instance) {
    log.debug("attaching clean LicenseBlock instance");
    try {/* ww  w  .java2 s .  com*/
        getHibernateTemplate().lock(instance, LockMode.NONE);
        log.debug("attach successful");
    } catch (RuntimeException re) {
        log.error("attach failed", re);
        throw re;
    }
}

From source file:com.lm.lic.manager.hibernate.LicenseDAO.java

License:Open Source License

public void attachClean(License instance) {
    log.debug("attaching clean License instance");
    try {//from   w w w.  j a va  2  s.  c  o  m
        getHibernateTemplate().lock(instance, LockMode.NONE);
        log.debug("attach successful");
    } catch (RuntimeException re) {
        log.error("attach failed", re);
        throw re;
    }
}

From source file:com.lm.lic.manager.hibernate.LicenseVerifIncidentDAO.java

License:Open Source License

public void attachClean(LicenseVerifIncident instance) {
    log.debug("attaching clean LicenseVerifIncident instance");
    try {//from ww  w .j a va 2s .  c  o m
        getHibernateTemplate().lock(instance, LockMode.NONE);
        log.debug("attach successful");
    } catch (RuntimeException re) {
        log.error("attach failed", re);
        throw re;
    }
}

From source file:com.lm.lic.manager.hibernate.LmxLicensePricingDAO.java

public void attachClean(LmxLicensePricing instance) {
    log.debug("attaching clean LmxLicensePricing instance");
    try {//from  w ww  . ja v  a 2  s.co  m
        getHibernateTemplate().lock(instance, LockMode.NONE);
        log.debug("attach successful");
    } catch (RuntimeException re) {
        log.error("attach failed", re);
        throw re;
    }
}